Nodes/ComfyUI_DAO_master/DXF Add Triangle
ComfyUI Node

DXF Add Triangle

Three points, any triangle you can imagine

By orion4d·Created about a year ago·Updated 12 months ago· 11
DXF Add Triangle
  • dxf
  • DXF
x10.00
y10.00
x220.00
y20.00
x310.00
y315.00

Where the polygon node gives you regular shapes, DXF Add Triangle gives you any triangle - you type all three corner coordinates, so nothing about it has to be symmetrical. Equilateral, right-angled, scalene, or wildly lopsided, if it's three straight sides, this node draws it.

It's part of orion4d/ComfyUI_DAO_master, the French-authored vector-and-image pack built on ezdxf. Same non-destructive family pattern: input document copied, triangle added, new document out.

How it works

Six floats, three corners:

  • x1, y1 - first corner (defaults 0, 0).
  • x2, y2 - second corner (defaults 20, 0).
  • x3, y3 - third corner (defaults 10, 15).

Output is a single DXF socket with the updated document.

What to do with it

Triangles are everywhere in geometric design - mountain motifs, pennants, arrows (chain two for a chevron), tessellating patterns, stylized trees. Because you place each corner explicitly, you can also use this node to draw any three-sided shape that doesn't fit the regular-polygon mold, then render with DXF Preview or convert with DXF to SVG.

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

Degenerate triangles - all three points on one line, or two points identical - render as nothing visible, and the node won't warn you. If your preview looks empty after adding a triangle, check that your points actually make a shape. And, as ever with this family, wire in your previous dxf or the triangle starts from a blank document.

CategoryDAO_master/DXF/Primitives

Inputs (7)

NameTypeDefaultDescription
dxfDXF
x1FLOAT0.00
y1FLOAT0.00
x2FLOAT20.00
y2FLOAT0.00
x3FLOAT10.00
y3FLOAT15.00

Outputs (1)

NameTypeDescription
DXFDXF