Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
MeshVS_Tool Class Reference

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

#include <MeshVS_Tool.hxx>

Static Public Member Functions

static occ::handle< Graphic3d_AspectFillArea3dCreateAspectFillArea3d (const occ::handle< MeshVS_Drawer > &theDr, const bool UseDefaults=true)
 Creates fill area aspect with values from Drawer according to keys from DrawerAttribute.
 
static occ::handle< Graphic3d_AspectFillArea3dCreateAspectFillArea3d (const occ::handle< MeshVS_Drawer > &theDr, const Graphic3d_MaterialAspect &Mat, const bool UseDefaults=true)
 Creates fill aspect with values from Drawer according to keys from DrawerAttribute and specific material aspect.
 
static occ::handle< Graphic3d_AspectLine3dCreateAspectLine3d (const occ::handle< MeshVS_Drawer > &theDr, const bool UseDefaults=true)
 Creates line aspect with values from Drawer according to keys from DrawerAttribute.
 
static occ::handle< Graphic3d_AspectMarker3dCreateAspectMarker3d (const occ::handle< MeshVS_Drawer > &theDr, const bool UseDefaults=true)
 Creates marker aspect with values from Drawer according to keys from DrawerAttribute.
 
static occ::handle< Graphic3d_AspectText3dCreateAspectText3d (const occ::handle< MeshVS_Drawer > &theDr, const bool UseDefaults=true)
 Creates text aspect with values from Drawer according to keys from DrawerAttribute.
 
static bool GetNormal (const NCollection_Array1< double > &Nodes, gp_Vec &Norm)
 Get one of normals to polygon described by these points. If the polygon isn't planar, function returns false.
 
static bool GetAverageNormal (const NCollection_Array1< double > &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 occ::handle< Graphic3d_AspectFillArea3d > MeshVS_Tool::CreateAspectFillArea3d ( const occ::handle< MeshVS_Drawer > & theDr,
const bool UseDefaults = true )
static

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

◆ CreateAspectFillArea3d() [2/2]

static occ::handle< Graphic3d_AspectFillArea3d > MeshVS_Tool::CreateAspectFillArea3d ( const occ::handle< MeshVS_Drawer > & theDr,
const Graphic3d_MaterialAspect & Mat,
const bool UseDefaults = true )
static

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

◆ CreateAspectLine3d()

static occ::handle< Graphic3d_AspectLine3d > MeshVS_Tool::CreateAspectLine3d ( const occ::handle< MeshVS_Drawer > & theDr,
const bool UseDefaults = true )
static

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

◆ CreateAspectMarker3d()

static occ::handle< Graphic3d_AspectMarker3d > MeshVS_Tool::CreateAspectMarker3d ( const occ::handle< MeshVS_Drawer > & theDr,
const bool UseDefaults = true )
static

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

◆ CreateAspectText3d()

static occ::handle< Graphic3d_AspectText3d > MeshVS_Tool::CreateAspectText3d ( const occ::handle< MeshVS_Drawer > & theDr,
const bool UseDefaults = true )
static

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

◆ GetAverageNormal()

static bool MeshVS_Tool::GetAverageNormal ( const NCollection_Array1< double > & 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 bool MeshVS_Tool::GetNormal ( const NCollection_Array1< double > & 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: