Salome HOME
0021087: EDF 1673 GEOM: Start and End length hypotheses don't always match edges...
authoreap <eap@opencascade.com>
Mon, 29 Nov 2010 10:12:42 +0000 (10:12 +0000)
committereap <eap@opencascade.com>
Mon, 29 Nov 2010 10:12:42 +0000 (10:12 +0000)
   Make orientation FORWARD to show direction of 3D curve

src/OBJECT/SMESH_PreviewActorsCollection.cxx

index 059edd9270b3aa35a096a6ce30388fe5f6e96ea5..91e38e35418a441c2582cdb2dcce3ffce8a425f7 100644 (file)
@@ -101,7 +101,7 @@ bool SMESH_PreviewActorsCollection::Init( const TopoDS_Shape& theShape, TopAbs_S
     int index = myMapOfShapes.FindIndex( exp.Current() );
     if ( index && !myMapOfActors.contains( index ) ) { 
       // create actor if the index is present
     int index = myMapOfShapes.FindIndex( exp.Current() );
     if ( index && !myMapOfActors.contains( index ) ) { 
       // create actor if the index is present
-      if ( GEOM_Actor* anActor = createActor( exp.Current() )) {
+      if ( GEOM_Actor* anActor = createActor( exp.Current().Oriented(TopAbs_FORWARD))) {
         // Create new entry for actor
         QString aString = theEntry;
         aString += QString("_%1").arg( index ); // add index to actor entry
         // Create new entry for actor
         QString aString = theEntry;
         aString += QString("_%1").arg( index ); // add index to actor entry