Generate texture vertices for 3d mesh

Generate texture vertices for 3d mesh

tagopinath
Enthusiast Enthusiast
285 Views
1 Reply
Message 1 of 2

Generate texture vertices for 3d mesh

tagopinath
Enthusiast
Enthusiast

Hello All,

 

I am trying to implement extrude edge logic in our plugin. (C++ and Max SDK).

 

Implementation logic is like, consider a plane mesh placed at 0,0,0. I am finding the points on the segments and adding some distance value with z and generating faces. All these are working fine. Now the texture vertices, I need to bring those newly generated 3D vertices to 2D (as new position, not overlapped with boundary vertices). 

 

Anybody have any idea how to do this?

 

Regards,

Gopinath.

0 Likes
286 Views
1 Reply
Reply (1)
Message 2 of 2

denisT.MaxDoctor
Advisor
Advisor

it sounds like your mesh is linearly projected (meaning the geometry doesn't overlap when projected from the Z direction on the XY plane).

so you can simply use the projection of the geometry vertex coordinates onto the XY plane as the UV texture coordinates (of course, you can normalize them if you need to, using the bounding box of the mesh).

 

0 Likes