#
add_box
Create a solid box in 3D between a start and end point.
#
Parameters
- p0 : array
- Start point: p0 = [x0,y0,z0]
- p1 : array
- End point: p1 = [x0,y0,z0]
#
Notes
This function is designed for use in 3D, refer to add_rectangle in 2D.
#
See also
#
Examples
model3d.add_box([0,0,0],[1,2,5])
See also
add_polygons
Add a list of polygons defined by an array of two-dimensional arrays of vertex points for each polygon.
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.