Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Graphic3d_VertexNT Class Reference

This class allows the creation and update of
a vertex with a 3D normal and texture coordinate.

#include <Graphic3d_VertexNT.hxx>

Inheritance diagram for Graphic3d_VertexNT:
Inheritance graph
[legend]

Public Member Functions

DEFINE_STANDARD_ALLOC Graphic3d_VertexNT ()
 Creates a point with 0.0, 0.0, 0.0 coordinates
for which the normal is 0.0, 0.0, 1.0.
texture coordinate is 0.0, 0.0.

 Graphic3d_VertexNT (const Standard_Real AX, const Standard_Real AY, const Standard_Real AZ, const Standard_Real ANX, const Standard_Real ANY, const Standard_Real ANZ, const Standard_Real ATX, const Standard_Real ATY=0.0, const Standard_Boolean FlagNormalise=Standard_True)
 Creates a point with coordinates <AX>, <AY>, <AZ> and
for which the normal is <ANX>, <ANY>, <ANZ>,
texture coordinate is <ATX>, <ATY>.
If <FlagNormalise> is True the normal is already normalised
Else the normal is not normalised, the graphic do it.

 Graphic3d_VertexNT (const Graphic3d_Vertex &APoint, const Graphic3d_Vector &AVector, const Standard_Real ATX, const Standard_Real ATY=0.0, const Standard_Boolean FlagNormalise=Standard_True)
 Creates a point in <APoint> for which the normal is <AVector>.
<ATX>, <ATY> are texture coordinate.
If <FlagNormalise> is True the normal is already normalised
Else the normal is not normalised, the graphic do it.

void SetTextureCoordinate (const Standard_Real ATX, const Standard_Real ATY=0.0)
 Modifies the texture coordinate to the point <me>.

void TextureCoordinate (Standard_Real &ATX, Standard_Real &ATY) const
 Returns the texture coordinate to the point <me>.


Constructor & Destructor Documentation


Member Function Documentation


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