VisualModelImpl
Generic visual model. If a viewer is active it will replace the VisualModel alias, otherwise nothing will be displayed.
Vec3d
Templates:
- Vec3d
Target: Sofa.Component.Visual
namespace: sofa::component::visual
parents:
- VisualModel
- VisualState
Data
| Name | Description | Default value |
|---|---|---|
| name | object name | unnamed |
| printLog | if true, emits extra messages at runtime. | 0 |
| tags | list of the subsets the object belongs to | |
| bbox | this object bounding box | |
| componentState | The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). | Undefined |
| listening | if true, handle the events, otherwise ignore the events | 0 |
| enable | Display the object or not | 1 |
| initRestPositions | True if rest positions must be initialized with initial positions | 0 |
| useNormals | True if normal smoothing groups should be read from file | 1 |
| updateNormals | True if normals should be updated at each iteration | 1 |
| computeTangents | True if tangents should be computed at startup | 0 |
| updateTangents | True if tangents should be updated at each iteration | 1 |
| handleDynamicTopology | True if topological changes should be handled | 1 |
| fixMergedUVSeams | True if UV seams should be handled even when duplicate UVs are merged | 1 |
| keepLines | keep and draw lines (false by default) | 0 |
| vertPosIdx | If vertices have multiple normals/texcoords stores vertices position indices | |
| vertNormIdx | If vertices have multiple normals/texcoords stores vertices normal indices | |
| filename | Path to an ogl model | |
| texturename | Name of the Texture | |
| scaleTex | Scale of the texture | 1 1 |
| translationTex | Translation of the texture | 0 0 |
| material | Material | |
| putOnlyTexCoords | Give Texture Coordinates without the texture binding | 0 |
| srgbTexturing | When sRGB rendering is enabled, is the texture in sRGB colorspace? | 0 |
| materials | List of materials | |
| groups | Groups of triangles and quads using a given material | |
| Vector | ||
| position | Vertices coordinates | |
| restPosition | Vertices rest coordinates | |
| normal | Normals of the model | |
| vertices | vertices of the model (only if vertices have multiple normals/texcoords, otherwise positions are used) | |
| texcoords | coordinates of the texture | |
| tangents | tangents for normal mapping | |
| bitangents | tangents for normal mapping | |
| edges | edges of the model | |
| triangles | triangles of the model | |
| quads | quads of the model | |
| Transformation | ||
| translation | Initial Translation of the object | 0 0 0 |
| rotation | Initial Rotation of the object | 0 0 0 |
| scale3d | Initial Scale of the object | 1 1 1 |
Links
| Name | Description | Destination type name |
|---|---|---|
| context | Graph Node containing this object (or BaseContext::getDefault() if no graph is used) | BaseContext |
| slaves | Sub-objects used internally by this object | BaseObject |
| master | nullptr for regular objects, or master object for which this object is one sub-objects | BaseObject |
| topology | link to the topology container | BaseMeshTopology |