Class: AxBoxGeometry

AxBoxGeometry(result, xSegments, ySegments, zSegments, texture3x2, xAxisnon-null, yAxisnon-null, zAxisnon-null)

new AxBoxGeometry(result, xSegments, ySegments, zSegments, texture3x2, xAxisnon-null, yAxisnon-null, zAxisnon-null)

Creates a box with the given number of segments New mesh vertices are created with their position filled New mesh indices are created
Parameters:
Name Type Description
result AxDeviceMesh The mesh to hold the box
xSegments Integer The number of segments for the left and right sides of the box
ySegments Integer The number of segments for the top and bottom sides of the box
zSegments Integer The number of segments for the front and back sides of the box
texture3x2 Boolean Denotes whether to create a texture mapping for a single texture holding the six sides in a 3x2 pattern, where the top 3 parts of the texture from left to right represent respectively the left, front and right sides of the box, and the bottom 3 parts of the texture from left to right represent respectively the top, back and bottom sides of the box. If false, each side of the box is texturedto fit a full single texture
xAxis AxVector3 The orientation of the box's X axis. If omitted, the arbitrary X axis is assumed.
yAxis AxVector3 The orientation of the box's Y axis. If omitted, the arbitrary Y axis is assumed.
zAxis AxVector3 The orientation of the box's Z axis. If omitted, the arbitrary Z axis is assumed.
Source:

Methods

CreateGeometry(result, xSegments, ySegments, zSegments, texture3x2, xAxis, yAxis, zAxis)

Creates a box with the given number of segments New mesh vertices are created with their position filled New mesh indices are created
Parameters:
Name Type Description
result AxDeviceMesh The mesh to hold the box
xSegments Integer The number of segments for the left and right sides of the box
ySegments Integer The number of segments for the top and bottom sides of the box
zSegments Integer The number of segments for the front and back sides of the box
texture3x2 Boolean Denotes whether to create a texture mapping for a single texture holding the six sides in a 3x2 pattern, where the top 3 parts of the texture from left to right represent respectively the left, front and right sides of the box, and the bottom 3 parts of the texture from left to right represent respectively the top, back and bottom sides of the box. If false, each side of the box is texturedto fit a full single texture
xAxis AxVector3 The orientation of the box's X axis
yAxis AxVector3 The orientation of the box's Y axis
zAxis AxVector3 The orientation of the box's Z axis
Source:

Documentation generated by JSDoc 3.5.3 on Mon Feb 19 2018 20:39:26 GMT+0200 (FLE Standard Time)