---Level: Public
---Purpose: Adds an array of primitives for display
+ Marker ( me : mutable;
+ thePoint : Vertex from Graphic3d;
+ theToEvalMinMax : Boolean from Standard = Standard_True )
+ is static;
+ ---Level: Public
+ ---Purpose: Creates a primitive array with single marker using AddPrimitiveArray().
+
UserDraw ( me : mutable;
AnObject : Address from Standard;
EvalMinMax : Boolean from Standard = Standard_True;
#include <Graphic3d_Group.jxx>
#include <Graphic3d_Group.pxx>
+
+#include <Graphic3d_ArrayOfPoints.hxx>
#include <gp_Pnt.hxx>
// =======================================================================
Update ();
}
+// =======================================================================
+// function : Marker
+// purpose :
+// =======================================================================
+
+void Graphic3d_Group::Marker (const Graphic3d_Vertex& thePoint,
+ const Standard_Boolean theToEvalMinMax)
+{
+ Handle(Graphic3d_ArrayOfPoints) aPoints = new Graphic3d_ArrayOfPoints (1);
+ aPoints->AddVertex (thePoint.X(), thePoint.Y(), thePoint.Z());
+ AddPrimitiveArray (aPoints, theToEvalMinMax);
+}
+
// =======================================================================
// function : UserDraw
// purpose :