/*!
* Returns three components of normal of given mesh face (or an empty array in KO case)
*/
- double_array GetFaceNormal(in long faceId);
+ double_array GetFaceNormal(in long faceId, in boolean normalized);
/*!
* Returns an element based on all given nodes.
//purpose : Returns three components of normal of given mesh face.
//=======================================================================
-SMESH::double_array* SMESH_Mesh_i::GetFaceNormal(CORBA::Long elemId)
+SMESH::double_array* SMESH_Mesh_i::GetFaceNormal(CORBA::Long elemId,
+ CORBA::Boolean normalized)
{
if ( _preMeshInfo )
_preMeshInfo->FullLoadFromFile();
if ( SMESHDS_Mesh* mesh = _impl->GetMeshDS() )
{
gp_XYZ normal;
- if ( SMESH_MeshAlgos::FaceNormal( mesh->FindElement(elemId), normal, /*normalized=*/true ))
+ if ( SMESH_MeshAlgos::FaceNormal( mesh->FindElement(elemId), normal, normalized ))
{
aResult->length( 3 );
aResult[ 0 ] = normal.X();
/*!
* Returns three components of normal of given mesh face (or an empty array in KO case)
*/
- SMESH::double_array* GetFaceNormal(CORBA::Long faceId);
+ SMESH::double_array* GetFaceNormal(CORBA::Long faceId, CORBA::Boolean normalized);
/*!
* Returns an element based on all given nodes.
## Returns three components of normal of given mesh face
# (or an empty array in KO case)
# @ingroup l1_meshinfo
- def GetFaceNormal(self, faceId):
- return self.mesh.GetFaceNormal(faceId)
+ def GetFaceNormal(self, faceId, normalized=False):
+ return self.mesh.GetFaceNormal(faceId,normalized)
## Returns an element based on all given nodes.
# @ingroup l1_meshinfo