Skip to content

0.15.6

Choose a tag to compare

@matas-bitbybit-dev matas-bitbybit-dev released this 04 Apr 13:42
· 45 commits to main since this release

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.

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.