Tests an object to see if it is valid.
...
Gets the amount of user strings.
...
Vertex location
If the mapping projection is ray_projection, then this is the vertex unit normal. Otherwise n is ignored.
[number, number[]] (number) Nonzero if evaluation is successful. When the mapping is a box or capped cylinder mapping, the value indicates which side was evaluated. Cylinder mapping: 1 = cylinder wall, 2 = bottom cap, 3 = top cap Box mapping: 1 = front, 2 = right, 3 = back, 4 = left, 5 = bottom, 6 = top (number[]) Texture coordinate (u,v,w)
...
...
...
...
Returns true if a valid cylinder is returned.
Returns true if a valid sphere is returned.
StaticCreateThe sides of the box the box are parallel to the plane's coordinate planes. The dx, dy, dz intervals determine the location of the sides.
Determines the location of the front and back planes. The vector plane.xaxis is perpendicular to these planes and they pass through plane.PointAt(dx[0],0,0) and plane.PointAt(dx[1],0,0), respectively.
Determines the location of the left and right planes. The vector plane.yaxis is perpendicular to these planes and they pass through plane.PointAt(0,dy[0],0) and plane.PointAt(0,dy[1],0), respectively.
Determines the location of the top and bottom planes. The vector plane.zaxis is perpendicular to these planes and they pass through plane.PointAt(0,0,dz[0]) and plane.PointAt(0,0,dz[1]), respectively.
If true, the box is treated as a finite capped box.
TextureMapping instance if input is valid
Staticcreatecylinder in world space used to define a cylindrical coordinate system. The angular parameter maps (0,2pi) to texture "u" (0,1), The height parameter maps (height[0],height[1]) to texture "v" (0,1), and the radial parameter maps (0,r) to texture "w" (0,1).
If true, the cylinder is treated as a finite capped cylinder
TextureMapping instance if input is valid
StaticcreateA plane to use for mapping.
portion of the plane's x axis that is mapped to [0,1] (can be a decreasing interval)
portion of the plane's y axis that is mapped to [0,1] (can be a decreasing interval)
portion of the plane's z axis that is mapped to [0,1] (can be a decreasing interval)
TextureMapping instance if input is valid
Staticcreatesphere in world space used to define a spherical coordinate system. The longitude parameter maps (0,2pi) to texture "u" (0,1). The latitude parameter maps (-pi/2,+pi/2) to texture "v" (0,1). The radial parameter maps (0,r) to texture "w" (0,1).
TextureMapping instance if input is valid
StaticcreateTextureMapping instance or null if failed.
StaticdecodeA json formatted object in the following format (values are orientative):
{
version: 10000,
archive3dm: 60,
opennurbs: -1877964208,
data: 'encoded 3dm object data'
}
The unique Id for this texture mapping object.