1D Primitives
edge
Create a 1D edge (line segment) with a given length. Edges are the simplest primitive in PythonSCAD and can be extruded to create 2D shapes, or used to inspect edge geometry.
Syntax:
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
size |
float | 1 |
Length of the edge (must be positive) |
center |
bool | False |
Center the edge on the origin |
Examples: