DXF Add Triangle
Three points, any triangle you can imagine
- dxf
- DXF
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.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| dxf | DXF | — | |
| x1 | FLOAT | 0.00 | — |
| y1 | FLOAT | 0.00 | — |
| x2 | FLOAT | 20.00 | — |
| y2 | FLOAT | 0.00 | — |
| x3 | FLOAT | 10.00 | — |
| y3 | FLOAT | 15.00 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| DXF | DXF | — |