mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-25 05:42:04 +05:00
21397: EDF SMESH: a quadrangle face mesh can't be projected to a cylinder
bool Load (SMESH_Mesh* theMesh, const TopoDS_Face& theFace, bool theProject = false, + TopoDS_Vertex the1stVertex=TopoDS_Vertex());
This commit is contained in:
parent
a94078a14b
commit
293883f8d4
@ -514,7 +514,8 @@ static bool isMeshBoundToShape(SMESHDS_Mesh * aMeshDS,
|
|||||||
|
|
||||||
bool SMESH_Pattern::Load (SMESH_Mesh* theMesh,
|
bool SMESH_Pattern::Load (SMESH_Mesh* theMesh,
|
||||||
const TopoDS_Face& theFace,
|
const TopoDS_Face& theFace,
|
||||||
bool theProject)
|
bool theProject,
|
||||||
|
TopoDS_Vertex the1stVertex)
|
||||||
{
|
{
|
||||||
MESSAGE(" ::Load(face) " );
|
MESSAGE(" ::Load(face) " );
|
||||||
Clear();
|
Clear();
|
||||||
@ -538,10 +539,9 @@ bool SMESH_Pattern::Load (SMESH_Mesh* theMesh,
|
|||||||
|
|
||||||
// check if face is closed
|
// check if face is closed
|
||||||
bool isClosed = helper.HasSeam();
|
bool isClosed = helper.HasSeam();
|
||||||
TopoDS_Vertex bidon;
|
|
||||||
list<TopoDS_Edge> eList;
|
list<TopoDS_Edge> eList;
|
||||||
list<TopoDS_Edge>::iterator elIt;
|
list<TopoDS_Edge>::iterator elIt;
|
||||||
SMESH_Block::GetOrderedEdges( face, bidon, eList, myNbKeyPntInBoundary );
|
SMESH_Block::GetOrderedEdges( face, the1stVertex, eList, myNbKeyPntInBoundary );
|
||||||
|
|
||||||
// check that requested or needed projection is possible
|
// check that requested or needed projection is possible
|
||||||
bool isMainShape = theMesh->IsMainShape( face );
|
bool isMainShape = theMesh->IsMainShape( face );
|
||||||
|
@ -35,7 +35,7 @@
|
|||||||
#include <set>
|
#include <set>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#include <TopoDS_Shape.hxx>
|
#include <TopoDS_Vertex.hxx>
|
||||||
#include <TopTools_IndexedMapOfOrientedShape.hxx>
|
#include <TopTools_IndexedMapOfOrientedShape.hxx>
|
||||||
#include <gp_XYZ.hxx>
|
#include <gp_XYZ.hxx>
|
||||||
#include <gp_XY.hxx>
|
#include <gp_XY.hxx>
|
||||||
@ -48,7 +48,6 @@ class SMDS_MeshNode;
|
|||||||
class SMESH_Mesh;
|
class SMESH_Mesh;
|
||||||
class SMESHDS_SubMesh;
|
class SMESHDS_SubMesh;
|
||||||
class TopoDS_Shell;
|
class TopoDS_Shell;
|
||||||
class TopoDS_Vertex;
|
|
||||||
class TopoDS_Face;
|
class TopoDS_Face;
|
||||||
class TopoDS_Edge;
|
class TopoDS_Edge;
|
||||||
|
|
||||||
@ -71,7 +70,8 @@ class SMESH_EXPORT SMESH_Pattern {
|
|||||||
|
|
||||||
bool Load (SMESH_Mesh* theMesh,
|
bool Load (SMESH_Mesh* theMesh,
|
||||||
const TopoDS_Face& theFace,
|
const TopoDS_Face& theFace,
|
||||||
bool theProject = false);
|
bool theProject = false,
|
||||||
|
TopoDS_Vertex the1stVertex=TopoDS_Vertex());
|
||||||
// Create a pattern from the mesh built on <theFace>.
|
// Create a pattern from the mesh built on <theFace>.
|
||||||
// <theProject>==true makes override nodes positions
|
// <theProject>==true makes override nodes positions
|
||||||
// on <theFace> computed by mesher
|
// on <theFace> computed by mesher
|
||||||
|
Loading…
x
Reference in New Issue
Block a user