Shapes module

shapes module

Line(length, direction, dl[, anchor, name])

1D line aligned to a principal axis, then reoriented.

SymmLines(length, direction, symm_plane, ...)

Two symmetrical lines centered at origin and aligned along direction.

Arc(r, phi_range, dl[, plane, name, anchor])

2D circular arc on a plane.

ConcentricArc(r_out, r_in, dl[, plane, ...])

Two concentric arcs.

Circle(r, dl[, plane, name, anchor])

Full circle as an arc over [0,360).

Rectangle(length, width, dl[, plane, name, ...])

2D rectangle boundary (inner dimensions).

ThickRectangle(length, width, n_thick, dl[, ...])

Rectangle wall with thickness inwards/outwards by dl-layers.

FilledRectangle(length, width, dl[, plane, ...])

2D filled rectangle.

ThickRing(r_out, r_in, dl[, plane, name, anchor])

2D thick ring (full circle).

FilledCircle(r, dl[, plane, name, anchor])

2D filled circle (ring with r_in=0).

Block(length, width, height, dl[, name, anchor])

3D block by stacking a filled rectangle along the z-axis.

ThickBlockWall(length, width, height, ...[, ...])

3D thick walls of a rectangular box, including side walls and top/bottom lids.

CylinderSide(r, l_axis, dl[, axis, name, anchor])

Side surface of a cylinder.

ThickCylinderSide(r_out, r_in, l_axis, dl[, ...])

Thick wall of a cylinder.

FilledCylinder(r, l_axis, dl[, axis, name, ...])

Filled cylinder volume.

TorusSurface(r_minor, r_major, dl[, n_ring, ...])

3D torus surface (tube radius r_minor around circle radius r_major).

ThickTorusWall(r_in, r_major, n_thick, dl[, ...])

3D thick wall of a torus.

FilledTorus(r_minor, r_major, dl[, plane, ...])

3D filled torus volume.

SphereSurface(r, dl[, name, anchor])

3D sphere surface.

ThickSphere(r_out, r_in, dl[, name, anchor])

Thick spherical shell between inner and outer spheres.

FilledSphere(r, dl[, name, anchor])

Filled sphere volume.