mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 21:10:33 +05:00
Rebase 'rnv/sphinx_doc' branch on the top of the 'master' branch.
This commit is contained in:
commit
88c554eeb0
@ -1354,11 +1354,15 @@ class smeshBuilder(object, SMESH._objref_SMESH_Gen):
|
|||||||
aMeasurements.UnRegister()
|
aMeasurements.UnRegister()
|
||||||
return value
|
return value
|
||||||
|
|
||||||
## Get gravity center of all nodes of the mesh object.
|
|
||||||
# @param obj mesh, submesh or group
|
|
||||||
# @return three components of the gravity center: x,y,z
|
|
||||||
# @ingroup l1_measurements
|
|
||||||
def GetGravityCenter(self, obj):
|
def GetGravityCenter(self, obj):
|
||||||
|
"""
|
||||||
|
Get gravity center of all nodes of the mesh object.
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
obj: mesh, submesh or group
|
||||||
|
Returns:
|
||||||
|
Three components of the gravity center: x,y,z
|
||||||
|
"""
|
||||||
if isinstance(obj, Mesh): obj = obj.mesh
|
if isinstance(obj, Mesh): obj = obj.mesh
|
||||||
if isinstance(obj, Mesh_Algorithm): obj = obj.GetSubMesh()
|
if isinstance(obj, Mesh_Algorithm): obj = obj.GetSubMesh()
|
||||||
aMeasurements = self.CreateMeasurements()
|
aMeasurements = self.CreateMeasurements()
|
||||||
@ -6457,8 +6461,8 @@ class Mesh:
|
|||||||
mesh, the vector is normal to the mesh.
|
mesh, the vector is normal to the mesh.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
segments - PolySegment's defining positions of cutting planes.
|
segments: PolySegment's defining positions of cutting planes.
|
||||||
groupName - optional name of a group where created mesh segments will
|
groupName: optional name of a group where created mesh segments will
|
||||||
be added.
|
be added.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
|
Loading…
Reference in New Issue
Block a user