Open CASCADE Technology 7.8.2.dev
MeshVS_Tool Class Reference

This class provides auxiliary methods to create different 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.
 
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.
 
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.
 
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.
 
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.
 
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.
 
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.
 

Detailed Description

This class provides auxiliary methods to create different aspects.

Member Function Documentation

◆ CreateAspectFillArea3d() [1/2]

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.

◆ CreateAspectFillArea3d() [2/2]

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.

◆ CreateAspectLine3d()

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.

◆ CreateAspectMarker3d()

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.

◆ CreateAspectText3d()

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.

◆ GetAverageNormal()

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.

◆ GetNormal()

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: