コード例 #1
0
Point3*  UnwrapMod::fnGetNormal(int faceIndex, INode *node)
{
	Point3 norm(0.0f,0.0f,0.0f);
	MeshTopoData *ld = GetMeshTopoData(node);
	if (ld)
	{
		Tab<Point3> objNormList;
		BuildNormals(ld,objNormList);
		if ((faceIndex >= 0) && (faceIndex < objNormList.Count()))
			norm = objNormList[faceIndex];
	}


	n = norm;
	return &n;
}
コード例 #2
0
void UnwrapMod::fnRegularMapStart(INode* node, BOOL bringUpUI)
{

	if (bringUpUI)
	{
		HWND hwnd = CreateDialogParam(	hInstance,
							MAKEINTRESOURCE(IDD_UNFOLDMAP_DIALOG),
							GetCOREInterface()->GetMAXHWnd(),
							UnwrapUnfoldMapFloaterDlgProc,
							(LPARAM)this );
		mRegularMap.SetPos();
		mRegularMap.FillOutUI();

		ShowWindow(hwnd ,SW_SHOW);
		
	}
	MeshTopoData *md = GetMeshTopoData(node);
	mRegularMap.Init(this,md);

}