#include <Graphic3d_AspectLine3d.hxx>
#include <Prs3d_Root.hxx>
+#include <Prs3d_LineAspect.hxx>
#include <Geom_CartesianPoint.hxx>
#include <gp_Pnt.hxx>
#include <StdPrs_Point.hxx>
int aNbB = anAttrB->size();
if (aNbB == 0)
+ {
+#ifdef DEBUG_SENSITIVE_TO_BE_CORRECTED
+ //if (!myPntArray.IsNull())
+ // mySPoints.Clear();
+#endif
return false;
+ }
SketcherPrs_PositionMgr* aMgr = SketcherPrs_PositionMgr::get();
myPntArray = new Graphic3d_ArrayOfPoints(aNbB);
Handle(Graphic3d_Group) aGroup = Prs3d_Root::NewGroup(thePrs);
- Handle(Graphic3d_AspectLine3d) aLineAspect = new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2);
- aGroup->SetPrimitivesAspect(aLineAspect);
+ //Handle(Graphic3d_AspectLine3d) aLineAspect = new Graphic3d_AspectLine3d(theColor, Aspect_TOL_SOLID, 2);
+ //aGroup->SetPrimitivesAspect(aLineAspect);
+
+ // drawListOfShapes uses myDrawer for attributes definition
+ Handle(Prs3d_LineAspect) aLnAspect = new Prs3d_LineAspect(theColor, Aspect_TOL_SOLID, 1);
+ myDrawer->SetLineAspect(aLnAspect);
drawListOfShapes(anAttrB, thePrs);
if (myConstraint->getKind() == SketchPlugin_MultiTranslation::ID()) {