Part: TopoShapePy: add generalFuse method

This commit is contained in:
DeepSOIC
2016-07-04 14:57:50 +03:00
parent c8ebc7f9c2
commit 885fecb1ea
2 changed files with 130 additions and 5 deletions

View File

@@ -180,6 +180,33 @@ Beginning from OCCT 6.8.1 a tolerance value can be specified</UserDocu>
<UserDocu>Difference of this and a given topo shape.</UserDocu>
</Documentation>
</Methode>
<Methode Name="generalFuse" Const="true">
<Documentation>
<UserDocu>generalFuse(list_of_other_shapes, fuzzy_value = 0.0): Run general fuse algorithm (GFA) between this and given shapes.
list_of_other_shapes: shapes to run the algorithm against (the list is
effectively prepended by 'self').
fuzzy_value: extra tolerance to apply when searching for interferences, in
addition to tolerances of the input shapes.
Returns a tuple of 2: (result, map).
result is a compound containing all the pieces generated by the algorithm
(e.g., for two spheres, the pieces are three touching solids). Pieces that
touch share elements.
map is a list of lists of shapes, providing the info on which children of
result came from which argument. The length of list is equal to length of
list_of_other_shapes + 1. First element is a list of pieces that came from
shape of this, and the rest are those that come from corresponding shapes in
list_of_other_shapes.
hint: use isSame method to test shape equality
OCC 6.9.0 or later is required.
</UserDocu>
</Documentation>
</Methode>
<Methode Name="sewShape">
<Documentation>
<UserDocu>Sew the shape if there is a gap.</UserDocu>
@@ -190,11 +217,11 @@ Beginning from OCCT 6.8.1 a tolerance value can be specified</UserDocu>
<UserDocu>
childShapes([cumOri=True, cumLoc=True]) -> list
Return a list of sub-shapes that are direct children of this shape.
* If cumOri is true, the function composes all
sub-shapes with the orientation of this shape.
* If cumLoc is true, the function multiplies all
sub-shapes by the location of this shape, i.e. it applies to
each sub-shape the transformation that is associated with this shape.
* If cumOri is true, the function composes all
sub-shapes with the orientation of this shape.
* If cumLoc is true, the function multiplies all
sub-shapes by the location of this shape, i.e. it applies to
each sub-shape the transformation that is associated with this shape.
</UserDocu>
</Documentation>
</Methode>