OCCT Fillets: Applying Variable Radius on Specific Corners of 2D Wires
While filleting all corners of a 2D wire with a uniform radius is common, OpenCascade Technology (OCCT) also provides the capability to apply fillets with different radii to specific, individual corners (vertices) of a wire. This allows for more nuanced and precise control over the shape of 2D profiles.
To achieve this, you typically need to:
- Identify Target Corners: Determine which vertices (corners) of the wire you want to fillet. This might involve knowing the order of vertices in the wire or selecting them based on their position.
- Provide Vertex and Radius Pairs: The fillet operation will usually require a list of target vertices (or their indexes within the wire) and the corresponding fillet radius to be applied at each of those specific corners.
The examples below demonstrate creating a 2D wire and then applying fillets with different radii to selected corners.

- Rete
- Blockly
- TypeScript
Script Source (typescript)
const squareOpt = new Bit.Inputs.OCCT.SquareDto();
const square = await bitbybit.occt.shapes.wire.createSquareWire(squareOpt);
const squareFillet = await bitbybit.occt.fillets.fillet2d({
shape: square,
radiusList: [0.1, 0.3],
indexes: [1, 3]
});
bitbybit.draw.drawAnyAsync({
entity: squareFillet
});
Applying variable radius fillets to specific corners of 2D wires is a powerful technique for creating custom profiles with precise rounded features, which can then be used as a basis for more complex 3D modeling operations.
