Module vrNodeUtils
[frames] | no frames]

Module vrNodeUtils

The get/set TransformNode functions are deprecated; use vrdTransformNode instead.

Functions
 
addFaceNormals(root_node)
See calcFaceNormals with the exception that the calculation is only performed for geometries without normals.
 
cacheVBO(node)
Deprecated and not functional anymore! Rebuilds all vertex buffer objects for the whole scene or the given subtree node.
 
calcFaceNormalRepresentation(length)
Creates visualization geometry for face normals.
 
calcFaceNormals(root_node)
Calculates new vertex normals based on face normals.
 
calcNormalAndBitangent(root_node, textureUnit, tangentTarget, binormalTarget)
Calculates tangents and binormals depending on vertex normals and texture coordinates.
 
calcSecondaryColorRepresentation(length)
Creates visualization geometry for secondary vertex colors.
 
calcVertexColorRepresentation(length)
Creates visualization geometry for vertex colors.
 
calcVertexNormalRepresentation(length)
Creates visualization geometry for vertex normals.
 
calcVertexNormals(root_node, angle)
Calculates new and smooth vertex normals.
 
convertAllToComponentTransform(root_node)
Converts all Transform nodes of a given subgraph to VRML-ComponentTransform nodes.
 
convertAllToTransform(root_node)
Converts all Component transform nodes of a given subgraph to normal transform nodes.
FieldContainerPtr
createAttachment(type)
Creates a new attachment of a given type
vrNodePtr
createBox(size_x, size_y, size_z, res_x, res_y, res_z, red, green, blue, alpha)
Creates a box object of size x/y/z in a given rgb color.
vrNodePtr
createCone(height, radius, sides, create_side, create_bottom, red, green, blue)
Creates a cone, or parts of it, in a given size and color.
vrNodePtr
createCylinder(height, radius, sides, create_side, create_top, create_bottom, red, green, blue)
Creates a cylinder, or parts of it, in a given size and color.
vrNodePtr
createEnvBox(size, res_x, res_y, res_z, red, green, blue, transparency, texture)
Creates a box with an environment texture.
vrNodePtr
createLatLongSphere(latres, longres, radius, red, green, blue)
Creates a sphere in a given size and color, with two different resolutions.
vrNodePtr
createLine(ax, ay, az, bx, by, bz, red, green, blue)
Creates a line from point a to point b in a given rgb color.
 
createMipmaps()
Creates mipmaps for all textures.
vrNodePtr
createPlane(size_x, size_y, res_x, res_y, red, green, blue)
Creates a plane object of size x/y in a given rgb color.
bool
createShellNodes(node)
Converts groups to shell nodes if all children are surfaces.
vrNodePtr
createSphere(resolution, radius, red, green, blue)
Creates a sphere in a give size and color.
float (32bit)
degToRad(degrees)
Converts degrees to radians.
 
downscaleTextures(factor)
Downscale all textures within the scene.
NodePtr
findLargestGeometry(max_tris_limit)
Returns the largest geometry with the number of triangles smaller than max_tris_limit.
Vec3f
getBoundingBoxCenter(node, worldSpace)
Gets the center of the object bounding volume.
list of vrNodePtrs
getMirroredNodes(root_node, invert)
Returns all mirrored geometry nodes.
string
getTransformNodeEulerRotationOrder(node)
Gets the rotation order of a transform node.
Vec3f
getTransformNodeRotatePivot(node, worldSpace)
Gets the rotate pivot of a transform node.
Vec3f
getTransformNodeRotatePivotTranslation(node)
Gets the rotate pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).
Vec3f
getTransformNodeRotation(node)
Gets the rotation value of a transform node.
Vec3f
getTransformNodeRotationOrientation(node)
Gets the rotation orientation value of a transform node.
Vec3f
getTransformNodeScale(node)
Gets the scale value of a transform node.
Vec3f
getTransformNodeScalePivot(node, worldSpace)
Gets the scale pivot of a transform node.
Vec3f
getTransformNodeScalePivotTranslation(node)
Gets the scale pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved)
Vec3f
getTransformNodeShear(node)
Gets the shear value of a transform node.
Vec3f
getTransformNodeTranslation(node, worldSpace)
Gets the translation value of a transform node.
bool
isBSide(node)
Queries the B-Side flag of a node.
 
normalizeNormals(root_node)
Recalculates the vertex normals to have unit length.
 
normalizeSurfaces(root_node)
Normalizes the knot vector of a surfaces.
 
offsetAlongNormal(root_node, offset)
Offsets the geometries vertices along the vertex normal.
 
optimizeShellSurfaces(node)
Reduces memory consumption of Shell Surfaces by removing their names and optimizing some additional data.
 
optimizeTextures()
Optimizes memory usage of textures.
 
removeUnreferencedNodes(node)
Removes unreferenced nodes.
 
setDisplayList(node, enable)
Enables(true)/disables(false) usage of display lists for rendering for the whole scene or a given subgraph.
 
setGeometryType(nodes, geoTypes)
Sets the geometry types for a list of nodes.
 
setIsVRNode(node, isVRNode)
Sets the node to be a VRnode.
 
setTexturesPriority(priority)
Deprecated: Changes the priority of all textures.
 
setToBSide(node, isBSide, node, isBSide)
Sets the B-Side flag of a node.
 
setTransformNodeEulerRotationOrder(node, rotationOrder)
Sets the rotation order of a transform node.
 
setTransformNodeRotatePivot(node, x, y, z, worldSpace)
Sets the rotate pivot of a transform node.
 
setTransformNodeRotatePivotTranslation(node, x, y, z)
Sets the rotate pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).
 
setTransformNodeRotation(node, x, y, z)
Sets the rotation value of a transform node.
 
setTransformNodeRotationOrientation(node, x, y, z)
Sets the rotation orientation value of a transform node.
 
setTransformNodeScale(node, x, y, z)
Sets the scale value of a transform node.
 
setTransformNodeScalePivot(node, x, y, z, worldSpace)
Sets the scale pn of a transform node.
 
setTransformNodeScalePivotTranslation(node, x, y, z)
Sets the scale pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).
 
setTransformNodeShear(node, xy, xz, yz)
Sets the shear value of a transform node.
 
setTransformNodeTranslation(node, x, y, z, worldSpace)
Sets the translation value of a transform node.
 
setVBO(node, enable)
Deprecated: Enables(true)/disables(false) usage of vertex buffer objects for rendering for the whole scene or a given subgraph.
 
swapFaceNormals(root_node)
Swaps the orientation of face normals.
 
swapNormals(root_node)
Swaps the orientation of face and vertex normals.
 
swapVertexNormals(root_node)
Swaps the orientation of vertex normals.
 
unshareCores(node)
Removes core sharing.
 
updateAmbientOcclusionData(root_node)
Fixes ambient occlusion calculations from old vred versions:
Function Details

addFaceNormals(root_node)

 

See calcFaceNormals with the exception that the calculation is only performed for geometries without normals. There are two functions to generate them:

addFaceNormals() Adds face normals for the complete scene.

addFaceNormals(root_node) Adds face normals for a given subgraph.

Parameters:
  • root_node (NodePtr) - The root node of the subgraph (Optional).

cacheVBO(node)

 

Deprecated and not functional anymore! Rebuilds all vertex buffer objects for the whole scene or the given subtree node. There are two valid sets of parameters:

cacheVBO(node) or

cacheVBO()

Parameters:
  • node (NodePtr) - The root node of the subgraph (Optional).

calcFaceNormalRepresentation(length)

 

Creates visualization geometry for face normals. Useful for debugging purposes. The created geometry will be added to the root node of the scene.

Parameters:
  • length (float) - The length of the created lines.

calcFaceNormals(root_node)

 

Calculates new vertex normals based on face normals. There are two functions to generate them:

calcVertexNormals() Calculates new face normals for the complete scene.

calcVertexNormals(root_node) Calculates new face normals for a given subgraph.

Parameters:
  • root_node (NodePtr) - The root node of the subgraph (Optional).

calcNormalAndBitangent(root_node, textureUnit, tangentTarget, binormalTarget)

 

Calculates tangents and binormals depending on vertex normals and texture coordinates. Tangents and Binormals are needed for advanced shading materials.

Parameters:
  • root_node (vrNodePtr) - The root node of the subgraph.
  • textureUnit (integer) - Texture unit.
  • tangentTarget (integer) - Tangent target.
  • binormalTarget (integer) - Binormal target.

calcSecondaryColorRepresentation(length)

 

Creates visualization geometry for secondary vertex colors. Useful for debugging purposes. The created geometry will be added to the root node of the scene.

Parameters:
  • length (float) - The length of the created lines.

calcVertexColorRepresentation(length)

 

Creates visualization geometry for vertex colors. Useful for debugging purposes. The created geometry will be added to the root node of the scene.

Parameters:
  • length (float) - The length of the created lines.

calcVertexNormalRepresentation(length)

 

Creates visualization geometry for vertex normals. Useful for debugging purposes. The created geometry will be added to the root node of the scene.

Parameters:
  • length (float) - The length of the created lines.

calcVertexNormals(root_node, angle)

 

Calculates new and smooth vertex normals. There are three functions to generate vertex normals:

calcVertexNormals() Calculates new vertex normals for the complete scene.

calcVertexNormals(angle) Calculates new vertex normals for the complete scene with respect to dihedral angle.

calcVertexNormals(root_node,angle) Calculates new vertex normals for a given subgraph with respect to dihedral angle.

Parameters:
  • root_node (NodePtr) - The root node of the subgraph (Optional).
  • angle (float (32bit)) - The angle in degrees (Optional).

convertAllToComponentTransform(root_node)

 

Converts all Transform nodes of a given subgraph to VRML-ComponentTransform nodes.

Parameters:
  • root_node (NodePtr) - The root node of the subgraph.

convertAllToTransform(root_node)

 

Converts all Component transform nodes of a given subgraph to normal transform nodes.

Parameters:
  • root_node (NodePtr) - The root node of the subgraph.

createAttachment(type)

 

Creates a new attachment of a given type

Types can be:

  • Name
  • ValuePair
  • TagAttachment
  • any attachment type that is supported by VRED
Parameters:
  • type (string) - The type of the attachment.
Returns: FieldContainerPtr
The created attachment.

createBox(size_x, size_y, size_z, res_x, res_y, res_z, red, green, blue, alpha)

 

Creates a box object of size x/y/z in a given rgb color.

Parameters:
  • size_x (float (32bit)) - The size in dimension x.
  • size_y (float (32bit)) - The size in dimension y.
  • size_z (float (32bit)) - The size in dimension z.
  • res_x (short unsigned (16bit)) - The resolution in dimension x for the subdivision.
  • res_y (short unsigned (16bit)) - The resolution in dimension y for the subdivision.
  • res_z (short unsigned (16bit)) - The resolution in dimension z for the subdivision.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
  • alpha (float (32bit)) - The alpha value in [0.0, 1.0] (Optional).
Returns: vrNodePtr
A pointer to the box.

createCone(height, radius, sides, create_side, create_bottom, red, green, blue)

 

Creates a cone, or parts of it, in a given size and color.

Parameters:
  • height (float (32bit)) - The height of the cone.
  • radius (float (32bit)) - The bottom radius of the cone.
  • sides (short unsigned (16bit)) - The number of elements the side consists of.
  • create_side (bool) - Creation of side geometry: On/Off.
  • create_bottom (bool) - Creation of bottom geometry: On/Off.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the cone.

createCylinder(height, radius, sides, create_side, create_top, create_bottom, red, green, blue)

 

Creates a cylinder, or parts of it, in a given size and color.

Parameters:
  • height (float (32bit)) - The height of the cylinder.
  • radius (float (32bit)) - The radius of the cylinder.
  • sides (short unsigned (16bit)) - The number of elements the side consists of.
  • create_side (bool) - Creation of side geometry: On/Off.
  • create_top (bool) - Creation of top geometry: On/Off.
  • create_bottom (bool) - Creation of bottom geometry: On/Off.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the cylinder.

createEnvBox(size, res_x, res_y, res_z, red, green, blue, transparency, texture)

 

Creates a box with an environment texture.

Parameters:
  • size (float (32bit)) - The size of the box.
  • res_x (short unsigned (16bit)) - The resolution in dimension x for the subdivision.
  • res_y (short unsigned (16bit)) - The resolution in dimension y for the subdivision.
  • res_z (short unsigned (16bit)) - The resolution in dimension z for the subdivision.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
  • transparency (float (32bit)) - The transparency of the material in [0.0, 1.0].
  • texture (string) - The name of the texture file.
Returns: vrNodePtr
A pointer to the box.

createLatLongSphere(latres, longres, radius, red, green, blue)

 

Creates a sphere in a given size and color, with two different resolutions.

Parameters:
  • latres (short unsigned (16bit)) - The latitudinal resolution.
  • longres (short unsigned (16bit)) - The longitudinal resolution.
  • radius (float (32bit)) - The radius.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the sphere.

createLine(ax, ay, az, bx, by, bz, red, green, blue)

 

Creates a line from point a to point b in a given rgb color.

Parameters:
  • ax (float (32bit)) - The x component of point a.
  • ay (float (32bit)) - The y component of point a.
  • az (float (32bit)) - The z component of point a.
  • bx (float (32bit)) - The x component of point b.
  • by (float (32bit)) - The y component of point b.
  • bz (float (32bit)) - The z component of point b.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the line.

createPlane(size_x, size_y, res_x, res_y, red, green, blue)

 

Creates a plane object of size x/y in a given rgb color.

Parameters:
  • size_x (float (32bit)) - The size in dimension x.
  • size_y (float (32bit)) - The size in dimension y.
  • res_x (short unsigned (16bit)) - The resolution in dimension x for the subdivision.
  • res_y (short unsigned (16bit)) - The resolution in dimension y for the subdivision.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the plane.

createShellNodes(node)

 

Converts groups to shell nodes if all children are surfaces.

Parameters:
  • node (NodePtr) - The node to start conversion
Returns: bool
true: A shell node was created.

createSphere(resolution, radius, red, green, blue)

 

Creates a sphere in a give size and color.

Parameters:
  • resolution (short unsigned (16bit)) - The resolution (subdivision) of the sphere.
  • radius (float (32bit)) - The radius of the sphere.
  • red (float (32bit)) - The red component of color in [0.0, 1.0].
  • green (float (32bit)) - The green component of color in [0.0, 1.0].
  • blue (float (32bit)) - The blue component of color in [0.0, 1.0].
Returns: vrNodePtr
A pointer to the sphere.

degToRad(degrees)

 

Converts degrees to radians.

Parameters:
  • degrees - The value in degrees.
  • degree (float (32bit))
Returns: float (32bit)
The value in radians.

downscaleTextures(factor)

 

Downscale all textures within the scene. The memory usage for each texture will reduce of quadratic amount of the factor due to their two-dimensional nature.

Parameters:
  • factor (integer (32bit)) - The factor to downscale textures with.

findLargestGeometry(max_tris_limit)

 

Returns the largest geometry with the number of triangles smaller than max_tris_limit.

Parameters:
  • max_tris_limit (unsigned integer) - The maximum number of triangles.
Returns: NodePtr
The node pointer to the largest geometry.

getBoundingBoxCenter(node, worldSpace)

 

Gets the center of the object bounding volume.

Parameters:
  • node (NodePtr) - The node from which to get the center.
  • worldSpace (bool) - Gets the center in world space (true) or local space (false).
Returns: Vec3f
A vector with x, y and z coordinates.

getMirroredNodes(root_node, invert)

 

Returns all mirrored geometry nodes.

Parameters:
  • root_node (NodePtr) - The root node.
  • invert (bool) - Inversion: Enable/Disable (Optional). Default is false.
Returns: list of vrNodePtrs
The nodes.

getTransformNodeEulerRotationOrder(node)

 

Gets the rotation order of a transform node.

Parameters:
  • node (NodePtr) - The node from which to retrieve the rotation order.
Returns: string
Euler rotation order

getTransformNodeRotatePivot(node, worldSpace)

 

Gets the rotate pivot of a transform node.

Parameters:
  • node (NodePtr) - The node from which to retrieve the rotate pivot.
  • worldSpace (bool) - Get the rotate pivot in world space (true) or local space (false).
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeRotatePivotTranslation(node)

 

Gets the rotate pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).

Parameters:
  • node (NodePtr) - The node from which to retrieve the translation.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeRotation(node)

 

Gets the rotation value of a transform node.

Parameters:
  • node (NodePtr) - The node from which to retrieve the rotation.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeRotationOrientation(node)

 

Gets the rotation orientation value of a transform node.

Parameters:
  • node (NodePtr) - The node from which to retrieve the rotation orientation.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeScale(node)

 

Gets the scale value of a transform node.

Parameters:
  • node (NodePtr) - The node which to retrieve the scaling.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeScalePivot(node, worldSpace)

 

Gets the scale pivot of a transform node.

Parameters:
  • node (NodePtr) - The node from which to get the scale pivot.
  • worldSpace (bool) - Get scale pivot in world space (true) or local space (false).
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeScalePivotTranslation(node)

 

Gets the scale pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved)

Parameters:
  • node (NodePtr) - The node from which to retrieve the translation.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeShear(node)

 

Gets the shear value of a transform node.

Parameters:
  • node (NodePtr) - The node from which to get the shear value.
Returns: Vec3f
A vector with x, y and z coordinates.

getTransformNodeTranslation(node, worldSpace)

 

Gets the translation value of a transform node.

Parameters:
  • node (NodePtr) - The node from which to retrieve the translation.
  • worldSpace (bool) - gets the translation in world space (true) or local space (false).
Returns: Vec3f
A vector with x, y and z coordinates.

isBSide(node)

 

Queries the B-Side flag of a node.

Parameters:
  • node (NodePtr) - The node to check the B-Side flag.
Returns: bool
true: Node is B-Side, false: Node is A-Side.

normalizeNormals(root_node)

 

Recalculates the vertex normals to have unit length. There are two functions to calculate them:

normalizeNormals(root_node) normalize the normals for the complete scene.

normalizeNormals(root_nodes) normalize the normals for a given subgraph.

Parameters:
  • root_node (vrNodePtr or list of vrNodePtrs) - The root node of the subgraph or a list of nodes.

normalizeSurfaces(root_node)

 

Normalizes the knot vector of a surfaces. This is required for NURBS raytracing and should be usually done on import.

Parameters:
  • root_node (vrNodePtr) - The root node of the subgraph.

offsetAlongNormal(root_node, offset)

 

Offsets the geometries vertices along the vertex normal.

Parameters:
  • root_node (vrNodePtr) - The root_node to offset.
  • offset - The offset amount.
  • float (float)

optimizeShellSurfaces(node)

 

Reduces memory consumption of Shell Surfaces by removing their names and optimizing some additional data.

Parameters:
  • node (NodePtr) - The root node.

optimizeTextures()

 

Optimizes memory usage of textures. Will often lead to significant savings. Does maintain the quality.

removeUnreferencedNodes(node)

 

Removes unreferenced nodes.

Parameters:
  • node (NodePtr) - The root node.

setDisplayList(node, enable)

 

Enables(true)/disables(false) usage of display lists for rendering for the whole scene or a given subgraph. Rendering static geometry with display list is typically much faster. There are two valid sets of parameters:

setDisplayList(node,enable) or

setDisplayList(enable)

Parameters:
  • node (NodePtr) - The root node of the subgraph (Optional).
  • enable (bool) - Enable or disable display lists.

setGeometryType(nodes, geoTypes)

 

Sets the geometry types for a list of nodes.

Parameters:
  • nodes (list of vrNodePtrs) - The nodes.
  • geoTypes (list of integers (unsigned 32bit)) - The list of geometry types.

setIsVRNode(node, isVRNode)

 

Sets the node to be a VRnode.

Parameters:
  • node (NodePtr) - The node to set the VR Node flag.
  • isVRNode (bool) - The VR node on/off flag.

setTexturesPriority(priority)

 

Deprecated: Changes the priority of all textures.

Parameters:
  • priority (float (32bit)) - The priority value in [0.0, 1.0].

setToBSide(node, isBSide, node, isBSide)

 

Sets the B-Side flag of a node.

Parameters:
  • node (NodePtr) - The node to set the B-Side flag.
  • isBSide (bool

    Sets the B-side flags for a list of nodes.

    ) - The B-Side on/off flag.
  • node (NodePtr) - The nodes.
  • isBSide (bool

    Sets the B-side flags for a list of nodes.

    ) - The B-Side on/off flag.

setTransformNodeEulerRotationOrder(node, rotationOrder)

 

Sets the rotation order of a transform node.

Parameters:
  • node (NodePtr) - The node to set the rotation order.
  • rotationOrder (string) - The rotation order, e.g. "xyz" or "zyx"

setTransformNodeRotatePivot(node, x, y, z, worldSpace)

 

Sets the rotate pivot of a transform node.

Parameters:
  • node (NodePtr) - The node for which to set the rotate pivot.
  • x (float) - The x axis rotate pivot.
  • y (float) - The y axis rotate pivot.
  • z (float) - The z axis rotate pivot.
  • worldSpace (bool) - Set the rotate pivot in world space (true) or local space (false).

setTransformNodeRotatePivotTranslation(node, x, y, z)

 

Sets the rotate pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).

Parameters:
  • node (NodePtr) - The node to translate.
  • x (float) - The x axis translation.
  • y (float) - The y axis translation.
  • z (float) - The z axis translation.

setTransformNodeRotation(node, x, y, z)

 

Sets the rotation value of a transform node.

Parameters:
  • node (NodePtr) - The node to rotate.
  • x (float) - The x axis rotation.
  • y (float) - The y axis rotation.
  • z (float) - The z axis rotation.

setTransformNodeRotationOrientation(node, x, y, z)

 

Sets the rotation orientation value of a transform node.

Parameters:
  • node (NodePtr) - The node to orientate.
  • x (float) - The x axis rotation orientation.
  • y (float) - The y axis rotation orientation.
  • z (float) - The z axis rotation orientation.

setTransformNodeScale(node, x, y, z)

 

Sets the scale value of a transform node.

Parameters:
  • node (NodePtr) - The node to scale.
  • x (float) - The x axis scale.
  • y (float) - The y axis scale.
  • z (float) - The z axis scale.

setTransformNodeScalePivot(node, x, y, z, worldSpace)

 

Sets the scale pn of a transform node.

Parameters:
  • node (NodePtr) - The node for which to set the scale pivot.
  • x (float) - The x axis scale pivot.
  • y (float) - The y axis scale pivot.
  • z (float) - The z axis scale pivot.
  • worldSpace (bool) - Set the scale pivot in world space (true) or local space (false).

setTransformNodeScalePivotTranslation(node, x, y, z)

 

Sets the scale pivot translation value of a transform node (This translation has been introduced to prevent an object from moving when the pivot is moved).

Parameters:
  • node (NodePtr) - The node to translate.
  • x (float) - The x axis translation.
  • y (float) - The y axis translation.
  • z (float) - The z axis translation.

setTransformNodeShear(node, xy, xz, yz)

 

Sets the shear value of a transform node.

Parameters:
  • node (NodePtr) - The node to shear.
  • xy (float) - The xy shear.
  • xz (float) - The xz shear.
  • yz (float) - The yz shear.

setTransformNodeTranslation(node, x, y, z, worldSpace)

 

Sets the translation value of a transform node.

Parameters:
  • node (NodePtr) - The node to translate.
  • x (float) - The x axis translation.
  • y (float) - The y axis translation.
  • z (float) - The z axis translation.
  • worldSpace (bool) - Sets the translation in world space (true) or local space (false).

setVBO(node, enable)

 

Deprecated: Enables(true)/disables(false) usage of vertex buffer objects for rendering for the whole scene or a given subgraph. There are two valid sets of parameters:

setVBO(node,enable) or

setVBO(enable)

Parameters:
  • node (NodePtr) - The root node of the subgraph (Optional).
  • enable (bool) - Enable or disable vbos.

swapFaceNormals(root_node)

 

Swaps the orientation of face normals. There are two functions to swap them:

swapFaceNormals(root_node) swaps the normals for the complete scene.

swapFaceNormals(root_nodes) swaps the normals for a given subgraph.

Parameters:
  • root_node (vrNodePtr or list of vrNodePtrs) - The root node of the subgraph or a list of nodes.

swapNormals(root_node)

 

Swaps the orientation of face and vertex normals. There are two functions to swap them:

swapNormals(root_node) swaps the normals for the complete scene.

swapNormals(root_nodes) swaps the normals for a given subgraph.

Parameters:
  • root_node (vrNodePtr or list of vrNodePtrs) - The root node of the subgraph or a list of nodes.

swapVertexNormals(root_node)

 

Swaps the orientation of vertex normals. There are two functions to swap them:

swapVertexNormals(root_node) swaps the normals for the complete scene.

swapVertexNormals(root_nodes) swaps the normals for a given subgraph.

Parameters:
  • root_node (vrNodePtr or list of vrNodePtrs) - The root node of the subgraph or a list of nodes.

unshareCores(node)

 

Removes core sharing. Deprecated, use vrNodeService.unshareNodes in API v2 instead.

Parameters:
  • node (NodePtr) - The root node.

updateAmbientOcclusionData(root_node)

 

Fixes ambient occlusion calculations from old vred versions:

Parameters:
  • root_node - The root node of the subgraph.