3D max sdk - SimpleMod2::Morphing - morphing...

3D max sdk - SimpleMod2::Morphing - morphing...

Anonymous
Not applicable
392 Views
0 Replies
Message 1 of 1

3D max sdk - SimpleMod2::Morphing - morphing...

Anonymous
Not applicable

 

I'm inhereting from SimpleMod2 and implement a deformer, as shown below in a stripped down example - however, how do I get and use the mesh geometric information - such as the neighbour vertices, faces, the shape details, to help me with the morph?

 

Currently, I have my MyDeformer::Map, which lets me modify each point - but can I have extra information in that calss?  Are there any examples?  

 

Many Thanks,

 

Ben

 

 

 

class MyMorph: public SimpleMod2
{

   Deformer& maxProjectmorph::GetDeformer( TimeValue t, ModContext& mc, Matrix3& /*mat*/, Matrix3& /*invmat*/)
{
   static MyDeformer mydeformer;

    return mydeformer;

  }

};

 

class MyDeformer : public Deformer
{
  public: 

  

  Point3 Map(int i, Point3 p)
  {

     // get each point - but don't know about the geometry? - how do I get the mesh information? neighbour vertices, faces?

  }

};

0 Likes
393 Views
0 Replies
Replies (0)