New features for creating wires and faces from two or more circles. This is very useful when designing complex mechanical parts.
Apr 4, 2024
by Matas Ubarevicius
This release builds on top of features presented in the previous release. This time we implemented few powerful new methods to create wires and faces from two or more circles.
New features in action.
Face From Circles
Constructing faces in between two or more circles is a common task in mechanical design. This release brings just that.
- bitbybit.occt.shape.face.createFaceFromMultipleCircleTanWires
- Creates a face from multiple circle wires. You can choose how circles will be connected. There three strategies 'allWithAll' will connect all circles with all circles, 'inOrder' will connect circles in order they are provided to the algorithm, 'inOrderClosed' will connect circles in order they are given and last circle with the first one.
- bitbybit.occt.shape.face.createFaceFromMultipleCircleTanWireCollections
- This is a powerful technique, which can express many difficult designs automatically. You can provide 2D array of circles and then choose how to connect them. There are three strategies 'allWithAll' will connect all circles with all circles within provided collections, 'inOrder' will connect circles in order they are provided to the algorithm in each of the nested array, 'inOrderClosed' will connect circles in order they are given in both directions to form a closed grid kind of connection. Last two strategies require lists to contain the same number of circles.
Circular Wires
To make it easier to construct wires from circles, we have introduced new method to create a wire from two circles.
- bitbybit.occt.shape.wire.createWireFromTwoCirclesTan
- It constructs the wire from two circles. Default configuration outputs the wire that includes the outer tangential lines and outer arcs. Users can also choose to include the inner tangential lines and arcs, but such wires may contain self intersections.