Notifications
Clear all
[Closed] Problems reading normals from an edit mesh
Page 2 / 2
Prev
Nov 09, 2018 3:06 am
the edit poly mod clears the specified normals i’m afraid from
the sdk…
void EditPolyData::Initialize (PolyObject *pObj, TimeValue t) {
MNMesh & mesh = pObj->GetMesh();
mesh.getVertexSel (mVertSel);
mesh.getFaceSel (mFaceSel);
mesh.getEdgeSel (mEdgeSel);
mesh.getVerticesByFlag (mVertHide, MN_HIDDEN);
mesh.getFacesByFlag (mFaceHide, MN_HIDDEN);
mesh.ClearSpecifiedNormals ();
// Initialize the STACK_SELECT flags.
mesh.ClearVFlags (MN_EDITPOLY_STACK_SELECT);
mesh.ClearEFlags (MN_EDITPOLY_STACK_SELECT);
mesh.ClearFFlags (MN_EDITPOLY_STACK_SELECT);
mesh.PropegateComponentFlags (MNM_SL_VERTEX, MN_EDITPOLY_STACK_SELECT, MNM_SL_VERTEX, MN_SEL);
mesh.PropegateComponentFlags (MNM_SL_EDGE, MN_EDITPOLY_STACK_SELECT, MNM_SL_EDGE, MN_SEL);
mesh.PropegateComponentFlags (MNM_SL_FACE, MN_EDITPOLY_STACK_SELECT, MNM_SL_FACE, MN_SEL);
SetCache (pObj, t);
}
Page 2 / 2
Prev