Access Transform of a DirectShape
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I've used DirectShape to create custom Mesh Geometry. DirectShape.Location allows to move and rotate. But you cant read the transformation back if the user placed that shape. This Location is not a LocationPoint.
According to this post:
I've used the DirectShapeLibrary to create Instances of a DirectShapeType. This gives a GeometryInstance with a nice Transform property. Unfortunately the property is readonly. Would be nice to modify it without the restriction to Move and Rotate around one axis as above.
Another posibility to write Transform is Mesh.get_Transformed() and set it back Mesh.SetShape(). It is also the only way I've found to apply a "free" (non conformal) Transform, which is needed in my case e.g. to strech geometry. But you loose Transform info. Transform of the GeometryInstance is something different.
Is there a more consistent way to set/get Transform of a DirectShape? Am I missing something?
Cheers, Tom