:linenos:
:language: python
-:download:`Download this script <examples/fillet1d_vertices.py >`
-
+:download:`Download this script <examples/fillet1d_vertices.py>`
+
:linenos:
:language: python
-:download:`Download this script <examples/fillet1d_wire.py >`
-
+:download:`Download this script <examples/fillet1d_wire.py>`
+
There are 2 types of fillet:
- .. image:: images/fillet1d_wire.png
- :align: left
- fillet all sharp corners on a wire
+.. image:: images/fillet1d_wire.png
+ :align: left
+ :height: 24px
- .. image:: images/fillet1d_points.png
- :align: left
- fillet only the specified corners
+fillet all sharp corners on a wire
+
+.. image:: images/fillet1d_points.png
+ :align: left
+ :height: 24px
+
+fillet only the specified corners
Fillet a wire
-------------
**TUI Command**:
.. py:function:: model.addFillet(Part_doc, [vertices], radius)
+ :noindex:
:param part: The current part object.
:param list: A list of vertices subject to fillet operation in format *model.selection(TYPE, shape)*.
return;
}
- int aNbDup = 0;
std::list<GeomPointPtr>::iterator aPIt = thePoints.begin();
GeomPointPtr aPrevPnt = *aPIt;
for (; aPIt != thePoints.end(); ++aPIt) {
aTargetPoint2d.SetCoord(aX, aY);
// choose the nearest circle
- Standard_Real aDistance, aP;
+ Standard_Real aDistance = Precision::Infinite();
GEOMImpl_Fillet1dPoint *aNearest;
Standard_Integer a;
TColStd_ListIteratorOfListOfReal anIter(myResultParams);
fillPoint(aPoint);
if (!aPoint->HasSolution(myRadius))
continue;
- aP = fabs(aPoint->GetCenter().Distance(aTargetPoint2d) - myRadius);
+ Standard_Real aP = fabs(aPoint->GetCenter().Distance(aTargetPoint2d) - myRadius);
if (!aNearest || aP < aDistance)
{
aNearest = aPoint;
{
Standard_Integer a;
Standard_Boolean aDiffsSet = (myD.Length() != 0);
- Standard_Real aDX = thePoint->GetParam() - myParam, aDY;
+ Standard_Real aDX = thePoint->GetParam() - myParam, aDY = 0.0;
if (thePoint->myV.Length() == myV.Length())
{ // absolutely the same points
for(a = 1; a <= myV.Length(); a++)
return;
XGUI_Workshop* aWorkshop = getWorkshop();
bool needUpdate = false;
- XGUI_DataTree* aTreeView;
+ XGUI_DataTree* aTreeView = 0;
if (aWorkshop->objectBrowser()) {
aTreeView = aWorkshop->objectBrowser()->treeView();
QLabel* aLabel = aWorkshop->objectBrowser()->activeDocLabel();
// to keep mapping between points and attributes
std::map<GeomPointPtr, std::pair<ObjectPtr, AttributePtr> > aMap;
std::list<std::pair<ObjectPtr, AttributePtr> > aPointsList = aPointsAttr->list();
- bool isPointAdded = aCoordinates.size() != aPointsList.size();
+
std::list<GeomPointPtr>::iterator aCoordIt = aCoordinates.begin();
std::list<std::pair<ObjectPtr, AttributePtr> >::iterator anAttrIt = aPointsList.begin();
for (; aCoordIt != aCoordinates.end() && anAttrIt != aPointsList.end(); ++aCoordIt, ++anAttrIt)
ellipseFeature.rst
arcEllipseFeature.rst
bsplineFeature.rst
+ curveFittingFeature.rst
.. _sketch_constraints: