+ if( myCurve->isClosed( iSection ) && ( aPointSize > 2 ) ) {
+ getPoint( iSection, 0, aPoint );
+ aPointEdge = BRepBuilderAPI_MakeEdge( aPrevPoint, aPoint ).Edge();
+ aMakeWire.Add( BRepBuilderAPI_MakeWire( aPointEdge ) );
+ }
+
+ TopoDS_Wire aLineWire = aMakeWire.Wire();
+ Set( aLineWire );
+ AIS_Shape::Compute( thePM, thePrs, theMode );
+ }
+#else
+ bool isClosed = myCurve->isClosed( iSection ) && ( aPointSize > 2 );
+ Handle(Graphic3d_ArrayOfPolylines) anArray = new Graphic3d_ArrayOfPolylines
+ ( !isClosed ? aPointSize : aPointSize+1 );
+ for( ; iPoint < aPointSize; iPoint++ ) {
+ getPoint( iSection, iPoint, aPoint );
+ anArray->AddVertex(aPoint.X(), aPoint.Y(), aPoint.Z());
+ }
+
+ if( myCurve->isClosed( iSection ) && ( aPointSize > 2 ) ) {
+ getPoint( iSection, 0, aPoint );
+ anArray->AddVertex(aPoint.X(), aPoint.Y(), aPoint.Z());