Vertex Struct Reference

This reference page is linked to from the following overview topics: Mesh and Topology.



Detailed Description

Represents a vertex point on a Mesh with its associated data.

A Vertex has an x,y,z position in space, a normal, a "Freeze" value between 0.0 and 1.0, and a boolean flag saying whether or not the vertex is currently selected. Each Mesh object contains a list of Vertex objects.

Definition at line 87 of file mesh.h.

#include <mesh.h>

List of all members.

Public Member Functions

  Vertex (void)
float  Freeze (void) const
  Returns the Freeze value of the Vertex (between 0.0 and 1.0,.
void  SetFreeze (float fFreeze)
  Sets the Freeze value of the Vertex (between 0.0 and 1.0, where.
float  Mask (void) const
  Do not use this method. Layer masks should be accessed via.
void  SetMask (float fMask)
  Do not use this method. Layer masks should be accessed via.
bool  IsSelected (void) const
  Returns the Selected state of the Vertex (true or false)
void  SetSelected (bool bSelected)
  Sets the Selected state of the Vertex (true or false)

Public Attributes

Vector  m_vPos
unsigned int  m_iStrokeID
union {
   tnormal   m_vNormal [4]
   int   m_iNormalIndex
   tnormalv   m_iNormal
}; 

Constructor & Destructor Documentation

Vertex ( void  ) [inline]

Definition at line 91 of file mesh.h.

{ m_vNormal[3] = (m_vNormal[3]&0xff7f)+bSelected*0x80; };

Member Function Documentation

float Freeze ( void  ) const [inline]

Returns the Freeze value of the Vertex (between 0.0 and 1.0,.

where 0.0 is not frozen) The freeze value is used to lock parts of the mesh so they are less affected by sculpting brushes. It is the responsibility of every sculpt brush to take into account the Freeze values on vertices it is modifying.

Definition at line 127 of file mesh.h.

    {
        float m_fV;
        float v;
void SetFreeze ( float  fFreeze ) [inline]

Sets the Freeze value of the Vertex (between 0.0 and 1.0, where.

0.0 is not frozen) The freeze value is used to lock parts of the mesh so they are less affected by sculpting brushes. It is the responsibility of every sculpt brush to take into account the Freeze values on vertices it is modifying.

Definition at line 145 of file mesh.h.

{
float Mask ( void  ) const [inline]

Do not use this method. Layer masks should be accessed via.

LayerMeshData::VertexMask.

Definition at line 155 of file mesh.h.

{
void SetMask ( float  fMask ) [inline]

Do not use this method. Layer masks should be accessed via.

LayerMeshData::VertexMask.

Definition at line 165 of file mesh.h.

{
bool IsSelected ( void  ) const [inline]

Returns the Selected state of the Vertex (true or false)

Definition at line 173 of file mesh.h.

{
void SetSelected ( bool  bSelected ) [inline]

Sets the Selected state of the Vertex (true or false)

Definition at line 179 of file mesh.h.

{
public:
    virtual void Operator(

Member Data Documentation

Definition at line 91 of file mesh.h.

unsigned int m_iStrokeID [mutable]

Definition at line 99 of file mesh.h.

Definition at line 105 of file mesh.h.

Definition at line 107 of file mesh.h.


The documentation for this struct was generated from the following file: