Notifications
Clear all

[Closed] [SDK] Transforming only mesh, applying matrix and orientation

Hi,
My geometric object is build from several meshes that I combine.
I generate a mesh ex. Cylinder and Combine it. I have no problem with translation,
but I would like to orient my mesh in some direction before combining it to the rest of the final mesh.

The mesh class doesnt provide methods to operate on matrix as this issue is in INode.
I wonder how to apply a calculated matrix to mesh to have my mesh orinted in the direction I want.

3 Replies

What if you modify mesh points like this? <Matrix3>.TransformPoints ( Point3 * array, int n, intstride = sizeof(Point3) )

Thanks, interesting idea…

Yes, this is exaclty what I needed, thank you very much