MeshPart: remove trailing whitespace
This commit is contained in:
@@ -64,7 +64,7 @@ void MeshAlgos::offset(MeshCore::MeshKernel* Mesh, float fSize)
|
||||
|
||||
void MeshAlgos::offsetSpecial2(MeshCore::MeshKernel* Mesh, float fSize)
|
||||
{
|
||||
Base::Builder3D builder;
|
||||
Base::Builder3D builder;
|
||||
std::vector<Base::Vector3f> PointNormals= Mesh->CalcVertexNormals();
|
||||
std::vector<Base::Vector3f> FaceNormals;
|
||||
std::set<MeshCore::FacetIndex> fliped;
|
||||
@@ -154,9 +154,9 @@ void MeshAlgos::coarsen(MeshCore::MeshKernel* /*Mesh*/, float /*f*/)
|
||||
guint stop_number=100000;
|
||||
gdouble fold = 3.1415 / 180.;
|
||||
|
||||
gts_surface_coarsen (surface,
|
||||
NULL, NULL,
|
||||
NULL, NULL,
|
||||
gts_surface_coarsen (surface,
|
||||
NULL, NULL,
|
||||
NULL, NULL,
|
||||
(GtsStopFunc)gts_coarsen_stop_number,
|
||||
&stop_number, fold);
|
||||
|
||||
@@ -269,7 +269,7 @@ MeshCore::MeshKernel* MeshAlgos::boolean(MeshCore::MeshKernel* pMesh1,
|
||||
gts_surface_inter_boolean (si, s3, GTS_1_OUT_2);
|
||||
}
|
||||
|
||||
// check that the resulting surface is not self-intersecting
|
||||
// check that the resulting surface is not self-intersecting
|
||||
if (check_self_intersection) {
|
||||
GtsSurface * self_intersects;
|
||||
|
||||
@@ -288,22 +288,22 @@ MeshCore::MeshKernel* MeshAlgos::boolean(MeshCore::MeshKernel* pMesh1,
|
||||
throw std::runtime_error("the resulting surface is self-intersecting\n");
|
||||
}
|
||||
}
|
||||
// display summary information about the resulting surface
|
||||
// display summary information about the resulting surface
|
||||
// if (verbose)
|
||||
// gts_surface_print_stats (s3, stderr);
|
||||
// write resulting surface to standard output
|
||||
// write resulting surface to standard output
|
||||
|
||||
// get the standard mesh
|
||||
fillMeshFromGTSSurface(pResult,s3);
|
||||
|
||||
|
||||
// destroy surfaces
|
||||
// destroy surfaces
|
||||
gts_object_destroy (GTS_OBJECT (s1));
|
||||
gts_object_destroy (GTS_OBJECT (s2));
|
||||
// gts_object_destroy (GTS_OBJECT (s3));
|
||||
// gts_object_destroy (GTS_OBJECT (si));
|
||||
|
||||
// destroy bounding box trees (including bounding boxes)
|
||||
// destroy bounding box trees (including bounding boxes)
|
||||
// gts_bb_tree_destroy (tree1, true);
|
||||
// gts_bb_tree_destroy (tree2, true);
|
||||
|
||||
@@ -319,7 +319,7 @@ MeshCore::MeshKernel* MeshAlgos::boolean(MeshCore::MeshKernel* pMesh1,
|
||||
static GtsEdge * new_edge (GtsVertex * v1, GtsVertex * v2)
|
||||
{
|
||||
GtsSegment * s = gts_vertices_are_connected (v1, v2);
|
||||
if( s == NULL )
|
||||
if( s == NULL )
|
||||
return gts_edge_new (gts_edge_class (), v1, v2);
|
||||
else
|
||||
return GTS_EDGE (s);
|
||||
@@ -350,9 +350,9 @@ GtsSurface* MeshAlgos::createGTSSurface(MeshCore::MeshKernel* Mesh)
|
||||
{
|
||||
// getting the three points of the facet
|
||||
Mesh->GetFacetPoints(pFIter,p1,p2,p3);
|
||||
|
||||
|
||||
// creating the edges and add the face to the surface
|
||||
gts_surface_add_face (Surf,
|
||||
gts_surface_add_face (Surf,
|
||||
gts_face_new (Surf->face_class,
|
||||
new_edge (aVertex[p1],aVertex[p2]),
|
||||
new_edge (aVertex[p2],aVertex[p3]),
|
||||
@@ -398,7 +398,7 @@ void MeshAlgos::fillMeshFromGTSSurface(MeshCore::MeshKernel* pMesh, GtsSurface*
|
||||
// gts_surface_foreach_vertex(pSurface,(GtsFunc) onVertices,&MeshK);
|
||||
gts_surface_foreach_face (pSurface, (GtsFunc) onFaces,&VAry);
|
||||
|
||||
// destroy surfaces
|
||||
// destroy surfaces
|
||||
gts_object_destroy (GTS_OBJECT (pSurface));
|
||||
|
||||
// put the facets the simple way in the mesh, totp is recalculated!
|
||||
@@ -428,9 +428,9 @@ void MeshAlgos::cutByShape(const TopoDS_Shape &aShape,const MeshCore::MeshKernel
|
||||
CurveProjectorWithToolMesh Project(aShape,*pMesh,*pToolMesh);
|
||||
|
||||
//IntersectionLine Lines;
|
||||
// MeshWithProperty *ResultMesh = new MeshWithProperty();
|
||||
// MeshWithProperty *ResultMesh = new MeshWithProperty();
|
||||
|
||||
|
||||
|
||||
// boolean(pMesh,ToolMesh,ResultMesh,1);
|
||||
|
||||
|
||||
@@ -460,7 +460,7 @@ class _VertexCompare
|
||||
{
|
||||
public:
|
||||
bool operator () (const TopoDS_Vertex &rclV1, const TopoDS_Vertex &rclV2) const
|
||||
{
|
||||
{
|
||||
if (rclV1.IsSame(rclV2) == Standard_True)
|
||||
return false;
|
||||
|
||||
@@ -502,19 +502,19 @@ void MeshAlgos::LoftOnCurve(MeshCore::MeshKernel &ResultMesh, const TopoDS_Shape
|
||||
GeomLProp_CLProps prop(BRep_Tool::Curve(Edge,fBegin,fEnd),1,0.0000000001);
|
||||
int res = int((fEnd - fBegin)/MaxSize);
|
||||
// do at least 2 segments
|
||||
if(res < 2)
|
||||
if(res < 2)
|
||||
res = 2;
|
||||
gp_Dir Tangent;
|
||||
|
||||
std::vector<Base::Vector3f> prePoint(poly.size());
|
||||
std::vector<Base::Vector3f> actPoint(poly.size());
|
||||
|
||||
|
||||
// checking if there is already a end to connect
|
||||
if(ConnectMap.find(V1) != ConnectMap.end() ){
|
||||
bBegin = true;
|
||||
prePoint = ConnectMap[V1];
|
||||
}
|
||||
|
||||
|
||||
if(ConnectMap.find(V2) != ConnectMap.end() )
|
||||
bEnd = true;
|
||||
|
||||
@@ -550,7 +550,7 @@ void MeshAlgos::LoftOnCurve(MeshCore::MeshKernel &ResultMesh, const TopoDS_Shape
|
||||
ConnectMap[V2] = actPoint;
|
||||
|
||||
if(i==1 && bBegin)
|
||||
// using the end of an other edge as start
|
||||
// using the end of an other edge as start
|
||||
prePoint = ConnectMap[V1];
|
||||
|
||||
if(i==0 && !bBegin)
|
||||
@@ -561,7 +561,7 @@ void MeshAlgos::LoftOnCurve(MeshCore::MeshKernel &ResultMesh, const TopoDS_Shape
|
||||
{
|
||||
for(l=0;l<actPoint.size();l++)
|
||||
{
|
||||
if(l) // not first point in row
|
||||
if(l) // not first point in row
|
||||
{
|
||||
if(i == res-1 && bEnd) // if last row and a end to connect
|
||||
actPoint = ConnectMap[V2];
|
||||
|
||||
Reference in New Issue
Block a user