1.3.49
 
Loading...
Searching...
No Matches
Compound Objects

Geometric objects comprised of multiple primitives. More...

Functions

uint helios::Context::addTileObject (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
uint helios::Context::addTileObject (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const RGBcolor &color)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
uint helios::Context::addTileObject (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
uint helios::Context::addTileObject (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile, const int2 &texture_repeat)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, float radius)
 Add a spherical compound object to the Context.
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, float radius, const RGBcolor &color)
 Add a spherical compound object to the Context.
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, float radius, const char *texturefile)
 Add a spherical compound object to the Context colored by texture map.
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, const vec3 &radius)
 Add a spherical/ellipsoidal compound object to the Context.
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, const vec3 &radius, const RGBcolor &color)
 Add a spherical/ellipsoidal compound object to the Context.
 
uint helios::Context::addSphereObject (uint Ndivs, const vec3 &center, const vec3 &radius, const char *texturefile)
 Add a spherical/ellipsoidal compound object to the Context colored by texture map.
 
uint helios::Context::addTubeObject (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius)
 Add a 3D tube compound object to the Context.
 
uint helios::Context::addTubeObject (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius, const std::vector< RGBcolor > &color)
 Add a 3D tube compound object to the Context and specify its diffuse color.
 
uint helios::Context::addTubeObject (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius, const char *texturefile)
 Add a 3D tube compound object to the Context that is texture-mapped. Texture is mapped to span the entire tube.
 
uint helios::Context::addTubeObject (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius, const char *texturefile, const std::vector< float > &textureuv_ufrac)
 Add a 3D tube compound object to the Context that is texture-mapped.
 
uint helios::Context::addBoxObject (const vec3 &center, const vec3 &size, const int3 &subdiv)
 Add a rectangular prism tessellated with Patch primitives.
 
uint helios::Context::addBoxObject (const vec3 &center, const vec3 &size, const int3 &subdiv, const RGBcolor &color)
 Add a rectangular prism tessellated with Patch primitives.
 
uint helios::Context::addBoxObject (const vec3 &center, const vec3 &size, const int3 &subdiv, const char *texturefile)
 Add a rectangular prism tessellated with Patch primitives.
 
uint helios::Context::addBoxObject (const vec3 &center, const vec3 &size, const int3 &subdiv, const RGBcolor &color, bool reverse_normals)
 Add a rectangular prism tessellated with Patch primitives.
 
uint helios::Context::addBoxObject (vec3 center, const vec3 &size, const int3 &subdiv, const char *texturefile, bool reverse_normals)
 Add a rectangular prism tessellated with Patch primitives.
 
uint helios::Context::addDiskObject (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size)
 Add new Disk geometric primitive to the Context given its center, and size.
 
uint helios::Context::addDiskObject (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBcolor &color)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBAcolor &color)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texture_file)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBcolor &color)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBAcolor &color)
 Add new Disk Compound Object.
 
uint helios::Context::addDiskObject (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texturefile)
 Add new Disk Compound Object.
 
uint helios::Context::addPolymeshObject (const std::vector< uint > &UUIDs)
 Add new Polymesh Compound Object.
 
uint helios::Context::addConeObject (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1)
 Add a 3D cone compound object to the Context.
 
uint helios::Context::addConeObject (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1, const RGBcolor &color)
 Add a 3D cone compound object to the Context and specify its diffuse color.
 
uint helios::Context::addConeObject (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1, const char *texturefile)
 Add a 3D cone compound object to the Context that is texture-mapped.
 
std::vector< uinthelios::Context::addSphere (uint Ndivs, const vec3 &center, float radius)
 Add a spherical compound object to the Context.
 
std::vector< uinthelios::Context::addSphere (uint Ndivs, const vec3 &center, float radius, const RGBcolor &color)
 Add a spherical compound object to the Context.
 
std::vector< uinthelios::Context::addSphere (uint Ndivs, const vec3 &center, float radius, const char *texturefile)
 Add a spherical compound object to the Context colored by texture map.
 
std::vector< uinthelios::Context::addTile (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
std::vector< uinthelios::Context::addTile (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const RGBcolor &color)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
std::vector< uinthelios::Context::addTile (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled)
 
std::vector< uinthelios::Context::addTile (const vec3 &center, const vec2 &size, const SphericalCoord &rotation, const int2 &subdiv, const char *texturefile, const int2 &texture_repeat)
 Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)
 
std::vector< uinthelios::Context::addTube (uint Ndivs, const std::vector< vec3 > &nodes, const std::vector< float > &radius)
 Add a 3D tube compound object to the Context.
 
std::vector< uinthelios::Context::addTube (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius, const std::vector< RGBcolor > &color)
 Add a 3D tube compound object to the Context and specify its diffuse color.
 
std::vector< uinthelios::Context::addTube (uint radial_subdivisions, const std::vector< vec3 > &nodes, const std::vector< float > &radius, const char *texturefile)
 Add a 3D tube compound object to the Context that is texture-mapped.
 
std::vector< uinthelios::Context::addBox (const vec3 &center, const vec3 &size, const int3 &subdiv)
 Add a rectangular prism tessellated with Patch primitives.
 
std::vector< uinthelios::Context::addBox (const vec3 &center, const vec3 &size, const int3 &subdiv, const RGBcolor &color)
 Add a rectangular prism tessellated with Patch primitives.
 
std::vector< uinthelios::Context::addBox (const vec3 &center, const vec3 &size, const int3 &subdiv, const char *texturefile)
 Add a rectangular prism tessellated with Patch primitives.
 
std::vector< uinthelios::Context::addBox (const vec3 &center, const vec3 &size, const int3 &subdiv, const RGBcolor &color, bool reverse_normals)
 Add a rectangular prism tessellated with Patch primitives.
 
std::vector< uinthelios::Context::addBox (const vec3 &center, const vec3 &size, const int3 &subdiv, const char *texturefile, bool reverse_normals)
 Add a rectangular prism tessellated with Patch primitives.
 
std::vector< uinthelios::Context::addDisk (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size)
 Add new Disk geometric primitive to the Context given its center, and size.
 
std::vector< uinthelios::Context::addDisk (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBcolor &color)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBAcolor &color)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (uint Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texture_file)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBcolor &color)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const helios::RGBAcolor &color)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addDisk (const int2 &Ndivs, const helios::vec3 &center, const helios::vec2 &size, const helios::SphericalCoord &rotation, const char *texturefile)
 Add new Disk geometric primitive.
 
std::vector< uinthelios::Context::addCone (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1)
 Add a 3D cone to the Context.
 
std::vector< uinthelios::Context::addCone (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1, RGBcolor &color)
 Add a 3D cone to the Context and specify its diffuse color.
 
std::vector< uinthelios::Context::addCone (uint Ndivs, const vec3 &node0, const vec3 &node1, float radius0, float radius1, const char *texturefile)
 Add a 3D cone to the Context that is texture-mapped.
 

Detailed Description

Geometric objects comprised of multiple primitives.

Function Documentation

◆ addBox() [1/5]

std::vector< uint > Context::addBox ( const vec3 center,
const vec3 size,
const int3 subdiv 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
Returns
Vector of UUIDs for each sub-patch
Note
Assumes default color of green
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 2302 of file Context.cpp.

◆ addBox() [2/5]

std::vector< uint > Context::addBox ( const vec3 center,
const vec3 size,
const int3 subdiv,
const char *  texturefile 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]texturefileName of image file for texture map
Returns
Vector of UUIDs for each sub-patch
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 2312 of file Context.cpp.

◆ addBox() [3/5]

std::vector< uint > Context::addBox ( const vec3 center,
const vec3 size,
const int3 subdiv,
const char *  texturefile,
bool  reverse_normals 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]texturefileName of image file for texture map
[in]reverse_normalsFlip all surface normals so that patch normals point inside the box
Returns
Vector of UUIDs for each sub-patch
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 2406 of file Context.cpp.

◆ addBox() [4/5]

std::vector< uint > Context::addBox ( const vec3 center,
const vec3 size,
const int3 subdiv,
const RGBcolor color 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]colorr-g-b color of box
Returns
Vector of UUIDs for each sub-patch
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 2308 of file Context.cpp.

◆ addBox() [5/5]

std::vector< uint > Context::addBox ( const vec3 center,
const vec3 size,
const int3 subdiv,
const RGBcolor color,
bool  reverse_normals 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]colorr-g-b color of box
[in]reverse_normalsFlip all surface normals so that patch normals point inside the box
Returns
Vector of UUIDs for each sub-patch
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 2316 of file Context.cpp.

◆ addBoxObject() [1/5]

uint Context::addBoxObject ( const vec3 center,
const vec3 size,
const int3 subdiv 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
Returns
Object ID of new box object
Note
Assumes default color of green
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 759 of file Context_object.cpp.

◆ addBoxObject() [2/5]

uint Context::addBoxObject ( const vec3 center,
const vec3 size,
const int3 subdiv,
const char *  texturefile 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]texturefileName of image file for texture map
Returns
Object ID of new box object
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 769 of file Context_object.cpp.

◆ addBoxObject() [3/5]

uint Context::addBoxObject ( const vec3 center,
const vec3 size,
const int3 subdiv,
const RGBcolor color 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]colorr-g-b color of box
Returns
Object ID of new box object
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 765 of file Context_object.cpp.

◆ addBoxObject() [4/5]

uint Context::addBoxObject ( const vec3 center,
const vec3 size,
const int3 subdiv,
const RGBcolor color,
bool  reverse_normals 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]colorr-g-b color of box
[in]reverse_normalsFlip all surface normals so that patch normals point inside the box
Returns
Object ID of new box object
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 773 of file Context_object.cpp.

◆ addBoxObject() [5/5]

uint Context::addBoxObject ( vec3  center,
const vec3 size,
const int3 subdiv,
const char *  texturefile,
bool  reverse_normals 
)

Add a rectangular prism tessellated with Patch primitives.

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x-, y-, and z-directions
[in]subdivNumber of subdivisions in x-, y-, and z-directions
[in]texturefileName of image file for texture map
[in]reverse_normalsFlip all surface normals so that patch normals point inside the box
Returns
Object ID of new box object
Note
This version of addBox assumes that all surface normal vectors point away from the box

Definition at line 892 of file Context_object.cpp.

◆ addCone() [1/3]

std::vector< uint > Context::addCone ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1 
)

Add a 3D cone to the Context.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Sample image of a Tube compound object.
Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
Note
Ndivs must be greater than 2.

Definition at line 2623 of file Context.cpp.

◆ addCone() [2/3]

std::vector< uint > Context::addCone ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1,
const char *  texturefile 
)

Add a 3D cone to the Context that is texture-mapped.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
[in]texturefileName of image file for texture map
Note
Ndivs must be greater than 2.

Definition at line 2711 of file Context.cpp.

◆ addCone() [3/3]

std::vector< uint > Context::addCone ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1,
RGBcolor color 
)

Add a 3D cone to the Context and specify its diffuse color.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
[in]colorDiffuse color of the cone.
Note
Ndivs must be greater than 2.

Definition at line 2630 of file Context.cpp.

◆ addConeObject() [1/3]

uint Context::addConeObject ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1 
)

Add a 3D cone compound object to the Context.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Sample image of a Tube compound object.
Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 1216 of file Context_object.cpp.

◆ addConeObject() [2/3]

uint Context::addConeObject ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1,
const char *  texturefile 
)

Add a 3D cone compound object to the Context that is texture-mapped.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
[in]texturefileName of image file for texture map
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 1325 of file Context_object.cpp.

◆ addConeObject() [3/3]

uint Context::addConeObject ( uint  Ndivs,
const vec3 node0,
const vec3 node1,
float  radius0,
float  radius1,
const RGBcolor color 
)

Add a 3D cone compound object to the Context and specify its diffuse color.

A ‘cone’ or ‘cone frustum’ or 'cylinder' compound object comprised of Triangle primitives

Parameters
[in]NdivsNumber of radial divisions of the Cone. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]node0(x,y,z) position defining the base of the cone
[in]node1(x,y,z) position defining the end of the cone
[in]radius0Radius of the cone at the base node.
[in]radius1Radius of the cone at the base node.
[in]colorDiffuse color of each tube segment.
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 1221 of file Context_object.cpp.

◆ addDisk() [1/8]

std::vector< uint > Context::addDisk ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const char *  texturefile 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and a texture map handle.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]texturefilepath to JPEG file to be used as texture
Returns
Vector of UUIDs for each sub-triangle
Note
Assumes a default color of black.

Definition at line 2559 of file Context.cpp.

◆ addDisk() [2/8]

std::vector< uint > Context::addDisk ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBAcolor color 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBAcolor.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B-A color of Disk
Returns
Vector of UUIDs for each sub-triangle

Definition at line 2526 of file Context.cpp.

◆ addDisk() [3/8]

std::vector< uint > Context::addDisk ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBcolor color 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBcolor.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B color of Disk
Returns
Vector of UUIDs for each sub-triangle

Definition at line 2522 of file Context.cpp.

◆ addDisk() [4/8]

std::vector< uint > Context::addDisk ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size 
)

Add new Disk geometric primitive to the Context given its center, and size.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
Returns
Vector of UUIDs for each sub-triangle
Note
Assumes that disk is horizontal.
Assumes a default color of black.

Definition at line 2502 of file Context.cpp.

◆ addDisk() [5/8]

std::vector< uint > Context::addDisk ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, and spherical rotation.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
Returns
Vector of UUIDs for each sub-triangle
Note
Assumes a default color of black.

Definition at line 2506 of file Context.cpp.

◆ addDisk() [6/8]

std::vector< uint > Context::addDisk ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const char *  texture_file 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and a texture map handle.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]texture_filepath to JPEG file to be used as texture
Returns
Vector of UUIDs for each sub-triangle
Note
Assumes a default color of black.

Definition at line 2518 of file Context.cpp.

◆ addDisk() [7/8]

std::vector< uint > Context::addDisk ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBAcolor color 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBAcolor.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B-A color of Disk
Returns
Vector of UUIDs for each sub-triangle

Definition at line 2514 of file Context.cpp.

◆ addDisk() [8/8]

std::vector< uint > Context::addDisk ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBcolor color 
)

Add new Disk geometric primitive.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBcolor.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B color of Disk
Returns
Vector of UUIDs for each sub-triangle

Definition at line 2510 of file Context.cpp.

◆ addDiskObject() [1/8]

uint Context::addDiskObject ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const char *  texturefile 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and a texture map handle.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]texturefilepath to JPEG file to be used as texture
Returns
Object ID of new disk object
Note
Assumes a default color of black.

Definition at line 1088 of file Context_object.cpp.

◆ addDiskObject() [2/8]

uint Context::addDiskObject ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBAcolor color 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBAcolor.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B-A color of Disk
Returns
Object ID of new disk object

Definition at line 1032 of file Context_object.cpp.

◆ addDiskObject() [3/8]

uint Context::addDiskObject ( const int2 Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBcolor color 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBcolor.

Parameters
[in]NdivsNumber of subdivisions for triangulation in the polar (.x) and radial (.y) directions
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B color of Disk
Returns
Object ID of new disk object

Definition at line 1028 of file Context_object.cpp.

◆ addDiskObject() [4/8]

uint Context::addDiskObject ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size 
)

Add new Disk geometric primitive to the Context given its center, and size.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
Returns
Object ID of new disk object
Note
Assumes that disk is horizontal.
Assumes a default color of black.

Definition at line 1008 of file Context_object.cpp.

◆ addDiskObject() [5/8]

uint Context::addDiskObject ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, and spherical rotation.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
Returns
Object ID of new disk object
Note
Assumes a default color of black.

Definition at line 1012 of file Context_object.cpp.

◆ addDiskObject() [6/8]

uint Context::addDiskObject ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const char *  texture_file 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and a texture map handle.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]texture_filepath to JPEG file to be used as texture
Returns
Object ID of new disk object
Note
Assumes a default color of black.

Definition at line 1024 of file Context_object.cpp.

◆ addDiskObject() [7/8]

uint Context::addDiskObject ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBAcolor color 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBAcolor.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B-A color of Disk
Returns
Object ID of new disk object

Definition at line 1020 of file Context_object.cpp.

◆ addDiskObject() [8/8]

uint Context::addDiskObject ( uint  Ndivs,
const helios::vec3 center,
const helios::vec2 size,
const helios::SphericalCoord rotation,
const helios::RGBcolor color 
)

Add new Disk Compound Object.

Method to add a new Disk to the Context given its center, size, spherical rotation, and diffuse RGBcolor.

Parameters
[in]NdivsNumber to triangles used to form disk
[in]center3D coordinates of Disk center
[in]sizelength of Disk semi-major and semi-minor radii
[in]rotationspherical rotation angle (elevation,azimuth) in radians of Disk
[in]colordiffuse R-G-B color of Disk
Returns
Object ID of new disk object

Definition at line 1016 of file Context_object.cpp.

◆ addPolymeshObject()

uint Context::addPolymeshObject ( const std::vector< uint > &  UUIDs)

Add new Polymesh Compound Object.

Method to add a new Polymesh to the Context given a vector of UUIDs

Parameters
[in]UUIDsUnique universal identifiers of primitives to be added to polymesh object
Returns
Object ID of new Polymesh

Definition at line 1172 of file Context_object.cpp.

◆ addSphere() [1/3]

std::vector< uint > Context::addSphere ( uint  Ndivs,
const vec3 center,
float  radius 
)

Add a spherical compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
Returns
Vector of UUIDs for each sub-triangle
Note
Assumes a default color of green

Definition at line 1781 of file Context.cpp.

◆ addSphere() [2/3]

std::vector< uint > Context::addSphere ( uint  Ndivs,
const vec3 center,
float  radius,
const char *  texturefile 
)

Add a spherical compound object to the Context colored by texture map.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
[in]texturefileName of image file for texture map
Returns
Vector of UUIDs for each sub-triangle

Definition at line 1827 of file Context.cpp.

◆ addSphere() [3/3]

std::vector< uint > Context::addSphere ( uint  Ndivs,
const vec3 center,
float  radius,
const RGBcolor color 
)

Add a spherical compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
[in]colorr-g-b color of sphere
Returns
Vector of UUIDs for each sub-triangle

Definition at line 1787 of file Context.cpp.

◆ addSphereObject() [1/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
const vec3 radius 
)

Add a spherical/ellipsoidal compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere in x-, y-, and z-directions
Returns
Object ID of new sphere object.
Note
Assumes a default color of green

Definition at line 32 of file Context_object.cpp.

◆ addSphereObject() [2/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
const vec3 radius,
const char *  texturefile 
)

Add a spherical/ellipsoidal compound object to the Context colored by texture map.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere in x-, y-, and z-directions
[in]texturefileName of image file for texture map
Returns
Object ID of new sphere object.

Definition at line 113 of file Context_object.cpp.

◆ addSphereObject() [3/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
const vec3 radius,
const RGBcolor color 
)

Add a spherical/ellipsoidal compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere in x-, y-, and z-directions
[in]colorr-g-b color of sphere
Returns
Object ID of new sphere object.

Definition at line 36 of file Context_object.cpp.

◆ addSphereObject() [4/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
float  radius 
)

Add a spherical compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
Returns
Object ID of new sphere object.
Note
Assumes a default color of green

Definition at line 20 of file Context_object.cpp.

◆ addSphereObject() [5/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
float  radius,
const char *  texturefile 
)

Add a spherical compound object to the Context colored by texture map.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
[in]texturefileName of image file for texture map
Returns
Object ID of new sphere object.

Definition at line 28 of file Context_object.cpp.

◆ addSphereObject() [6/6]

uint Context::addSphereObject ( uint  Ndivs,
const vec3 center,
float  radius,
const RGBcolor color 
)

Add a spherical compound object to the Context.

Parameters
[in]NdivsNumber of tessellations in zenithal and azimuthal directions
[in]center(x,y,z) coordinate of sphere center
[in]radiusRadius of sphere
[in]colorr-g-b color of sphere
Returns
Object ID of new sphere object.

Definition at line 24 of file Context_object.cpp.

◆ addTile() [1/4]

std::vector< uint > Context::addTile ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
Returns
Vector of UUIDs for each sub-patch
Note
Assumes default color of green

Definition at line 1942 of file Context.cpp.

◆ addTile() [2/4]

std::vector< uint > Context::addTile ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const char *  texturefile 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]texturefileName of image file for texture map
Returns
Vector of UUIDs for each sub-patch

Definition at line 1977 of file Context.cpp.

◆ addTile() [3/4]

std::vector< uint > Context::addTile ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const char *  texturefile,
const int2 texture_repeat 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]texturefileName of image file for texture map
[in]texture_repeatNumber of times to repeat the texture image in the x- and y-directions
Returns
Vector of UUIDs for each sub-patch

Definition at line 1981 of file Context.cpp.

◆ addTile() [4/4]

std::vector< uint > Context::addTile ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const RGBcolor color 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]colorr-g-b color of tiled surface
Returns
Vector of UUIDs for each sub-patch

Definition at line 1948 of file Context.cpp.

◆ addTileObject() [1/4]

uint Context::addTileObject ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
Returns
Object ID of new tile object.
Note
Assumes default color of green

Definition at line 264 of file Context_object.cpp.

◆ addTileObject() [2/4]

uint Context::addTileObject ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const char *  texturefile 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]texturefileName of image file for texture map
Returns
Object ID of new tile object.

Definition at line 332 of file Context_object.cpp.

◆ addTileObject() [3/4]

uint Context::addTileObject ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const char *  texturefile,
const int2 texture_repeat 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled texture)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]texturefileName of image file for texture map
[in]texture_repeatNumber of times to repeat the texture image in the x- and y-directions
Returns
Object ID of new tile object.

Definition at line 336 of file Context_object.cpp.

◆ addTileObject() [4/4]

uint Context::addTileObject ( const vec3 center,
const vec2 size,
const SphericalCoord rotation,
const int2 subdiv,
const RGBcolor color 
)

Add a patch that is subdivided into a regular grid of sub-patches (tiled)

Parameters
[in]center3D coordinates of box center
[in]sizeSize of the box in the x- and y-directions
[in]rotationSpherical rotation of tiled surface
[in]subdivNumber of subdivisions in x- and y-directions
[in]colorr-g-b color of tiled surface
Returns
Object ID of new tile object.

Definition at line 270 of file Context_object.cpp.

◆ addTube() [1/3]

std::vector< uint > Context::addTube ( uint  Ndivs,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius 
)

Add a 3D tube compound object to the Context.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Sample image of a Tube compound object.
Parameters
[in]NdivsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 2063 of file Context.cpp.

◆ addTube() [2/3]

std::vector< uint > Context::addTube ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius,
const char *  texturefile 
)

Add a 3D tube compound object to the Context that is texture-mapped.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
[in]texturefileName of image file for texture map
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 2168 of file Context.cpp.

◆ addTube() [3/3]

std::vector< uint > Context::addTube ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius,
const std::vector< RGBcolor > &  color 
)

Add a 3D tube compound object to the Context and specify its diffuse color.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
[in]colorDiffuse color of each tube segment.
Returns
Vector of UUIDs for each sub-triangle
Note
Ndivs must be greater than 2.

Definition at line 2069 of file Context.cpp.

◆ addTubeObject() [1/4]

uint Context::addTubeObject ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius 
)

Add a 3D tube compound object to the Context.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Sample image of a Tube compound object.
Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
Returns
Object ID of new tube object.
Note
Ndivs must be greater than 2.

Definition at line 451 of file Context_object.cpp.

◆ addTubeObject() [2/4]

uint Context::addTubeObject ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius,
const char *  texturefile 
)

Add a 3D tube compound object to the Context that is texture-mapped. Texture is mapped to span the entire tube.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
[in]texturefileName of image file for texture map
Returns
Object ID of new tube object.
Note
Ndivs must be greater than 2.
The tube is textured such that the x/u direction of the image runs longitudinally along the tube.

Definition at line 592 of file Context_object.cpp.

◆ addTubeObject() [3/4]

uint Context::addTubeObject ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius,
const char *  texturefile,
const std::vector< float > &  textureuv_ufrac 
)

Add a 3D tube compound object to the Context that is texture-mapped.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
[in]texturefileName of image file for texture map
[in]textureuv_ufracVector of texture coordinates (u/longitudinal-direction) for each node position.
Returns
Object ID of new tube object.
Note
Ndivs must be greater than 2.
The tube is textured such that the x/u direction of the image runs longitudinally along the tube.

Definition at line 602 of file Context_object.cpp.

◆ addTubeObject() [4/4]

uint Context::addTubeObject ( uint  radial_subdivisions,
const std::vector< vec3 > &  nodes,
const std::vector< float > &  radius,
const std::vector< RGBcolor > &  color 
)

Add a 3D tube compound object to the Context and specify its diffuse color.

A ‘tube’ or ‘snake’ compound object comprised of Triangle primitives

Parameters
[in]radial_subdivisionsNumber of radial divisions of the Tube. E.g., Ndivs = 3 would be a triangular prism, Ndivs = 4 would be a rectangular prism, etc.
[in]nodesVector of (x,y,z) positions defining Tube segments.
[in]radiusRadius of the tube at each node position.
[in]colorDiffuse color of each tube segment.
Returns
Object ID of new tube object.
Note
Ndivs must be greater than 2.

Definition at line 463 of file Context_object.cpp.