Sketch: expose several methods to Python
* expose detectDegeneratedGeometries to Python * expose removeDegeneratedGeometries to Python * expose delConstraintsToExternal to Python * expose evaluateConstraints to Python * expose validateConstraints to Python
This commit is contained in:
@@ -94,6 +94,38 @@ deleteAllGeometry()
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="detectDegeneratedGeometries">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Detect degenerated geometries. A curve geometry is considered degenerated
|
||||
if the parameter range is less than the tolerance.
|
||||
|
||||
detectDegeneratedGeometries(tolerance:float)
|
||||
|
||||
Args:
|
||||
tolerance: The tolerance to check the parameter range of a curve.
|
||||
|
||||
Returns:
|
||||
The number of degenerated geometries.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="removeDegeneratedGeometries">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Remove degenerated geometries. A curve geometry is considered degenerated
|
||||
if the parameter range is less than the tolerance.
|
||||
|
||||
removeDegeneratedGeometries(tolerance:float)
|
||||
|
||||
Args:
|
||||
tolerance: The tolerance to check the parameter range of a curve.
|
||||
|
||||
Returns:
|
||||
The number of degenerated geometries.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="deleteAllConstraints">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
@@ -263,6 +295,11 @@ delConstraintOnPoint(geoId:int, pointPos:int)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="delConstraintsToExternal" NoArgs="true">
|
||||
<Documentation>
|
||||
<UserDocu>Deletes all constraints referencing an external geometry.</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="setDatum">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
@@ -720,6 +757,20 @@ setLabelDistance(constraintIndex:int, value:float)
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="evaluateConstraints" Const="true" NoArgs="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Check for constraints with invalid indexes. Returns True if invalid constraints are found, False otherwise.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="validateConstraints" NoArgs="true">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
Removes constraints with invalid indexes.
|
||||
</UserDocu>
|
||||
</Documentation>
|
||||
</Methode>
|
||||
<Methode Name="autoRemoveRedundants">
|
||||
<Documentation>
|
||||
<UserDocu>
|
||||
|
||||
Reference in New Issue
Block a user