Open CASCADE Technology  6.9.1
Static Public Member Functions
MeshVS_Tool Class Reference

This class provides auxiliary methods to create differents aspects. More...

#include <MeshVS_Tool.hxx>

Static Public Member Functions

static Handle< Graphic3d_AspectFillArea3dCreateAspectFillArea3d (const Handle< MeshVS_Drawer > &theDr, const Standard_Boolean UseDefaults=Standard_True)
 Creates fill area aspect with values from Drawer according to keys from DrawerAttribute. More...
 
static Handle< Graphic3d_AspectFillArea3dCreateAspectFillArea3d (const Handle< MeshVS_Drawer > &theDr, const Graphic3d_MaterialAspect &Mat, const Standard_Boolean UseDefaults=Standard_True)
 Creates fill aspect with values from Drawer according to keys from DrawerAttribute and specific material aspect. More...
 
static Handle< Graphic3d_AspectLine3dCreateAspectLine3d (const Handle< MeshVS_Drawer > &theDr, const Standard_Boolean UseDefaults=Standard_True)
 Creates line aspect with values from Drawer according to keys from DrawerAttribute. More...
 
static Handle< Graphic3d_AspectMarker3dCreateAspectMarker3d (const Handle< MeshVS_Drawer > &theDr, const Standard_Boolean UseDefaults=Standard_True)
 Creates marker aspect with values from Drawer according to keys from DrawerAttribute. More...
 
static Handle< Graphic3d_AspectText3dCreateAspectText3d (const Handle< MeshVS_Drawer > &theDr, const Standard_Boolean UseDefaults=Standard_True)
 Creates text aspect with values from Drawer according to keys from DrawerAttribute. More...
 
static Standard_Boolean GetNormal (const TColStd_Array1OfReal &Nodes, gp_Vec &Norm)
 Get one of normals to polygon described by these points. If the polygon isn't planar, function returns false. More...
 
static Standard_Boolean GetAverageNormal (const TColStd_Array1OfReal &Nodes, gp_Vec &Norm)
 Get an average of normals to non-planar polygon described by these points or compute normal of planar polygon. If the polygon isn't planar, function returns false. More...
 

Detailed Description

This class provides auxiliary methods to create differents aspects.

Member Function Documentation

static Handle< Graphic3d_AspectFillArea3d > MeshVS_Tool::CreateAspectFillArea3d ( const Handle< MeshVS_Drawer > &  theDr,
const Standard_Boolean  UseDefaults = Standard_True 
)
static

Creates fill area aspect with values from Drawer according to keys from DrawerAttribute.

static Handle< Graphic3d_AspectFillArea3d > MeshVS_Tool::CreateAspectFillArea3d ( const Handle< MeshVS_Drawer > &  theDr,
const Graphic3d_MaterialAspect Mat,
const Standard_Boolean  UseDefaults = Standard_True 
)
static

Creates fill aspect with values from Drawer according to keys from DrawerAttribute and specific material aspect.

static Handle< Graphic3d_AspectLine3d > MeshVS_Tool::CreateAspectLine3d ( const Handle< MeshVS_Drawer > &  theDr,
const Standard_Boolean  UseDefaults = Standard_True 
)
static

Creates line aspect with values from Drawer according to keys from DrawerAttribute.

static Handle< Graphic3d_AspectMarker3d > MeshVS_Tool::CreateAspectMarker3d ( const Handle< MeshVS_Drawer > &  theDr,
const Standard_Boolean  UseDefaults = Standard_True 
)
static

Creates marker aspect with values from Drawer according to keys from DrawerAttribute.

static Handle< Graphic3d_AspectText3d > MeshVS_Tool::CreateAspectText3d ( const Handle< MeshVS_Drawer > &  theDr,
const Standard_Boolean  UseDefaults = Standard_True 
)
static

Creates text aspect with values from Drawer according to keys from DrawerAttribute.

static Standard_Boolean MeshVS_Tool::GetAverageNormal ( const TColStd_Array1OfReal Nodes,
gp_Vec Norm 
)
static

Get an average of normals to non-planar polygon described by these points or compute normal of planar polygon. If the polygon isn't planar, function returns false.

static Standard_Boolean MeshVS_Tool::GetNormal ( const TColStd_Array1OfReal Nodes,
gp_Vec Norm 
)
static

Get one of normals to polygon described by these points. If the polygon isn't planar, function returns false.


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