}
else if( aSectType == CurveCreator::Spline )
{
-#ifdef USE_COMPOUND
-#else
std::vector<double> aPoints;
for( int iPoint = 0; iPoint < aPointSize; iPoint++ )
{
- //Handle_AIS_Point anAISPnt = theCurve->getAISPoint( theISection, iPoint );
- //aSectionRepresentation.push_back( anAISPnt );
-
CurveCreator::Coordinates aCoords = theCurve->getPoint( theISection, iPoint );
double aX = aCoords[0];
double aY = aCoords[1];
TopoDS_Wire aWire = BRepBuilderAPI_MakeWire( anEdge ).Wire();
theShape = aWire;
}
-#endif
}
-#ifndef USE_COMPOUND
const CurveCreator_Curve* aCurve = dynamic_cast<const CurveCreator_Curve*>( theCurve );
if ( !aCurve )
return;
if( aSectType == CurveCreator::Polyline )
{
+#ifndef USE_COMPOUND
int iPoint = 0;
for( ; iPoint < ( aPointSize - 1 ) ; iPoint++ ){
Handle_AIS_Point anAISPnt = aCurve->getAISPoint(theISection, iPoint);
aSectionRepresentation.push_back( aLine );
}
}
+#endif
}
else if( aSectType == CurveCreator::Spline )
{
aSectionRepresentation.push_back( anAISPnt );
}
}
-#endif
}
std::list<float> CurveCreator_Utils::getSelectedPoints( Handle(AIS_InteractiveContext) theContext )
// function : setLocalPointContext
// purpose : Open/close the viewer local context
//=======================================================================
-//#define USE_COMPOUND
+//#define USE_GLOBAL_SELECTION
void CurveCreator_Utils::setLocalPointContext(
Handle(AIS_InteractiveContext) theContext,
const bool theOpen )
{
-#ifdef USE_COMPOUND
+#ifdef USE_GLOBAL_SELECTION
return;
#endif
if ( !theContext )