아래는 BREP 데이타를 출력하는 코드입니다.
BRep_Builder B; TopoDS_Shape S1; BRepTools::Read(S1 , lpszPathName , B); if (S1.IsNull()) { AfxMessageBox(_T("Shape(s) not found.") , MB_ICONERROR); } else { Handle_AIS_Shape hAISShape = new AIS_Shape(S1); hAISShape->SetColor(Quantity_NOC_GREEN); hAISShape->SetMaterial(Graphic3d_NOM_PLASTIC); m_hAISContext->Display(hAISShape , false); }
댓글
댓글 쓰기