Part: Enable trimmed curves to set their parameter range, from c++ and Python

=============================================================================

>>> geometries = ActiveSketch.Geometry
>>> geo2 = geometries[2]
>>> geo2
ArcOfCircle (Radius : 27.5267, Position : (-70.4702, -31.8933, 0), Direction : (0, 0, 1), Parameter : (1.34187, 2.35619))
>>> geo2.setParameterRange(1,3)
>>> geometries[2]=geo2
>>> ActiveSketch.Geometry=geometries
This commit is contained in:
Abdullah Tahiri
2019-01-27 10:12:52 +01:00
committed by wmayer
parent 52cfac509a
commit f4e4f3441f
4 changed files with 76 additions and 19 deletions

View File

@@ -29,5 +29,12 @@
const Geom_Ellipse & value(void) const {return *getGeom_EllipsePtr();}
</ClassDeclarations>
-->
<Methode Name="setParameterRange" Const="false">
<Documentation>
<UserDocu>
Re-trims this curve to the provided parameter range ([Float=First, Float=Last])
</UserDocu>
</Documentation>
</Methode>
</PythonExport>
</GenerateModel>