DXF Add Star
Pointy shapes with a proper inner radius
- dxf
- DXF
A five-pointed star is the kind of shape that's shockingly fiddly to construct from scratch - and then you want a six-pointed one, and then a twelve-pointed one. DXF Add Star makes it a two-number affair: outer radius and inner radius, plus a point count. Stars, sparkles, sunbursts, and gear-like crowns, all from one node.
It's part of orion4d/ComfyUI_DAO_master, the French-authored vector-and-image pack built on ezdxf, and it behaves like the rest of the primitive family: non-destructive copy-in, star added, fresh document out.
How it works
cx,cy- center.outer_radius- distance from center to the star's tips.inner_radius- distance from center to the valleys between points. This is what makes a star a star: close toouter_radiusand you get a nearly-circular spiky blob; small and you get deep, sharp points.num_points- how many points, clamped 3–100.
Output is a single DXF socket with the updated document.
What to do with it
Five-point stars are the classic; six and eight pointers make sunburst and badge motifs; a star with num_points cranked up and a close inner radius reads as a gear or cog. Chain it with circles and polygons, preview with DXF Preview, and export through DXF to SVG when you need the geometry on the SVG side.
Installing
ComfyUI Manager (search ComfyUI_DAO_master) or:
cd ComfyUI/custom_nodes
git clone https://github.com/orion4d/ComfyUI_DAO_master.git
pip install ezdxf
Restart and go.
Where people get burned
The two radii are easy to mix up - swap them and your star inverts into a chunky rounded shape. And like the polygon node, there's no rotation input; a five-point star defaults to one point up, so rotate via DXF Transform if you need a different orientation. Plus the usual family rule: keep your previous dxf wired in or you're starting from empty.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| dxf | DXF | — | |
| cx | FLOAT | 0.00 | — |
| cy | FLOAT | 0.00 | — |
| outer_radius | FLOAT | 20.00 | — |
| inner_radius | FLOAT | 10.00 | — |
| num_points | INT | 53–100 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DXF | DXF | — |