Instrinsic-158 Add3DRectangle

intrinsic-158 Add3DRectangle

Top  Previous  Next

158: Add3DRectangle(Handle, X1,Y1,Z1, X2,Y2,Z2, X3,Y3,Z3, X4,Y4,Z4, Color);

 

This intrinsic adds a rectangle to an existing mesh. To insure that the rectangle is always a convex hull, the rectangle is converted to two triangles.

 

Arguments:
 

Handle. This argument is an integer handle created by the Add3DObject intrinsic. It specifies the mesh to which the rectangle is added. The handle must refer to a Mesh object.

 

X1,Y1,Z1, X2,Y2,Z2, X3,Y3,Z3, X4,Y4,Z4,. These 12 items are real values that specify the X, Y and Z coordinates of the four corners of the rectangle.

 

Color: This is an integer value that specifies the RGB Color of the rectangle.