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) Deprecated: use vrdTransformNode! Gets the rotation order of a transform node. |
| Vec3f | getTransformNodeRotatePivot(node,
worldSpace) Deprecated: use vrdTransformNode! Gets the rotate pivot of a transform node. |
| Vec3f | getTransformNodeRotatePivotTranslation(node) Deprecated: use vrdTransformNode! 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) Deprecated: use vrdTransformNode! Gets the rotation value of a transform node. |
| Vec3f | getTransformNodeRotationOrientation(node) Deprecated: use vrdTransformNode! Gets the rotation orientation value of a transform node. |
| Vec3f | getTransformNodeScale(node) Deprecated: use vrdTransformNode! Gets the scale value of a transform node. |
| Vec3f | getTransformNodeScalePivot(node,
worldSpace) Deprecated: use vrdTransformNode! Gets the scale pivot of a transform node. |
| Vec3f | getTransformNodeScalePivotTranslation(node) Deprecated: use vrdTransformNode! 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) Deprecated: use vrdTransformNode! Gets the shear value of a transform node. |
| Vec3f | getTransformNodeTranslation(node,
worldSpace) Deprecated: use vrdTransformNode! 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(priority) Sets the node to be a VRnode. |
|
| setTexturesPriority(node, isVRNode) Deprecated: Changes the priority of all textures. |
|
| setToBSide(node,
isBSide,
node,
isBSide) Sets the B-Side flag of a node. |
|
| setTransformNodeEulerRotationOrder(node,
rotationOrder) Deprecated: use vrdTransformNode! Sets the rotation order of a transform node. |
|
| setTransformNodeRotatePivot(node,
x,
y,
z,
worldSpace) Deprecated: use vrdTransformNode! Sets the rotate pivot of a transform node. |
|
| setTransformNodeRotatePivotTranslation(node,
x,
y,
z) Deprecated: use vrdTransformNode! 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) Deprecated: use vrdTransformNode! Sets the rotation value of a transform node. |
|
| setTransformNodeRotationOrientation(node,
x,
y,
z) Deprecated: use vrdTransformNode! Sets the rotation orientation value of a transform node. |
|
| setTransformNodeScale(node,
x,
y,
z) Deprecated: use vrdTransformNode! Sets the scale value of a transform node. |
|
| setTransformNodeScalePivot(node,
x,
y,
z,
worldSpace) Deprecated: use vrdTransformNode! Sets the scale pn of a transform node. |
|
| setTransformNodeScalePivotTranslation(node,
x,
y,
z) Deprecated: use vrdTransformNode! 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) Deprecated: use vrdTransformNode! Sets the shear value of a transform node. |
|
| setTransformNodeTranslation(node,
x,
y,
z,
worldSpace) Deprecated: use vrdTransformNode! 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 |
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.
|
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()
|
Creates visualization geometry for face normals. Useful for debugging purposes. The created geometry will be added to the root node of the scene.
|
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.
|
Calculates tangents and binormals depending on vertex normals and texture coordinates. Tangents and Binormals are needed for advanced shading materials.
|
Creates visualization geometry for secondary vertex colors. Useful for debugging purposes. The created geometry will be added to the root node of the scene.
|
Creates visualization geometry for vertex colors. Useful for debugging purposes. The created geometry will be added to the root node of the scene.
|
Creates visualization geometry for vertex normals. Useful for debugging purposes. The created geometry will be added to the root node of the scene.
|
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.
|
Converts all Transform nodes of a given subgraph to VRML-ComponentTransform nodes.
|
Converts all Component transform nodes of a given subgraph to normal transform nodes.
|
Creates a new attachment of a given type Types can be:
|
Creates a box object of size x/y/z in a given rgb color.
|
Creates a cone, or parts of it, in a given size and color.
|
Creates a cylinder, or parts of it, in a given size and color.
|
Creates a box with an environment texture.
|
Creates a sphere in a given size and color, with two different resolutions.
|
Creates a line from point a to point b in a given rgb color.
|
Creates a plane object of size x/y in a given rgb color.
|
Converts groups to shell nodes if all children are surfaces.
|
Creates a sphere in a give size and color.
|
Converts degrees to radians.
|
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.
|
Returns the largest geometry with the number of triangles smaller than max_tris_limit.
|
Gets the center of the object bounding volume.
|
Returns all mirrored geometry nodes.
|
Deprecated: use vrdTransformNode! Gets the rotation order of a transform node.
|
Deprecated: use vrdTransformNode! Gets the rotate pivot of a transform node.
|
Deprecated: use vrdTransformNode! 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).
|
Deprecated: use vrdTransformNode! Gets the rotation value of a transform node.
|
Deprecated: use vrdTransformNode! Gets the rotation orientation value of a transform node.
|
Deprecated: use vrdTransformNode! Gets the scale value of a transform node.
|
Deprecated: use vrdTransformNode! Gets the scale pivot of a transform node.
|
Deprecated: use vrdTransformNode! 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)
|
Deprecated: use vrdTransformNode! Gets the shear value of a transform node.
|
Deprecated: use vrdTransformNode! Gets the translation value of a transform node.
|
Queries the B-Side flag of a 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.
|
Normalizes the knot vector of a surfaces. This is required for NURBS raytracing and should be usually done on import.
|
Offsets the geometries vertices along the vertex normal.
|
Reduces memory consumption of Shell Surfaces by removing their names and optimizing some additional data.
|
Optimizes memory usage of textures. Will often lead to significant savings. Does maintain the quality. |
Removes unreferenced nodes.
|
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)
|
Sets the geometry types for a list of nodes.
|
Sets the node to be a VRnode.
|
Deprecated: Changes the priority of all textures.
|
Sets the B-Side flag of a node.
|
Deprecated: use vrdTransformNode! Sets the rotation order of a transform node.
|
Deprecated: use vrdTransformNode! Sets the rotate pivot of a transform node.
|
Deprecated: use vrdTransformNode! 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).
|
Deprecated: use vrdTransformNode! Sets the rotation value of a transform node.
|
Deprecated: use vrdTransformNode! Sets the rotation orientation value of a transform node.
|
Deprecated: use vrdTransformNode! Sets the scale value of a transform node.
|
Deprecated: use vrdTransformNode! Sets the scale pn of a transform node.
|
Deprecated: use vrdTransformNode! 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).
|
Deprecated: use vrdTransformNode! Sets the shear value of a transform node.
|
Deprecated: use vrdTransformNode! Sets the translation value of a transform node.
|
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)
|
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.
|
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.
|
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.
|
Removes core sharing.
|
Fixes ambient occlusion calculations from old vred versions:
|