From: maintenance team Our TUI Scripts provide you with useful examples
- of creation of Basic Geometric
- Objects.
diff --git a/doc/salome/gui/GEOM/archimede.htm b/doc/salome/gui/GEOM/archimede.htm index ac3616f4d..351d6f654 100755 --- a/doc/salome/gui/GEOM/archimede.htm +++ b/doc/salome/gui/GEOM/archimede.htm @@ -88,8 +88,6 @@ if (window.writeIntopicBar) an Archimede operation in the Main Menu select Operations - > Archimede -
-
This operation creates a plane corresponding to the modeled water-line of the object plunged into the water (in Z direction).
@@ -97,7 +95,8 @@ if (window.writeIntopicBar)
The - Result will be any GEOM_Object.
+ Result will be a GEOM_Object + (Face).TUI Command: geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), diff --git a/doc/salome/gui/GEOM/basic_geometrical_objects.htm b/doc/salome/gui/GEOM/basic_geometrical_objects.htm index b25b5cb41..f12e9082f 100755 --- a/doc/salome/gui/GEOM/basic_geometrical_objects.htm +++ b/doc/salome/gui/GEOM/basic_geometrical_objects.htm @@ -87,75 +87,25 @@ if (window.writeIntopicBar)
-
# create vertices
+# create vertex
p0 = geompy.MakeVertex(0., 0., 0.)
-p100 = geompy.MakeVertexWithRef(p0, - 100., 100., 100.)
- -px = geompy.MakeVertex(100., - 0., 0.)
- -py = geompy.MakeVertex(0., - 100., 0.)
- -pz = geompy.MakeVertex(0., - 0., 100.)
- -- -
# create a curve and a vertex on it
- -Arc = geompy.MakeArc(py, - pz, px)
- -p_on_arc = geompy.MakeVertexOnCurve(Arc, - 0.25)
--
# add objects in the study
+# add object in the study
id_p0 = geompy.addToStudy(p0, "Vertex 0")
-id_p100 = - geompy.addToStudy(p100, "Vertex 100")
- -id_px = - geompy.addToStudy(px, "Vertex - X")
- -id_py = - geompy.addToStudy(py, "Vertex - Y")
- -id_pz = - geompy.addToStudy(pz, "Vertex - Z")
- -id_Arc = - geompy.addToStudy(Arc, "Arc")
- -id_p_on_arc = geompy.addToStudy(p_on_arc, - "Vertex on Arc")
--
# display vertices
+# display vertex
gg.createAndDisplayGO(id_p0)
-gg.createAndDisplayGO(id_p100)
- -gg.createAndDisplayGO(id_Arc)
- -gg.createAndDisplayGO(id_p_on_arc) -
-
+
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +p100 = geompy.MakeVertexWithRef(p0, + 100., 100., 100.)
+ +px = geompy.MakeVertex(100., + 0., 0.)
+ +py = geompy.MakeVertex(0., + 100., 0.)
+ +pz = geompy.MakeVertex(0., + 0., 100.)
+ ++ +
# create a curve and a vertex on it
+ +Arc = geompy.MakeArc(py, + pz, px)
+ +p_on_arc = geompy.MakeVertexOnCurve(Arc, + 0.25)
+ ++ +
# add objects in the study
+ +id_p0 = + geompy.addToStudy(p0, "Vertex + 0")
+ +id_p100 = + geompy.addToStudy(p100, "Vertex 100")
+ +id_px = + geompy.addToStudy(px, "Vertex + X")
+ +id_py = + geompy.addToStudy(py, "Vertex + Y")
+ +id_pz = + geompy.addToStudy(pz, "Vertex + Z")
+ +id_Arc = + geompy.addToStudy(Arc, "Arc")
+ +id_p_on_arc = geompy.addToStudy(p_on_arc, + "Vertex on Arc")
+ ++ +
# display vertices
+ +gg.createAndDisplayGO(id_p0)
+ +gg.createAndDisplayGO(id_p100)
+ +gg.createAndDisplayGO(id_Arc)
+ +gg.createAndDisplayGO(id_p_on_arc) +
+ ++
import geompy
diff --git a/doc/salome/gui/GEOM/circle.htm b/doc/salome/gui/GEOM/circle.htm index 41bc118a8..5fb5c5848 100755 --- a/doc/salome/gui/GEOM/circle.htm +++ b/doc/salome/gui/GEOM/circle.htm @@ -20,7 +20,9 @@ p.whs3 { font-size:12pt; font-weight:bold; } p.whs4 { font-size:12pt; margin-left:40px; } img_whs5 { border:none; width:312px; height:346px; float:none; border-style:none; } img_whs6 { border:none; width:312px; height:359px; float:none; border-style:none; } -img_whs7 { border:none; width:348px; height:321px; float:none; border-style:none; } +p.whs7 { font-size:12pt; font-weight:normal; } +img_whs8 { border:none; width:400px; height:359px; float:none; } +img_whs9 { border:none; width:348px; height:321px; float:none; border-style:none; } --> -To produce a Multi Translation in the Main @@ -115,8 +115,8 @@ if (window.writeIntopicBar)
To produce a Simple - Multi Translation (in one direction) you need to indicate a Shape to be translated, a Vector + Multi Translation (in one direction) you need to indicate an Object to be translated, a Vector of translation, a Step of translation and a Number of Times the shape must be moved.
@@ -125,10 +125,12 @@ if (window.writeIntopicBar) geompy.MakeMultiTranslation1D(Shape, Dir, Step, NbTimes) -Arguments:
+ Arguments:
Name + 1 shape + 1 vector (for direction) + 1 step value +
1 value (repetition).
diff --git a/doc/salome/gui/GEOM/newentity_blocks.htm b/doc/salome/gui/GEOM/newentity_blocks.htm index bd0b02887..d63a6d6a5 100755 --- a/doc/salome/gui/GEOM/newentity_blocks.htm +++ b/doc/salome/gui/GEOM/newentity_blocks.htm @@ -43,17 +43,26 @@ img_whs26 { border:none; width:312px; height:464px; float:none; border-style:non td.whs27 { width:49.761%; padding-right:10px; padding-left:10px; border-left-style:none; border-right-style:none; border-bottom-style:none; } td.whs28 { width:50.239%; padding-right:10px; padding-left:10px; border-right-style:none; border-bottom-style:none; } p.whs29 { font-size:12pt; font-weight:bold; } -p.whs30 { font-size:12pt; font-weight:bold; margin-left:0px; } -img_whs31 { border:none; width:300px; height:234px; float:none; border-style:none; } -img_whs32 { border:none; width:251px; height:234px; border-style:none; } -p.whs33 { font-size:12pt; margin-left:40px; } +table.whs30 { x-cell-content-align:top; border-spacing:0px; width:63.614%; } +col.whs31 { width:48.756%; } +col.whs32 { width:51.244%; } +td.whs33 { width:48.756%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; border-left-style:none; border-top-style:none; } +img_whs34 { border:none; width:300px; height:234px; float:none; border-style:none; } +td.whs35 { width:51.244%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-top-style:none; border-right-style:none; } +p.whs36 { margin-left:0px; font-size:12pt; font-weight:bold; } +img_whs37 { border:none; width:251px; height:234px; border-style:none; } +td.whs38 { width:48.756%; padding-right:10px; padding-left:10px; border-right-style:none; border-left-style:none; border-bottom-style:none; } +p.whs39 { font-style:italic; } +td.whs40 { width:51.244%; padding-right:10px; padding-left:10px; border-bottom-style:none; border-right-style:none; } +p.whs41 { font-size:12pt; font-weight:bold; margin-left:0px; } --> + + + + + + + + + + +
OCC (Open CasCade) 3D viewer + has been developed on the basis of Open CASCADE Technology. This is the + default viewer for Geometry Module, providing good representation of construction + and transformation of geometrical objects. Only this viewer allows to + work with groups and sub-shapes. This viewer can also work in Mesh module, + however, it doesn't allow to visualize meshes.
+ ++ +
The functions of OCC viewer are available via its Viewer Toolbar. Buttons + marked with small downward triangles have extended functionality which + can be accessed by locking on them with left mouse button.
+ ++ + + +
+ +
Dump + View - exports an object from the viewer in bmp, png, jpg or jpeg + image format.
Show/Hide + Trihedron - shows or hides coordinate axes.
Fit all - allows + to select a point to be the center of a scene representing all displayed + objects in the visible area.
Fit area - resizes + the view to place in the visible area only the contents of a frame drawn + with pressed left mouse button.
Zoom + - allows + to zoom in and out.
Panning + - if the represented objects are greater that the visible area and you + don't wish to use Fit all functionality, + click on this button and you'll be able to drag the scene to see its remote + parts.
Global + panning - represents all displayed objects in the visible area. +
Change rotation point + - allows to to choose the point around which the rotation is performed. +
+ +
By default the rotation point is located + in the Center of the bounding box of an object.
+ ++ + + +
+ +
Unchecking Use + Bounding Box Center box allows you to define the coordinates of + the rotation point manually.
+ ++ +
Set to Origin + button restores the default rotation point coordinates.
+ +Select Point + from View button allows to select the rotation point in the 3D + Viewer
+ ++ +
Rotation + - allows to rotate the selected object using the mouse.
These buttons orientate the scene + strictly about coordinate axes.
Reset + - restores the default position (isometric) of objects in the scene.
Memorise + view - saves the current position of objects in the scene
Restore + view - restores the saved + position of objects in the scene
Clone + view - opens a new duplicate scene.
Clipping + - allows to create cross-section views (clipping planes) of geometrical + objects.
+ + + +
+ +
Base + point - allows to define the coordinates of the base point for + the clipping plane. Click
Reset + - returns the base point to coordinate origin.
Direction + - allows to define the orientation of the clipping plane.
Invert + - allows to select which part of the object will be removed and which + will remain after clipping.
Preview + - allows to see the results of clipping in the viewer.
+ + + +