mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
In ExtrusionAlongPathX() allow defining RefPoint as [x,y,z]
This commit is contained in:
parent
85aae58ead
commit
07ba88a295
@ -3530,8 +3530,10 @@ class Mesh:
|
|||||||
# @param LinearVariation forces the computation of rotation angles as linear
|
# @param LinearVariation forces the computation of rotation angles as linear
|
||||||
# variation of the given Angles along path steps
|
# variation of the given Angles along path steps
|
||||||
# @param HasRefPoint allows using the reference point
|
# @param HasRefPoint allows using the reference point
|
||||||
# @param RefPoint the point around which the shape is rotated (the mass center of the shape by default).
|
# @param RefPoint the point around which the elements are rotated (the mass
|
||||||
|
# center of the elements by default).
|
||||||
# The User can specify any point as the Reference Point.
|
# The User can specify any point as the Reference Point.
|
||||||
|
# RefPoint can be either GEOM Vertex, [x,y,z] or SMESH.PointStruct
|
||||||
# @param MakeGroups forces the generation of new groups from existing ones
|
# @param MakeGroups forces the generation of new groups from existing ones
|
||||||
# @param ElemType type of elements for extrusion (if param Base is a mesh)
|
# @param ElemType type of elements for extrusion (if param Base is a mesh)
|
||||||
# @return list of created groups (SMESH_GroupBase) and SMESH::Extrusion_Error if MakeGroups=True,
|
# @return list of created groups (SMESH_GroupBase) and SMESH::Extrusion_Error if MakeGroups=True,
|
||||||
@ -3540,9 +3542,12 @@ class Mesh:
|
|||||||
def ExtrusionAlongPathX(self, Base, Path, NodeStart,
|
def ExtrusionAlongPathX(self, Base, Path, NodeStart,
|
||||||
HasAngles, Angles, LinearVariation,
|
HasAngles, Angles, LinearVariation,
|
||||||
HasRefPoint, RefPoint, MakeGroups, ElemType):
|
HasRefPoint, RefPoint, MakeGroups, ElemType):
|
||||||
if ( isinstance( RefPoint, geomBuilder.GEOM._objref_GEOM_Object)):
|
if isinstance( RefPoint, geomBuilder.GEOM._objref_GEOM_Object):
|
||||||
RefPoint = self.smeshpyD.GetPointStruct(RefPoint)
|
RefPoint = self.smeshpyD.GetPointStruct(RefPoint)
|
||||||
pass
|
pass
|
||||||
|
elif isinstance( RefPoint, list ):
|
||||||
|
RefPoint = PointStruct(*RefPoint)
|
||||||
|
pass
|
||||||
Angles,AnglesParameters,hasVars = ParseAngles(Angles)
|
Angles,AnglesParameters,hasVars = ParseAngles(Angles)
|
||||||
Parameters = AnglesParameters + var_separator + RefPoint.parameters
|
Parameters = AnglesParameters + var_separator + RefPoint.parameters
|
||||||
self.mesh.SetParameters(Parameters)
|
self.mesh.SetParameters(Parameters)
|
||||||
|
Loading…
Reference in New Issue
Block a user