if (!theEdge) {
throw GeomAlgoAPI_Exception("Cylinder builder :: the axis is not valid.");
}
-
+
std::shared_ptr<GeomAPI_Ax2> anAxis;
anAxis = std::shared_ptr<GeomAPI_Ax2>(new GeomAPI_Ax2(theBasePoint,
theEdge->line()->direction()));
#include <SketchPlugin_ConstraintCoincidence.h>
#include <SketchPlugin_ConstraintMiddle.h>
-void PlaneGCSSolver_UpdateCoincidence::attach(SketchSolver_Constraint* theObserver, const std::string& theType)
+void PlaneGCSSolver_UpdateCoincidence::attach(SketchSolver_Constraint* theObserver,
+ const std::string& theType)
{
if (theType == GROUP()) {
std::list<SketchSolver_Constraint*>::iterator aPlaceToAdd = myObservers.end();
#include <PlaneGCSSolver_UpdateFeature.h>
#include <SketchSolver_Constraint.h>
-void PlaneGCSSolver_UpdateFeature::attach(SketchSolver_Constraint* theObserver, const std::string& theType)
+void PlaneGCSSolver_UpdateFeature::attach(SketchSolver_Constraint* theObserver,
+ const std::string& theType)
{
if (theType == GROUP())
myObservers.push_back(theObserver);
//// theConstraint->data()->attributes(ModelAPI_AttributeRefAttr::typeId());
//// std::list<AttributePtr>::const_iterator anAttrIt = aRefAttrs.begin();
//// for (; anAttrIt != aRefAttrs.end(); ++anAttrIt) {
-//// AttributeRefAttrPtr aRef = std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(*anAttrIt);
+//// AttributeRefAttrPtr aRef =
+//// std::dynamic_pointer_cast<ModelAPI_AttributeRefAttr>(*anAttrIt);
//// if (aRef->isObject()) {
//// FeaturePtr aFeature = ModelAPI_Feature::feature(aRef->object());
//// if (aFeature) addEntity(aFeature, EntityWrapperPtr());
//// std::list<AttributePtr> aRefLists =
//// theConstraint->data()->attributes(ModelAPI_AttributeRefList::typeId());
//// for (anAttrIt = aRefLists.begin(); anAttrIt != aRefLists.end(); ++anAttrIt) {
-//// AttributeRefListPtr aRef = std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(*anAttrIt);
+//// AttributeRefListPtr aRef =
+//// std::dynamic_pointer_cast<ModelAPI_AttributeRefList>(*anAttrIt);
//// std::list<ObjectPtr> anObj = aRef->list();
//// std::list<ObjectPtr>::iterator anIt = anObj.begin();
//// for (; anIt != anObj.end(); ++anIt) {