Nodes/ComfyUI_DAO_master/DXF Add Rounded Rectangle
ComfyUI Node

DXF Add Rounded Rectangle

The softer sibling of the rectangle node

By orion4d·Created about a year ago·Updated 12 months ago· 11
DXF Add Rounded Rectangle
  • dxf
  • DXF
x0.00
y0.00
width20.00
height10.00
radius2.00
centeredfalse

A plain rectangle is fine until you want a button, a card, or a label - then the sharp corners start to look wrong. DXF Add Rounded Rectangle is the rectangle node with a radius input bolted on, so you get the same anchor/dimension controls plus a corner radius for that softer, modern shape.

It's part of orion4d/ComfyUI_DAO_master, the French-authored vector-and-image pack built on ezdxf. Same non-destructive family behavior: input DXF in, a copy is made, the rounded rectangle is added, and a fresh document comes out.

How it works

  • x, y - anchor point (defaults 0, 0).
  • width, height - dimensions (defaults 20 × 10).
  • radius - corner rounding, minimum 0 (default 2). Set it to 0 and you've just built a plain rectangle.
  • centered - if true, (x, y) is the center; if false, it's the lower-left corner.

Output is a single DXF socket with the updated document.

What to do with it

This is the shape for UI mockups, badges, tags, and any design language that avoids sharp corners. The pack renders it via ezdxf paths, so it previews cleanly with DXF Preview and carries through DXF to SVG when you want the rounded rect as SVG geometry for the rest of the vector pipeline.

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 centered flag is the gotcha - flip it and your shape shifts by half its width and height. And a radius larger than half the smaller dimension will just pinch the corners together into something odd; keep it proportional to the size of the rectangle. Same wiring rule as the whole family: no previous dxf input, no carried-over drawing.

CategoryDAO_master/DXF/Primitives

Inputs (7)

NameTypeDefaultDescription
dxfDXF
xFLOAT0.00
yFLOAT0.00
widthFLOAT20.00
heightFLOAT10.00
radiusFLOAT2.00
centeredBOOLEANfalse

Outputs (1)

NameTypeDescription
DXFDXF