mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-05-12 11:10:48 +05:00
Correction in BLSurf script: geometrical object must be published in study to be used with sizemaps.
This commit is contained in:
parent
f7ed4aaf9c
commit
e028757320
@ -19,6 +19,11 @@ Face_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["FACE"])[0]
|
|||||||
Edge_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["EDGE"])[0]
|
Edge_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["EDGE"])[0]
|
||||||
Vertex_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["VERTEX"])[0]
|
Vertex_1 = geompy.SubShapeAllSorted(box, geompy.ShapeType["VERTEX"])[0]
|
||||||
|
|
||||||
|
# /!\ Geom object with sizemaps on them must be published in study
|
||||||
|
geompy.addToStudyInFather(box,Face_1, "Face_1")
|
||||||
|
geompy.addToStudyInFather(box,Edge_1, "Edge_1")
|
||||||
|
geompy.addToStudyInFather(box,Vertex_1, "Vertex_1")
|
||||||
|
|
||||||
# create a mesh on the box
|
# create a mesh on the box
|
||||||
blsurfMesh = smesh.Mesh(box,"box: BLSurf mesh")
|
blsurfMesh = smesh.Mesh(box,"box: BLSurf mesh")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user