3D max sdk - SimpleMod2::Morphing - morphing...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
}
};