ComfyUI Node

DXF Add Star

Pointy shapes with a proper inner radius

By orion4d·Created about a year ago·Updated 12 months ago· 11
DXF Add Star
  • dxf
  • DXF
cx0.00
cy0.00
outer_radius20.00
inner_radius10.00
num_points5

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 to outer_radius and 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.

CategoryDAO_master/DXF/Primitives

Inputs (6)

NameTypeDefaultDescription
dxfDXF
cxFLOAT0.00
cyFLOAT0.00
outer_radiusFLOAT20.00
inner_radiusFLOAT10.00
num_pointsINT53–100

Outputs (1)

NameTypeDescription
DXFDXF