AttributeSelectionListPtr anAttrBaseObjects =
aBase->selectionList(BuildPlugin_Interpolation::BASE_OBJECTS_ID());
- AttributeSelectionPtr anAttrStartTangent =
- aBase->selection(BuildPlugin_Interpolation::TANGENT_START_ID());
- AttributeSelectionPtr anAttrEndTangent =
- aBase->selection(BuildPlugin_Interpolation::TANGENT_END_ID());
theDumper << aBase << " = model.addInterpolation(" << aPartName << ", "
<< anAttrBaseObjects << ", ";
- if (anAttrStartTangent->isInitialized() && anAttrEndTangent->isInitialized()) {
+ AttributeStringPtr useTangentsAttr = useTangents();
+ std::string useTangents = useTangentsAttr->value();
+ if (!useTangents.empty()) {
+ AttributeSelectionPtr anAttrStartTangent =
+ aBase->selection(BuildPlugin_Interpolation::TANGENT_START_ID());
+ AttributeSelectionPtr anAttrEndTangent =
+ aBase->selection(BuildPlugin_Interpolation::TANGENT_END_ID());
+
theDumper << anAttrStartTangent << ", " << anAttrEndTangent << ", ";
}
BuildPlugin_Vertex.h
BuildPlugin_Edge.h
BuildPlugin_Wire.h
- BuildPlugin_Polyline.h
- BuildPlugin_Interpolation.h
+ BuildPlugin_Polyline.h
+ BuildPlugin_Interpolation.h
BuildPlugin_Face.h
BuildPlugin_Shell.h
BuildPlugin_Solid.h
BuildPlugin_Vertex.cpp
BuildPlugin_Edge.cpp
BuildPlugin_Wire.cpp
- BuildPlugin_Polyline.cpp
- BuildPlugin_Interpolation.cpp
+ BuildPlugin_Polyline.cpp
+ BuildPlugin_Interpolation.cpp
BuildPlugin_Face.cpp
BuildPlugin_Shell.cpp
BuildPlugin_Solid.cpp
vertex_widget.xml
edge_widget.xml
wire_widget.xml
- polyline_widget.xml
- interpolation_widget.xml
+ polyline_widget.xml
+ interpolation_widget.xml
face_widget.xml
shell_widget.xml
solid_widget.xml
TestEdge.py
TestWire.py
TestPolyline.py
- TestInterpolation.py
+ TestInterpolation.py
TestFace.py
TestShell.py
TestSolid.py
GeomAlgoAPI_Fillet.h
GeomAlgoAPI_SortListOfShapes.h
GeomAlgoAPI_Filling.h
- GeomAlgoAPI_CurveBuilder.h
+ GeomAlgoAPI_CurveBuilder.h
)
SET(PROJECT_SOURCES
GeomAlgoAPI_Fillet.cpp
GeomAlgoAPI_SortListOfShapes.cpp
GeomAlgoAPI_Filling.cpp
- GeomAlgoAPI_CurveBuilder.cpp
+ GeomAlgoAPI_CurveBuilder.cpp
)
SET(PROJECT_LIBRARIES