#
add_polygons
Add a list of polygons defined by an array of two-dimensional arrays of vertex points for each polygon.
#
Parameters
- points : list of polygons defined by an array of two-dimensional arrays of vertex points for each polygon
#
See also
#
Notes
add_polygons is faster than using add_polygon sequentially
#
Examples
model2d.add_polygons([[[0,0],[1,0],[1,1]],[[2,0],[3,0],[4,5]]])
model3d.add_polygons([[[0,0,0],[1,0,0],[1,1,2]],[[2,0,4],[3,0,1],[4,5,3]]])
See also
add_arc
Draw an arc in 2D, using N line segments between two points and a midpoint.
add_box
Create a solid box in 3D between a start and end point.
add_circle
Draw a circle in 2D, from center point and radius, using N line segments.
add_line
Add a line defined by two points.
add_nprism
Draw a Nprism in 3D.
add_polygon
Add a polygon defined by a two-dimensional array of vertex points.
add_rectangle
Create a rectangle in 2D between a start and end point.
add_sphere
Add a sphere from center point and radius, using N line segments.
add_vertex
Create a point in 2D or 3D.