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.
Archived discussion
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);
Discussion
Posts are displayed in their archived order.
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.