genart.dev
Plugins

Construction

Construction lines and geometric aids for structural drawing.

Construction aid layers for structural drawing with geometric forms, axes, proportions, and intersection analysis.

Installation

npm install @genart-dev/plugin-construction

Layer Types

Type IDDisplay NameDescription
construction:formFormBasic geometric construction forms (cube, cylinder, sphere)
construction:axisAxisAxis lines with configurable angle and origin
construction:proportionProportionProportional division markers
construction:scaffoldScaffoldScaffolding grid for structural layout
construction:intersectionIntersectionHighlights intersections between construction elements

Properties

construction:form

PropertyTypeDefaultDescription
formTypeselect"cube"Form: cube, cylinder, sphere, cone, prism
sizenumber100Form size in pixels
wireframebooleantrueShow as wireframe
colorcolor"#00aaff40"Line color
lineWidthnumber1Line width

construction:axis

PropertyTypeDefaultDescription
anglenumber0Axis angle in degrees
originXnumber0.5Origin X (0-1 normalized)
originYnumber0.5Origin Y (0-1 normalized)
colorcolor"#ff444040"Line color
lineWidthnumber1Line width
showTicksbooleanfalseShow measurement ticks

construction:proportion

PropertyTypeDefaultDescription
divisionsnumber8Number of proportional divisions
orientationselect"vertical"Orientation: vertical, horizontal, both
colorcolor"#44ff4440"Marker color
showLabelsbooleantrueShow ratio labels

construction:scaffold

PropertyTypeDefaultDescription
columnsnumber4Scaffold columns
rowsnumber4Scaffold rows
marginnumber0.1Outer margin (0-0.5 normalized)
colorcolor"#88888840"Grid color

construction:intersection

PropertyTypeDefaultDescription
radiusnumber6Intersection marker radius
colorcolor"#ff000060"Marker color
autoDetectbooleantrueAutomatically detect intersections

MCP Tools

ToolDescription
design_add_construction_formAdd a geometric construction form
design_add_construction_axisAdd an axis line
design_add_construction_proportionAdd proportional markers
design_add_construction_scaffoldAdd scaffolding grid
design_add_construction_intersectionAdd intersection detection

Example

{
  "tool": "design_add_layer",
  "arguments": {
    "type": "construction:form",
    "properties": {
      "formType": "cube",
      "size": 200,
      "wireframe": true,
      "color": "#5588ff60"
    }
  }
}