#
add_circle
Draw a circle in 2D, from center point and radius, using N line segments.
#
Parameters
- center : array
- Center point: center = [x0,y0] in 2D, center = [x0,y0,z0] in 3D
- radius : float
- Radius.
- N : int
- Number of linearly spaced line segments
#
See also
#
Examples
model2d.add_circle([0,0], radius=2, N=12)
model3d.add_circle([0,0,0], radius=4, N=16)
See also
add_arc
Draw an arc in 2D, using N line segments between two points and a midpoint.
add_line
Add a line defined by two points.
add_nprism
Draw a Nprism in 3D.
add_polygons
Add a list of polygons defined by an array of two-dimensional arrays of vertex points for each polygon.
add_sphere
Add a sphere from center point and radius, using N line segments.
add_vertex
Create a point in 2D or 3D.