const Standard_Integer theMode )
{
thePrs->Clear();
+
//AIS_Shape::Compute( thePM, thePrs, theMode );
for( int iSection = 0 ; iSection < myCurve->getNbSections() ; iSection++ ) {
//TopoDS_Shape aShape;
-
CurveCreator::SectionType aSectType = myCurve->getSectionType( iSection );
int aSectSize = myCurve->getNbPoints( iSection );
bool aSectIsClosed = myCurve->isClosed( iSection );
- /*if( aSectType == CurveCreator::Polyline )
+ //if( aSectType == CurveCreator::Polyline )
{
- int iPoint = 0;
+
+ /*int iPoint = 0;
for( ; iPoint < ( aSectSize - 1 ) ; iPoint++ ){
Handle_AIS_Point anAISPnt = getAISPoint(theISection, iPoint);
aSectionRepresentation.push_back( anAISPnt );
aSectionRepresentation.push_back( aLine );
}
}
- }*/
+ */
+ }
//else if( aSectType == CurveCreator::Spline )
{
std::vector<double> aPoints;
TopoDS_Wire aWire = BRepBuilderAPI_MakeWire( anEdge ).Wire();
- //Handle(AIS_Shape) aShape = new AIS_Shape( aWire );
- //aSectionRepresentation.push_back( aShape );
- StdPrs_WFDeflectionShape::Add( thePrs, aWire/*aShape*/, myDrawer );
- //Quantity_Color aColor( 200, 200, 100, Quantity_TOC_RGB );
- //SetColor(aColor);
+ Set( aWire );
+ AIS_Shape::Compute( thePM, thePrs, theMode );
}
}
- //StdPrs_WFDeflectionShape::Add( thePrs, aShape, myDrawer );
}
}