Version: 8.3.0
StdMeshers_Regular_1D.cxx File Reference
#include "StdMeshers_Regular_1D.hxx"
#include "SMDS_MeshElement.hxx"
#include "SMDS_MeshNode.hxx"
#include "SMESHDS_Mesh.hxx"
#include "SMESH_Comment.hxx"
#include "SMESH_Gen.hxx"
#include "SMESH_HypoFilter.hxx"
#include "SMESH_Mesh.hxx"
#include "SMESH_subMesh.hxx"
#include "SMESH_subMeshEventListener.hxx"
#include "StdMeshers_Adaptive1D.hxx"
#include "StdMeshers_Arithmetic1D.hxx"
#include "StdMeshers_AutomaticLength.hxx"
#include "StdMeshers_Geometric1D.hxx"
#include "StdMeshers_Deflection1D.hxx"
#include "StdMeshers_Distribution.hxx"
#include "StdMeshers_FixedPoints1D.hxx"
#include "StdMeshers_LocalLength.hxx"
#include "StdMeshers_MaxLength.hxx"
#include "StdMeshers_NumberOfSegments.hxx"
#include "StdMeshers_Propagation.hxx"
#include "StdMeshers_SegmentLengthAroundVertex.hxx"
#include "StdMeshers_StartEndLength.hxx"
#include <Utils_SALOME_Exception.hxx>
#include <utilities.h>
#include <BRepAdaptor_Curve.hxx>
#include <BRep_Tool.hxx>
#include <GCPnts_AbscissaPoint.hxx>
#include <GCPnts_UniformAbscissa.hxx>
#include <GCPnts_UniformDeflection.hxx>
#include <Precision.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Edge.hxx>
#include <TopoDS_Vertex.hxx>
#include <string>
#include <limits>
Include dependency graph for StdMeshers_Regular_1D.cxx:

Functions

static bool computeParamByFunc (Adaptor3d_Curve &C3d, double first, double last, double length, bool theReverse, int nbSeg, Function &func, list< double > &theParams)
 
static void compensateError (double a1, double an, double U1, double Un, double length, Adaptor3d_Curve &C3d, list< double > &theParams, bool adjustNeighbors2an=false)
 adjust internal node parameters so that the last segment length == an More...
 

Function Documentation

static void compensateError ( double  a1,
double  an,
double  U1,
double  Un,
double  length,
Adaptor3d_Curve C3d,
list< double > &  theParams,
bool  adjustNeighbors2an = false 
)
static

adjust internal node parameters so that the last segment length == an

Parameters
a1- the first segment length
an- the last segment length
U1- the first edge parameter
Un- the last edge parameter
length- the edge length
C3d- the edge curve
theParams- internal node parameters to adjust
adjustNeighbors2an- to adjust length of segments next to the last one and not to remove parameters

References Abs(), Min(), and reverse().

Referenced by StdMeshers_Regular_1D::computeInternalParameters(), and StdMeshers_Regular_1D::redistributeNearVertices().

static bool computeParamByFunc ( Adaptor3d_Curve C3d,
double  first,
double  last,
double  length,
bool  theReverse,
int  nbSeg,
Function func,
list< double > &  theParams 
)
static