Sat, 11/10/2018 - 23:33
Forums:
Hello.
I am trying to display triangles () on a created AIS Context and still cannot see the rendering unfortunately. here is how I implemented the Graphic3d_Group:
// Graphic 3D Environment Settings
StructMng = gcnew NCollection_Haft<Handle(Graphic3d_StructureManager)>(myAISContext()->MainPrsMgr()->StructureManager());
aPresentation = gcnew NCollection_Haft<Handle(Prs3d_Presentation)>(new Prs3d_Presentation(StructMng()));
aGroup = gcnew NCollection_Haft<Handle(Graphic3d_Group)>(Prs3d_Root::CurrentGroup(aPresentation()));
Handle(Graphic3d_ArrayOfTriangles) myArray = ......;
.
.
.
.
aGroup()->AddPrimitiveArray(myArray);
Mon, 04/27/2020 - 09:59
Hi,
to display triangles in AIS Context you can use this structure :
MeshVS_Mesh mesh;
aiscontext->Display(mesh)
or
AIS_Triangulation tri;
aiscontext->Display(tri)
AIS_Context is use to display Object with the type AIS_InteractiveObject.