Version: 8.3.0
DriverSTL_W_SMDS_Mesh.cxx File Reference
#include "DriverSTL_W_SMDS_Mesh.h"
#include <Basics_Utils.hxx>
#include "SMDS_FaceOfNodes.hxx"
#include "SMDS_IteratorOnIterators.hxx"
#include "SMDS_Mesh.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMDS_PolygonalFaceOfNodes.hxx"
#include "SMDS_SetIterator.hxx"
#include "SMDS_VolumeTool.hxx"
#include "SMESH_File.hxx"
#include "SMESH_TypeDefs.hxx"
#include <Standard_ErrorHandler.hxx>
#include <Standard_Failure.hxx>
#include <gp_Ax2.hxx>
#include <limits>
Include dependency graph for DriverSTL_W_SMDS_Mesh.cxx:

Functions

static void writeInteger (const Standard_Integer &theVal, SMESH_File &ofile)
 
static void writeFloat (const Standard_ShortReal &theVal, SMESH_File &ofile)
 
static gp_XYZ getNormale (const SMDS_MeshNode *n1, const SMDS_MeshNode *n2, const SMDS_MeshNode *n3)
 
static int getNbTriangles (const SMDS_MeshElement *face)
 Return nb triangles in a decomposed mesh face. More...
 
static int getTriangles (const SMDS_MeshElement *face, std::vector< const SMDS_MeshNode * > &nodes)
 Decompose a mesh face into triangles. More...
 

Variables

static const int LABEL_SIZE = 80
 

Function Documentation

static int getNbTriangles ( const SMDS_MeshElement face)
static

Return nb triangles in a decomposed mesh face.

Return values
int- number of triangles

References SMDS_MeshElement::GetEntityType(), SMDS_MeshElement::NbNodes(), SMDSEntity_BiQuad_Quadrangle, and SMDSEntity_BiQuad_Triangle.

Referenced by DriverSTL_W_SMDS_Mesh::writeBinary().

static gp_XYZ getNormale ( const SMDS_MeshNode n1,
const SMDS_MeshNode n2,
const SMDS_MeshNode n3 
)
static
static int getTriangles ( const SMDS_MeshElement face,
std::vector< const SMDS_MeshNode * > &  nodes 
)
static
static void writeFloat ( const Standard_ShortReal &  theVal,
SMESH_File ofile 
)
static
static void writeInteger ( const Standard_Integer &  theVal,
SMESH_File ofile 
)
static

Variable Documentation

const int LABEL_SIZE = 80
static