Method AddBox
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
AddBox(object, double, double, double, double, bool, object)
Creats a box as a vdPolyface object type and returns the created object.
public object AddBox(object insertionPoint, double length, double width, double height, double rotation, bool drawit, object entities)
Parameters
insertionPointobjectThe insertion point of the box as an array of [x,y,z]
lengthdoubleThe length of the box
widthdoubleThe width of the box
heightdoubleThe height of the box
rotationdoubleThe rotation of the box in radians around the Z axis and relative to insertion point
drawitboolDefines if the vdPolyline object will be drawn.
entitiesobjectThe entities collection where the polyline will be added. This can be the entities of layout or a block.
Returns
- object
A vdPolyface object
Examples
vdcanvas.AddBox([-2, -2, 0], 6, 3, 10, vdgeo.HALF_PI / 2.0, true);