Stencil Rule Donut

 

Donut Creation for Stencil Pads

In stencil design, a donut shape is used to define a circular opening with a central void (hole), commonly used for thermal reliefs or annular ring designs. The donut is generated around a pad center based on several configurable parameters.

Donut Properties

Property Type Description
InnerDiameter double Defines the inner diameter of the donut. This is the size of the central hole that will not be cut into the stencil.
OuterDiameter double Specifies the outer diameter of the donut, representing the total size of the stencil opening.
AngleStep double Angle between each arc segment when constructing the donut shape. A smaller step creates a smoother circle.
OffsetX double Offset in X-direction from the pad center, applied to reposition the donut shape.
OffsetY double Offset in Y-direction from the pad center.
Rotation double Applies a rotation (in degrees) to the donut shape around the pad center.

 

Stencil Rule Donut

Usage

These properties are used by the StencilScriptDonut class to calculate and render the donut shape on stencil pads. The donut is typically composed of an outer arc (outer diameter) and an inner arc (inner diameter), combined with connecting lines to form a closed shape.

Ensure that InnerDiameter is less than OuterDiameter to create a valid donut. Adjust AngleStep based on performance vs. accuracy needs.