diff --git a/bin/VERSION b/bin/VERSION deleted file mode 100755 index 874df0451..000000000 --- a/bin/VERSION +++ /dev/null @@ -1 +0,0 @@ -THIS IS SALOME - GEOM VERSION: 3.2.0a1 diff --git a/doc/Makefile.in b/doc/Makefile.in index 7295ede75..af9e2aae5 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,3 +1,22 @@ +# Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com +# # -* Makefile *- # @@ -19,6 +38,17 @@ docs: @@SETX@; for d in $(SUBDIRS); do \ (cd $$d && $(MAKE) $@) || exit 1; \ done + +usr_docs: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + +dev_docs: + @@SETX@; for d in $(SUBDIRS); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done + clean: @@SETX@; for d in $(SUBDIRS); do \ (cd $$d && $(MAKE) $@) || exit 1; \ diff --git a/doc/salome/GEOM_index_v3.1.0.html b/doc/salome/GEOM_index_v3.1.0.html deleted file mode 100644 index e4488ebbc..000000000 --- a/doc/salome/GEOM_index_v3.1.0.html +++ /dev/null @@ -1,95 +0,0 @@ - - -
- - - - -![]() |
- - - - | -
-
To Add Point on Edge in the Main Menu select - Repair - > Add Point on Edge.
- -- -
This operation splits an edge in two in accordance - with the specified mode (by length or by parameter) and a value specifying - the position of the point on edge (for example val =0.5; mode = Length). - This operation is available in OCC Viewer - only.
- -- -
Result: GEOM_Object.
- -- -
TUI Command : - geompy.DivideEdge(Shape, EdgeID, - Value, IsByParameter), where Shape is a shape which contains an - edge to be divided, EdgeID is the ID of the edge to be divided, if it - = -1, then Shape is an edge, Value is a paramter on the edge or a length. - IsByParameter if it is True then Value is the edge parameter in the range - [0:1] otherwise it is a length of the edge in the range [0:1]
- -- -
Arguments: - Name + 1 Edge + 1 value setting the position of the point according to - one of the selected modes
- -- -
Dialog - Box:
- -- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To Add Point on Edge in the Main Menu select + Repair - > Add Point on Edge.
+ ++ +
This operation splits an edge in two in accordance + with the specified mode (by length or by parameter) and a value specifying + the position of the point on edge (for example val =0.5; mode = Length). + This operation is available in OCC Viewer + only.
+ ++ +
The Result will + be a GEOM_Object.
+ ++ +
TUI Command : + geompy.DivideEdge(Shape, EdgeID, + Value, IsByParameter), where Shape is a shape which contains an + edge to be divided, EdgeID is the ID of the edge to be divided, if it + = -1, then Shape is an edge, Value is a paramter on the edge or a length. + IsByParameter if it is True then Value is the edge parameter in the range + [0:1] otherwise it is a length of the edge in the range [0:1]
+ ++ +
Arguments: + Name + 1 Edge + 1 value setting the position of the point according to + one of the selected modes
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/arc.htm b/doc/salome/gui/GEOM/arc.htm index 738480e99..3b8691125 100755 --- a/doc/salome/gui/GEOM/arc.htm +++ b/doc/salome/gui/GEOM/arc.htm @@ -1,135 +1,140 @@ - - - - - -
To create an Arc in the Main - Menu select New Entity - > - Basic - > Arc
- -- -
You can - define an Arc by three - Points that lie on it, where - Point1 is the starting point and Point3 is the ending point - of the arc.
- -The - Result of the operation will be a - GEOM_Object (edge).
- -- -
TUI Command: - geompy.MakeArc(Point1, Point2, Point3)
- -Arguments: - Name + 3 vertices.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Basic Geometric - Objects.
- -- - - - + + + + + +
To create an Arc in the Main + Menu select New Entity - > + Basic - > Arc
+ ++ +
You + can define an Arc by + three + Points that lie on it, where + Point1 is the starting point, Point2 is a middle point of the + arc and Point3 is the ending point of the arc.
+ +The + Result of the operation will be a + GEOM_Object (edge).
+ ++ +
TUI Command: + geompy.MakeArc(Point1, Point2, Point3)
+ +Arguments: + Name + 3 vertices.
+ ++ +
+ +
Example:
+ ++ +
+ +
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 fef374bd8..238672ecb 100755 --- a/doc/salome/gui/GEOM/archimede.htm +++ b/doc/salome/gui/GEOM/archimede.htm @@ -1,135 +1,140 @@ - - - - - -
To produce - 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).
- -- -
The - Result will be any GEOM_Object.
- -TUI Command: - geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), - where Shape is a shape to put into the water, Weight is a weight of the - shape, WaterDensity is - density of water, MeshingDeflection is a deflection of the mesh, using - to compute the section.
- -Arguments: - Name + 1 shape + - 3 values (Weight, Water Density & Meshing Deflection).
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of the use of Basic Operations. -
- -- - - - + + + + + +
To produce + 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).
+ ++ +
The + Result will be any GEOM_Object.
+ +TUI Command: + geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), + where Shape is a shape to put into the water, Weight is a weight of the + shape, WaterDensity is + density of water, MeshingDeflection is a deflection of the mesh, using + to compute the section.
+ +Arguments: + Name + 1 shape + + 3 values (Weight, Water Density & Meshing Deflection).
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of the use of Basic Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/basic_geometrical_objects.htm b/doc/salome/gui/GEOM/basic_geometrical_objects.htm index 0fcc12eb9..3b5e35b60 100755 --- a/doc/salome/gui/GEOM/basic_geometrical_objects.htm +++ b/doc/salome/gui/GEOM/basic_geometrical_objects.htm @@ -1,656 +1,661 @@ - - - - - -
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
- -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 vector from two points
- -vxy = - geompy.MakeVector(px, py)
- -- -
# create a line from a point and a vector
- -line1 = geompy.MakeLine(pz, - vxy)
- -- -
#create a line from two points
- -line2 = geompy.MakeLineTwoPnt(p0, - p100)
- -- -
# add objects in the study
- -id_vxy = - geompy.addToStudy(vxy, "Vector")
- -id_line1 = - geompy.addToStudy(line1,"Line1")
- -id_line2 = - geompy.addToStudy(line2,"Line2")
- -- -
# display lines
- -gg.createAndDisplayGO(id_vxy)
- -gg.createAndDisplayGO(id_line1)
- -gg.createAndDisplayGO(id_line2) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = geompy.MakeVertex(0., - 0., 0.)
- -px = geompy.MakeVertex(100., - 0. , 0. - )
- -py = geompy.MakeVertex(0. - , 100., - 0. )
- -pz = geompy.MakeVertex(0. - , 0. , - 100.)
- -- -
# create a vector on two points
- -vxy = - geompy.MakeVector(px, py)
- -- -
# create a circle from a point, a vector and a radius
- -circle1 = geompy.MakeCircle(pz, - vxy, 30)
- -- -
#create a circle from three points
- -circle2 = geompy.MakeCircleThreePnt(p0, - px, py)
- -- -
# add objects in the study
- -id_vxy = - geompy.addToStudy(vxy, "Vector")
- -id_circle1 = - geompy.addToStudy(circle1,"Circle1")
- -id_circle2 = - geompy.addToStudy(circle2,"Circle2")
- -- -
# display circles
- -gg.createAndDisplayGO(id_vxy)
- -gg.createAndDisplayGO(id_circle1)
- -gg.createAndDisplayGO(id_circle2) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = geompy.MakeVertex(0., - 0., 0.)
- -p50 = geompy.MakeVertex(50., - 50., 50.)
- -- -
# create a vector from two points
- -vector = - geompy.MakeVector(p0, p50)
- -- -
# create an ellipse from a point, a vector and radiuses
- -ellipse = geompy.MakeEllipse(p50, - vector, 50, 25)
- -- -
# add objects in the study
- -id_vector = - geompy.addToStudy(vector, "Vector")
- -id_ellipse = geompy.addToStudy(ellipse,"Ellipse")
- -- -
# display the ellipse and its normal vector
- -gg.createAndDisplayGO(id_vector)
- -gg.createAndDisplayGO(id_ellipse) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = geompy.MakeVertex(0. - , 0. , - 0. )
- -p1 = geompy.MakeVertex(50. - , 100., 200.)
- -p2 = geompy.MakeVertex(150., - 50., 100.)
- -p3 = geompy.MakeVertex(100., - 150., 170.)
- -p4 = geompy.MakeVertex(200., - 200., 150.)
- -- -
# create a polyline from a list of points
- -polyline = geompy.MakePolyline([p0, - p1, p2, p3, p4])
- -- -
# create a bezier curve from a list of points
- -bezier = geompy.MakeBezier([p0, - p1, p2, p3, p4])
- -- -
#create a b-spline curve from a list of points
- -interpol = geompy.MakeInterpol([p0, - p1, p2, p3, p4])
- -- -
# add objects in the study
- -id_p0 = - geompy.addToStudy(p0, "Point1")
- -id_p1 = - geompy.addToStudy(p1, "Point2")
- -id_p2 = - geompy.addToStudy(p2, "Point3")
- -id_p3 = - geompy.addToStudy(p3, "Point4")
- -id_p4 = - geompy.addToStudy(p4, "Point5")
- -id_polyline = geompy.addToStudy(polyline, - "Polyline")
- -id_bezier = - geompy.addToStudy(bezier, "Bezier")
- -id_interpol = geompy.addToStudy(interpol, - "Interpol")
- -- -
# display the points and the curves
- -gg.createAndDisplayGO(id_p0)
- -gg.createAndDisplayGO(id_p1)
- -gg.createAndDisplayGO(id_p2)
- -gg.createAndDisplayGO(id_p3)
- -gg.createAndDisplayGO(id_p4)
- -gg.createAndDisplayGO(id_polyline)
- -gg.createAndDisplayGO(id_bezier)
- -gg.createAndDisplayGO(id_interpol) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p1 = geompy.MakeVertex(10., - 50., 20.)
- -p2 = geompy.MakeVertex(70., - 70., 70.)
- -- -
# create a vector from two points
- -vector1 = geompy.MakeVector(p1, - p2)
- -- -
# create a vector from the given components
- -vector2 = geompy.MakeVectorDXDYDZ(30, - 30, 100)
- -- -
# add objects in the study
- -id_p1 = - geompy.addToStudy(p1, "Point1")
- -id_p2 = - geompy.addToStudy(p2, "Point2")
- -id_vector1 = geompy.addToStudy(vector1,"Vector1")
- -id_vector2 = geompy.addToStudy(vector2,"Vector2")
- -- -
# display the points and the vectors
- -gg.createAndDisplayGO(id_p1)
- -gg.createAndDisplayGO(id_p2)
- -gg.createAndDisplayGO(id_vector1)
- -gg.createAndDisplayGO(id_vector2) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p1 = geompy.MakeVertex( - 0., 0., - 100.)
- -p2 = geompy.MakeVertex(100., - 0., - 0.)
- -p3 = geompy.MakeVertex(200., - 200., 200.)
- -p4 = geompy.MakeVertex(100., - 100., 0.)
- -p5 = geompy.MakeVertex(0. - , 100., - 0.)
- -- -
# create a vector from the given components
- -vector = geompy.MakeVectorDXDYDZ(100., - 100., 100.)
- -- -
# create a vector from two points
- -vector_arc = geompy.MakeVector(p2, - p5)
- -- -
# create an arc from three points
- -arc = geompy.MakeArc(p2, - p4, p5)
- -- -
# create a wire
- -wire = geompy.MakeWire([vector_arc, - arc])
- -- -
# create a face
- -isPlanarWanted = 1
- -face = geompy.MakeFace(wire, - isPlanarWanted)
- -trimsize = 1000.
- -- -
# create a plane from a point, a vector and a trimsize
- -plane1 = geompy.MakePlane(p1, - vector, trimsize)
- -- -
# create a plane from three points and a trimsize
- -plane2 = geompy.MakePlaneThreePnt(p1, - p2, p3, trimsize)
- -- -
# create a plane from the given face
- -plane3 = geompy.MakePlaneFace(face, - trimsize)
- -- -
# add objects in the study
- -id_face = - geompy.addToStudy(face, "Face")
- -id_plane1 = geompy.addToStudy(plane1,"Plane1")
- -id_plane2 = geompy.addToStudy(plane2,"Plane2")
- -id_plane3 = geompy.addToStudy(plane3,"Plane3")
- -- -
# display the points and the vectors
- -gg.createAndDisplayGO(id_face)
- -gg.createAndDisplayGO(id_plane1)
- -gg.createAndDisplayGO(id_plane2)
- -gg.createAndDisplayGO(id_plane3)
- -gg.setDisplayMode(id_plane1,1)
- -gg.setTransparency(id_plane1,0.5)
- -gg.setDisplayMode(id_plane2,1)
- -gg.setTransparency(id_plane2,0.5)
- -gg.setDisplayMode(id_plane3,1)
- -gg.setTransparency(id_plane3,0.5) -
- - - - + + + + + +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
+ +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 vector from two points
+ +vxy = + geompy.MakeVector(px, py)
+ ++ +
# create a line from a point and a vector
+ +line1 = geompy.MakeLine(pz, + vxy)
+ ++ +
#create a line from two points
+ +line2 = geompy.MakeLineTwoPnt(p0, + p100)
+ ++ +
# add objects in the study
+ +id_vxy = + geompy.addToStudy(vxy, "Vector")
+ +id_line1 = + geompy.addToStudy(line1,"Line1")
+ +id_line2 = + geompy.addToStudy(line2,"Line2")
+ ++ +
# display lines
+ +gg.createAndDisplayGO(id_vxy)
+ +gg.createAndDisplayGO(id_line1)
+ +gg.createAndDisplayGO(id_line2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +px = geompy.MakeVertex(100., + 0. , 0. + )
+ +py = geompy.MakeVertex(0. + , 100., + 0. )
+ +pz = geompy.MakeVertex(0. + , 0. , + 100.)
+ ++ +
# create a vector on two points
+ +vxy = + geompy.MakeVector(px, py)
+ ++ +
# create a circle from a point, a vector and a radius
+ +circle1 = geompy.MakeCircle(pz, + vxy, 30)
+ ++ +
#create a circle from three points
+ +circle2 = geompy.MakeCircleThreePnt(p0, + px, py)
+ ++ +
# add objects in the study
+ +id_vxy = + geompy.addToStudy(vxy, "Vector")
+ +id_circle1 = + geompy.addToStudy(circle1,"Circle1")
+ +id_circle2 = + geompy.addToStudy(circle2,"Circle2")
+ ++ +
# display circles
+ +gg.createAndDisplayGO(id_vxy)
+ +gg.createAndDisplayGO(id_circle1)
+ +gg.createAndDisplayGO(id_circle2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0., + 0., 0.)
+ +p50 = geompy.MakeVertex(50., + 50., 50.)
+ ++ +
# create a vector from two points
+ +vector = + geompy.MakeVector(p0, p50)
+ ++ +
# create an ellipse from a point, a vector and radiuses
+ +ellipse = geompy.MakeEllipse(p50, + vector, 50, 25)
+ ++ +
# add objects in the study
+ +id_vector = + geompy.addToStudy(vector, "Vector")
+ +id_ellipse = geompy.addToStudy(ellipse,"Ellipse")
+ ++ +
# display the ellipse and its normal vector
+ +gg.createAndDisplayGO(id_vector)
+ +gg.createAndDisplayGO(id_ellipse) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(0. + , 0. , + 0. )
+ +p1 = geompy.MakeVertex(50. + , 100., 200.)
+ +p2 = geompy.MakeVertex(150., + 50., 100.)
+ +p3 = geompy.MakeVertex(100., + 150., 170.)
+ +p4 = geompy.MakeVertex(200., + 200., 150.)
+ ++ +
# create a polyline from a list of points
+ +polyline = geompy.MakePolyline([p0, + p1, p2, p3, p4])
+ ++ +
# create a bezier curve from a list of points
+ +bezier = geompy.MakeBezier([p0, + p1, p2, p3, p4])
+ ++ +
#create a b-spline curve from a list of points
+ +interpol = geompy.MakeInterpol([p0, + p1, p2, p3, p4])
+ ++ +
# add objects in the study
+ +id_p0 = + geompy.addToStudy(p0, "Point1")
+ +id_p1 = + geompy.addToStudy(p1, "Point2")
+ +id_p2 = + geompy.addToStudy(p2, "Point3")
+ +id_p3 = + geompy.addToStudy(p3, "Point4")
+ +id_p4 = + geompy.addToStudy(p4, "Point5")
+ +id_polyline = geompy.addToStudy(polyline, + "Polyline")
+ +id_bezier = + geompy.addToStudy(bezier, "Bezier")
+ +id_interpol = geompy.addToStudy(interpol, + "Interpol")
+ ++ +
# display the points and the curves
+ +gg.createAndDisplayGO(id_p0)
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_p3)
+ +gg.createAndDisplayGO(id_p4)
+ +gg.createAndDisplayGO(id_polyline)
+ +gg.createAndDisplayGO(id_bezier)
+ +gg.createAndDisplayGO(id_interpol) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex(10., + 50., 20.)
+ +p2 = geompy.MakeVertex(70., + 70., 70.)
+ ++ +
# create a vector from two points
+ +vector1 = geompy.MakeVector(p1, + p2)
+ ++ +
# create a vector from the given components
+ +vector2 = geompy.MakeVectorDXDYDZ(30, + 30, 100)
+ ++ +
# add objects in the study
+ +id_p1 = + geompy.addToStudy(p1, "Point1")
+ +id_p2 = + geompy.addToStudy(p2, "Point2")
+ +id_vector1 = geompy.addToStudy(vector1,"Vector1")
+ +id_vector2 = geompy.addToStudy(vector2,"Vector2")
+ ++ +
# display the points and the vectors
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_vector1)
+ +gg.createAndDisplayGO(id_vector2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 100.)
+ +p2 = geompy.MakeVertex(100., + 0., + 0.)
+ +p3 = geompy.MakeVertex(200., + 200., 200.)
+ +p4 = geompy.MakeVertex(100., + 100., 0.)
+ +p5 = geompy.MakeVertex(0. + , 100., + 0.)
+ ++ +
# create a vector from the given components
+ +vector = geompy.MakeVectorDXDYDZ(100., + 100., 100.)
+ ++ +
# create a vector from two points
+ +vector_arc = geompy.MakeVector(p2, + p5)
+ ++ +
# create an arc from three points
+ +arc = geompy.MakeArc(p2, + p4, p5)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vector_arc, + arc])
+ ++ +
# create a face
+ +isPlanarWanted = 1
+ +face = geompy.MakeFace(wire, + isPlanarWanted)
+ +trimsize = 1000.
+ ++ +
# create a plane from a point, a vector and a trimsize
+ +plane1 = geompy.MakePlane(p1, + vector, trimsize)
+ ++ +
# create a plane from three points and a trimsize
+ +plane2 = geompy.MakePlaneThreePnt(p1, + p2, p3, trimsize)
+ ++ +
# create a plane from the given face
+ +plane3 = geompy.MakePlaneFace(face, + trimsize)
+ ++ +
# add objects in the study
+ +id_face = + geompy.addToStudy(face, "Face")
+ +id_plane1 = geompy.addToStudy(plane1,"Plane1")
+ +id_plane2 = geompy.addToStudy(plane2,"Plane2")
+ +id_plane3 = geompy.addToStudy(plane3,"Plane3")
+ ++ +
# display the points and the vectors
+ +gg.createAndDisplayGO(id_face)
+ +gg.createAndDisplayGO(id_plane1)
+ +gg.createAndDisplayGO(id_plane2)
+ +gg.createAndDisplayGO(id_plane3)
+ +gg.setDisplayMode(id_plane1,1)
+ +gg.setTransparency(id_plane1,0.5)
+ +gg.setDisplayMode(id_plane2,1)
+ +gg.setTransparency(id_plane2,0.5)
+ +gg.setDisplayMode(id_plane3,1)
+ +gg.setTransparency(id_plane3,0.5) +
+ + + + diff --git a/doc/salome/gui/GEOM/basic_operations.htm b/doc/salome/gui/GEOM/basic_operations.htm index 7c9fdf198..49bd3918d 100755 --- a/doc/salome/gui/GEOM/basic_operations.htm +++ b/doc/salome/gui/GEOM/basic_operations.htm @@ -1,243 +1,248 @@ - - - - - -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p0 = - geompy.MakeVertex( 0., - 0., - 0.)
- -p200 = geompy.MakeVertex(200., - 200., 200.)
- -pz = - geompy.MakeVertex( 0., - 0., - 100.)
- -- -
# create a vector
- -vxyz = geompy.MakeVectorDXDYDZ(100., - 100., 100.)
- -- -
# create a box from two points
- -box = geompy.MakeBoxTwoPnt(p0, - p200)
- -- -
# create a plane
- -trimsize = - 500.
- -plane = geompy.MakePlane(pz, - vxyz, trimsize)
- -- -
# create partition objects
- -partition1 = geompy.MakePartition([box], - [plane])
- -partition2 = geompy.Partition([box], - [plane])
- -partition3 = geompy.MakeHalfPartition(box, - plane)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box,"Box")
- -id_plane = geompy.addToStudy(plane,"Plane")
- -id_partition1 = geompy.addToStudy(partition1,"MakePartition")
- -id_partition2 = geompy.addToStudy(partition2,"Partition")
- -id_partition3 = geompy.addToStudy(partition3,"MakeHalfPartition")
- -- -
# display the partition objects and the plane
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_plane)
- -gg.setDisplayMode(id_plane,1)
- -gg.createAndDisplayGO(id_partition1)
- -gg.createAndDisplayGO(id_partition2)
- -gg.createAndDisplayGO(id_partition3) -
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p0 = - geompy.MakeVertex( 0., - 0., - 0.)
- -p200 = geompy.MakeVertex(200., - 200., 200.)
- -- -
# create a box from two points
- -box = geompy.MakeBoxTwoPnt(p0, - p200)
- -- -
# perform an Archimede operation on the selected shape with selected - parameters
- -weight = - 1000000.
- -waterdensity = 1.
- -meshingdeflection - = 0.01
- -archimede = - geompy.Archimede(box, weight, waterdensity, meshingdeflection)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box,"Box")
- -id_archimede = geompy.addToStudy(archimede,"Archimede")
- -- -
# display the box and the result of Archimede operation
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_archimede)
- -gg.setDisplayMode(id_archimede,1) -
- -- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ +pz = + geompy.MakeVertex( 0., + 0., + 100.)
+ ++ +
# create a vector
+ +vxyz = geompy.MakeVectorDXDYDZ(100., + 100., 100.)
+ ++ +
# create a box from two points
+ +box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# create a plane
+ +trimsize = + 500.
+ +plane = geompy.MakePlane(pz, + vxyz, trimsize)
+ ++ +
# create partition objects
+ +partition1 = geompy.MakePartition([box], + [plane])
+ +partition2 = geompy.Partition([box], + [plane])
+ +partition3 = geompy.MakeHalfPartition(box, + plane)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box,"Box")
+ +id_plane = geompy.addToStudy(plane,"Plane")
+ +id_partition1 = geompy.addToStudy(partition1,"MakePartition")
+ +id_partition2 = geompy.addToStudy(partition2,"Partition")
+ +id_partition3 = geompy.addToStudy(partition3,"MakeHalfPartition")
+ ++ +
# display the partition objects and the plane
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_plane)
+ +gg.setDisplayMode(id_plane,1)
+ +gg.createAndDisplayGO(id_partition1)
+ +gg.createAndDisplayGO(id_partition2)
+ +gg.createAndDisplayGO(id_partition3) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ ++ +
# create a box from two points
+ +box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# perform an Archimede operation on the selected shape with selected + parameters
+ +weight = + 1000000.
+ +waterdensity = 1.
+ +meshingdeflection + = 0.01
+ +archimede = + geompy.Archimede(box, weight, waterdensity, meshingdeflection)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box,"Box")
+ +id_archimede = geompy.addToStudy(archimede,"Archimede")
+ ++ +
# display the box and the result of Archimede operation
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_archimede)
+ +gg.setDisplayMode(id_archimede,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/blocks.htm b/doc/salome/gui/GEOM/blocks.htm deleted file mode 100755 index f3b20495e..000000000 --- a/doc/salome/gui/GEOM/blocks.htm +++ /dev/null @@ -1,116 +0,0 @@ - - - - - -
- -
- -
- -
To use these options:
- -- -
In the main menu select Blocks - submenu.
- -- -
- -
- -
- -
- -
- -
- - - - diff --git a/doc/salome/gui/GEOM/blocks_operations.htm b/doc/salome/gui/GEOM/blocks_operations.htm index a040a5b4c..4b606d3af 100755 --- a/doc/salome/gui/GEOM/blocks_operations.htm +++ b/doc/salome/gui/GEOM/blocks_operations.htm @@ -1,258 +1,263 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p_25_25_50 = geompy.MakeVertex(25., - 25., 50.)
- -p_50_25_25 = geompy.MakeVertex(50., - 25., 25.)
- -p_25_50_25 = geompy.MakeVertex(25., - 50., 25.)
- -box = geompy.MakeBoxDXDYDZ(50, - 50, 50)
- -top_face = geompy.GetFaceNearPoint(box, - p_25_25_50)
- -yz_face = geompy.GetFaceNearPoint(box, - p_50_25_25)
- -xz_face = geompy.GetFaceNearPoint(box, - p_25_50_25)
- -top_face_ind = geompy.LocalOp.GetSubShapeIndex(box, - top_face)
- -yz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, - yz_face)
- -xz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, - xz_face)
- -- -
# Multi-transformate block and glue the result
- -box_tr1 = geompy.MakeMultiTransformation1D(box, - yz_face_ind, top_face_ind, 3)
- -box_tr2 = geompy.MakeMultiTransformation2D(box, - xz_face_ind, yz_face_ind, 3, top_face_ind, 0, 2)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box, - "Box")
- -id_box_tr1 = geompy.addToStudy(box_tr1, - "Multi-transformed Block 1D")
- -id_box_tr2 = geompy.addToStudy(box_tr2, - "Multi-transformed Block 2D")
- -- -
# display the results
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_box_tr1)
- -gg.createAndDisplayGO(id_box_tr2) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a box and a sphere
- -box = geompy.MakeBoxDXDYDZ(200, - 200, 200)
- -sphere = geompy.MakeSphereR(100)
- -- -
# make a compound
- -compound = geompy.MakeCompound([box, - sphere])
- -- -
# get all the blocks, contained in the given compound
- -make_block_explode - = geompy.MakeBlockExplode(compound, 1, 1)
- -- -
# add objects in the study
- -id_compound = geompy.addToStudy(compound, - "Compound")
- -id_make_block_explode - = geompy.addToStudy(make_block_explode[0], "MakeBlockExplode")
- -- -
# display the results
- -gg.createAndDisplayGO(id_compound)
- -gg.createAndDisplayGO(id_make_block_explode)
- -gg.setDisplayMode(id_make_block_explode,1) -
- -- -
import geompy
- -import salome
- -- -
# create a box and a sphere
- -box = geompy.MakeBoxDXDYDZ(200, - 200, 200)
- -- -
# check and improve
- -check_box = geompy.CheckAndImprove(box)
- -- -
# build all possible propagation groups
- -listChains = geompy.Propagate(check_box)
- -- -
# add objects in the study
- -geompy.addToStudy(check_box, - "Box")
- -for chain in listChains:
- -geompy.addToStudyInFather(check_box, - chain, "propagation chain")
- -salome.sg.updateObjBrowser(1) -
- -- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p_25_25_50 = geompy.MakeVertex(25., + 25., 50.)
+ +p_50_25_25 = geompy.MakeVertex(50., + 25., 25.)
+ +p_25_50_25 = geompy.MakeVertex(25., + 50., 25.)
+ +box = geompy.MakeBoxDXDYDZ(50, + 50, 50)
+ +top_face = geompy.GetFaceNearPoint(box, + p_25_25_50)
+ +yz_face = geompy.GetFaceNearPoint(box, + p_50_25_25)
+ +xz_face = geompy.GetFaceNearPoint(box, + p_25_50_25)
+ +top_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + top_face)
+ +yz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + yz_face)
+ +xz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + xz_face)
+ ++ +
# Multi-transformate block and glue the result
+ +box_tr1 = geompy.MakeMultiTransformation1D(box, + yz_face_ind, top_face_ind, 3)
+ +box_tr2 = geompy.MakeMultiTransformation2D(box, + xz_face_ind, yz_face_ind, 3, top_face_ind, 0, 2)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_box_tr1 = geompy.addToStudy(box_tr1, + "Multi-transformed Block 1D")
+ +id_box_tr2 = geompy.addToStudy(box_tr2, + "Multi-transformed Block 2D")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_box_tr1)
+ +gg.createAndDisplayGO(id_box_tr2) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a box and a sphere
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ +sphere = geompy.MakeSphereR(100)
+ ++ +
# make a compound
+ +compound = geompy.MakeCompound([box, + sphere])
+ ++ +
# get all the blocks, contained in the given compound
+ +make_block_explode + = geompy.MakeBlockExplode(compound, 1, 1)
+ ++ +
# add objects in the study
+ +id_compound = geompy.addToStudy(compound, + "Compound")
+ +id_make_block_explode + = geompy.addToStudy(make_block_explode[0], "MakeBlockExplode")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_compound)
+ +gg.createAndDisplayGO(id_make_block_explode)
+ +gg.setDisplayMode(id_make_block_explode,1) +
+ ++ +
import geompy
+ +import salome
+ ++ +
# create a box and a sphere
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ ++ +
# check and improve
+ +check_box = geompy.CheckAndImprove(box)
+ ++ +
# build all possible propagation groups
+ +listChains = geompy.Propagate(check_box)
+ ++ +
# add objects in the study
+ +geompy.addToStudy(check_box, + "Box")
+ +for chain in listChains:
+ +geompy.addToStudyInFather(check_box, + chain, "propagation chain")
+ +salome.sg.updateObjBrowser(1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/boolean_operations.htm b/doc/salome/gui/GEOM/boolean_operations.htm index 8593ee771..b0410a81e 100755 --- a/doc/salome/gui/GEOM/boolean_operations.htm +++ b/doc/salome/gui/GEOM/boolean_operations.htm @@ -1,348 +1,353 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(25, - 55, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 0)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a sphere
- -sphere = geompy.MakeSphereR(40)
- -- -
# fuse
- -fuse = geompy.MakeFuse(cylinder, - sphere)
- -- -
# add objects in the study
- -id_cylinder = geompy.addToStudy(cylinder, - "Cylinder")
- -id_sphere = geompy.addToStudy(sphere, - "Sphere")
- -id_fuse = geompy.addToStudy(fuse, - "Fuse")
- -- -
# display results
- -gg.createAndDisplayGO(id_cylinder)
- -gg.setDisplayMode(id_cylinder,1)
- -gg.createAndDisplayGO(id_sphere)
- -gg.setDisplayMode(id_sphere,1)
- -gg.createAndDisplayGO(id_fuse)
- -gg.setDisplayMode(id_fuse,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(25, - 55, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 0)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a sphere
- -sphere = geompy.MakeSphereR(40)
- -- -
# make common
- -common = geompy.MakeCommon(cylinder, - sphere)
- -- -
# add objects in the study
- -id_common = geompy.addToStudy(common, - "Common")
- -- -
# display the results
- -gg.createAndDisplayGO(id_common)
- -gg.setDisplayMode(id_common,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(25, - 55, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 0)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a sphere
- -sphere = geompy.MakeSphereR(40)
- -- -
#cut
- -cut = geompy.MakeCut(cylinder, - sphere)
- -- -
# add objects in the study
- -id_cut = geompy.addToStudy(cut, - "Cut")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cut)
- -gg.setDisplayMode(id_cut,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(25, - 55, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 0)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a sphere
- -sphere = geompy.MakeSphereR(40)
- -- -
# make a section
- -section = geompy.MakeSection(cylinder, - sphere)
- -- -
# add objects in the study
- -id_section = geompy.addToStudy(section, - "Section")
- -- -
# display the results
- -gg.createAndDisplayGO(id_section)
- -gg.setDisplayMode(id_section,1) -
- -- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# fuse
+ +fuse = geompy.MakeFuse(cylinder, + sphere)
+ ++ +
# add objects in the study
+ +id_cylinder = geompy.addToStudy(cylinder, + "Cylinder")
+ +id_sphere = geompy.addToStudy(sphere, + "Sphere")
+ +id_fuse = geompy.addToStudy(fuse, + "Fuse")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_cylinder)
+ +gg.setDisplayMode(id_cylinder,1)
+ +gg.createAndDisplayGO(id_sphere)
+ +gg.setDisplayMode(id_sphere,1)
+ +gg.createAndDisplayGO(id_fuse)
+ +gg.setDisplayMode(id_fuse,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make common
+ +common = geompy.MakeCommon(cylinder, + sphere)
+ ++ +
# add objects in the study
+ +id_common = geompy.addToStudy(common, + "Common")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_common)
+ +gg.setDisplayMode(id_common,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
#cut
+ +cut = geompy.MakeCut(cylinder, + sphere)
+ ++ +
# add objects in the study
+ +id_cut = geompy.addToStudy(cut, + "Cut")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cut)
+ +gg.setDisplayMode(id_cut,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(25, + 55, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a sphere
+ +sphere = geompy.MakeSphereR(40)
+ ++ +
# make a section
+ +section = geompy.MakeSection(cylinder, + sphere)
+ ++ +
# add objects in the study
+ +id_section = geompy.addToStudy(section, + "Section")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_section)
+ +gg.setDisplayMode(id_section,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/box.htm b/doc/salome/gui/GEOM/box.htm index d03a7cf81..18cf21730 100755 --- a/doc/salome/gui/GEOM/box.htm +++ b/doc/salome/gui/GEOM/box.htm @@ -1,172 +1,177 @@ - - - - - -
To create a Box - in the Main Menu select New Entity - > Primitives - > Box
- -- -
There are 2 algorithms for creation of a Box. -
- -The - Result of each operation will be a - GEOM_Object (SOLID).
- -- -
Firstly, you can define a Box - by two specified Vertices (its - opposite corners), and with edges, parallel to the coordinate axes.
- -TUI Command - : geompy.MakeBoxTwoPnt(Point1, - Point2)
- -Arguments: Name - + 2 vertices (opposite corners of the box).
- -- -
- -
Secondly, - you can define a Box by specified dimensions along the coordinate - axes and with edges, parallel to them. The - center of the box will be at point (DX/2, DY/2, DZ/2).
- -TUI Command - : geompy.MakeBoxDXDYDZ(DX, - DY, DZ)
- -Arguments: Name - + 3 values (dimensions at origin).
- -- -
NB! The is - a third way to create a Box, which is currently accessible only via TUI commands.
- -You - can define a Box by the coordinates - of two Vertices (in this way - you don't need to create them in advance).
- -TUI Command: - geompy.MakeBox(x1,y1,z1,x2,y2,z2) -
- -Arguments: - Name + X, Y and Z coordinates - of both points.
- -- -
Example:
- -- -
Our TUI Scripts - provide you with useful examples of creation of Primitives. -
- -- - - - + + + + + +
To create a Box + in the Main Menu select New Entity - > Primitives - > Box
+ ++ +
There are 2 algorithms for creation of a Box. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Box + by two specified Vertices (its + opposite corners), and with edges, parallel to the coordinate axes.
+ +TUI Command + : geompy.MakeBoxTwoPnt(Point1, + Point2)
+ +Arguments: Name + + 2 vertices (opposite corners of the box).
+ ++ +
+ +
Secondly, + you can define a Box by specified dimensions along the coordinate + axes and with edges, parallel to them. The + center of the box will be at point (DX/2, DY/2, DZ/2).
+ +TUI Command + : geompy.MakeBoxDXDYDZ(DX, + DY, DZ)
+ +Arguments: Name + + 3 values (dimensions at origin).
+ ++ +
NB! There is + a third way to create a Box, which is currently accessible only via TUI commands.
+ +You + can define a Box by the coordinates + of two Vertices (in this way + you don't need to create them in advance).
+ +TUI Command: + geompy.MakeBox(x1,y1,z1,x2,y2,z2) +
+ +Arguments: Name + + X, Y and Z coordinates of both points. + ++ +
Example:
+ ++ +
Our TUI Scripts + provide you with useful examples of creation of Primitives. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/building_by_blocks.htm b/doc/salome/gui/GEOM/building_by_blocks.htm index 2a37b672d..724ce0cc4 100755 --- a/doc/salome/gui/GEOM/building_by_blocks.htm +++ b/doc/salome/gui/GEOM/building_by_blocks.htm @@ -1,330 +1,335 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p1 = geompy.MakeVertex( - 0., 0., - 0.)
- -p2 = geompy.MakeVertex(150., - 30., 0.)
- -p3 = geompy.MakeVertex( - 0., 120., - 50.)
- -p4 = geompy.MakeVertex( - 0., 40., - 70.)
- -- -
# create edges
- -edge1 = geompy.MakeEdge(p1, - p2)
- -edge2 = geompy.MakeEdge(p2, - p3)
- -edge3 = geompy.MakeEdge(p3, - p4)
- -edge4 = geompy.MakeEdge(p4, - p1)
- -- -
# create a quadrangle face from four edges
- -qface1 = geompy.MakeQuad(edge1, - edge2, edge3, edge4)
- -- -
# create a quadrangle face from two edges
- -qface2 = geompy.MakeQuad2Edges(edge1, - edge3)
- -- -
# create a quadrangle from four points in its corners
- -qface3 = geompy.MakeQuad4Vertices(p1, - p2, p3, p4)
- -- -
# add objects in the study
- -id_p1 = geompy.addToStudy(p1,"Point1")
- -id_p2 = geompy.addToStudy(p2,"Point2")
- -id_p3 = geompy.addToStudy(p3,"Point3")
- -id_p4 = geompy.addToStudy(p4,"Point4")
- -id_edge1 = geompy.addToStudy(edge1,"Edge1")
- -id_edge2 = geompy.addToStudy(edge2,"Edge2")
- -id_edge3 = geompy.addToStudy(edge3,"Edge3")
- -id_edge4 = geompy.addToStudy(edge4,"Edge4")
- -id_qface1 = geompy.addToStudy(qface1,"Qface1")
- -id_qface2 = geompy.addToStudy(qface2,"Qface2")
- -id_qface3 = geompy.addToStudy(qface3,"Qface3")
- -- -
# display the vertices, the edges and the quadrangle faces
- -gg.createAndDisplayGO(id_p1)
- -gg.createAndDisplayGO(id_p2)
- -gg.createAndDisplayGO(id_p3)
- -gg.createAndDisplayGO(id_p4)
- -gg.createAndDisplayGO(id_edge1)
- -gg.createAndDisplayGO(id_edge2)
- -gg.createAndDisplayGO(id_edge3)
- -gg.createAndDisplayGO(id_edge4)
- -gg.createAndDisplayGO(id_qface1)
- -gg.setDisplayMode(id_qface1,1)
- -gg.createAndDisplayGO(id_qface2)
- -gg.setDisplayMode(id_qface2,1)
- -gg.createAndDisplayGO(id_qface3)
- -gg.setDisplayMode(id_qface3,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p1 = geompy.MakeVertex( - 0., 0., - 0.)
- -p2 = geompy.MakeVertex(150., - 30., 0.)
- -p3 = geompy.MakeVertex( - 0., 120., - 50.)
- -p4 = geompy.MakeVertex( - 0., 40., - 70.)
- -p5 = geompy.MakeVertex(100., - 20., 45.)
- -p6 = geompy.MakeVertex( - 0., 70., - 40.)
- -p7 = geompy.MakeVertex( - 70., 70., 70.)
- -p8 = geompy.MakeVertex( - 70.,-15., 70.)
- -p9 = geompy.MakeVertex( - 0., 0., - 40.)
- -p10 = geompy.MakeVertex( - 0., 70., - 0.)
- -p11 = geompy.MakeVertex( - 70., 70., 0.)
- -p12 = geompy.MakeVertex( - 70., -15., 0.)
- -p13 = geompy.MakeVertex( - 0., 0., - 0.)
- -- -
# create faces
- -qface1 = geompy.MakeQuad4Vertices(p1, - p2, p3, p4)
- -qface2 = geompy.MakeQuad4Vertices(p1, - p2, p5, p4)
- -qface3 = geompy.MakeQuad4Vertices(p13, - p12, p11, p10)
- -qface4 = geompy.MakeQuad4Vertices(p9, - p8, p7, p6)
- -qface5 = geompy.MakeQuad4Vertices(p13, - p9, p6, p10)
- -qface6 = geompy.MakeQuad4Vertices(p13, - p9, p8, p12)
- -qface7 = geompy.MakeQuad4Vertices(p12, - p8, p7, p11)
- -qface8 = geompy.MakeQuad4Vertices(p11, - p7, p6, p10)
- -- -
# create a hexahedral solid between two given faces
- -solid1 = geompy.MakeHexa2Faces(qface1, - qface2)
- -- -
# create a hexahedral solids, bounded by six given faces
- -solid2 = geompy.MakeHexa(qface3, - qface4, qface5, qface6, qface7, qface8)
- -- -
# add objects in the study
- -id_solid1 = geompy.addToStudy(solid1,"Solid1")
- -id_solid2 = geompy.addToStudy(solid2,"Solid2")
- -- -
# display solids
- -gg.createAndDisplayGO(id_solid1)
- -gg.setDisplayMode(id_solid1,1)
- -gg.createAndDisplayGO(id_solid2)
- -gg.setDisplayMode(id_solid2,1) -
- -- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 0.)
+ +p2 = geompy.MakeVertex(150., + 30., 0.)
+ +p3 = geompy.MakeVertex( + 0., 120., + 50.)
+ +p4 = geompy.MakeVertex( + 0., 40., + 70.)
+ ++ +
# create edges
+ +edge1 = geompy.MakeEdge(p1, + p2)
+ +edge2 = geompy.MakeEdge(p2, + p3)
+ +edge3 = geompy.MakeEdge(p3, + p4)
+ +edge4 = geompy.MakeEdge(p4, + p1)
+ ++ +
# create a quadrangle face from four edges
+ +qface1 = geompy.MakeQuad(edge1, + edge2, edge3, edge4)
+ ++ +
# create a quadrangle face from two edges
+ +qface2 = geompy.MakeQuad2Edges(edge1, + edge3)
+ ++ +
# create a quadrangle from four points in its corners
+ +qface3 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)
+ ++ +
# add objects in the study
+ +id_p1 = geompy.addToStudy(p1,"Point1")
+ +id_p2 = geompy.addToStudy(p2,"Point2")
+ +id_p3 = geompy.addToStudy(p3,"Point3")
+ +id_p4 = geompy.addToStudy(p4,"Point4")
+ +id_edge1 = geompy.addToStudy(edge1,"Edge1")
+ +id_edge2 = geompy.addToStudy(edge2,"Edge2")
+ +id_edge3 = geompy.addToStudy(edge3,"Edge3")
+ +id_edge4 = geompy.addToStudy(edge4,"Edge4")
+ +id_qface1 = geompy.addToStudy(qface1,"Qface1")
+ +id_qface2 = geompy.addToStudy(qface2,"Qface2")
+ +id_qface3 = geompy.addToStudy(qface3,"Qface3")
+ ++ +
# display the vertices, the edges and the quadrangle faces
+ +gg.createAndDisplayGO(id_p1)
+ +gg.createAndDisplayGO(id_p2)
+ +gg.createAndDisplayGO(id_p3)
+ +gg.createAndDisplayGO(id_p4)
+ +gg.createAndDisplayGO(id_edge1)
+ +gg.createAndDisplayGO(id_edge2)
+ +gg.createAndDisplayGO(id_edge3)
+ +gg.createAndDisplayGO(id_edge4)
+ +gg.createAndDisplayGO(id_qface1)
+ +gg.setDisplayMode(id_qface1,1)
+ +gg.createAndDisplayGO(id_qface2)
+ +gg.setDisplayMode(id_qface2,1)
+ +gg.createAndDisplayGO(id_qface3)
+ +gg.setDisplayMode(id_qface3,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex( + 0., 0., + 0.)
+ +p2 = geompy.MakeVertex(150., + 30., 0.)
+ +p3 = geompy.MakeVertex( + 0., 120., + 50.)
+ +p4 = geompy.MakeVertex( + 0., 40., + 70.)
+ +p5 = geompy.MakeVertex(100., + 20., 45.)
+ +p6 = geompy.MakeVertex( + 0., 70., + 40.)
+ +p7 = geompy.MakeVertex( + 70., 70., 70.)
+ +p8 = geompy.MakeVertex( + 70.,-15., 70.)
+ +p9 = geompy.MakeVertex( + 0., 0., + 40.)
+ +p10 = geompy.MakeVertex( + 0., 70., + 0.)
+ +p11 = geompy.MakeVertex( + 70., 70., 0.)
+ +p12 = geompy.MakeVertex( + 70., -15., 0.)
+ +p13 = geompy.MakeVertex( + 0., 0., + 0.)
+ ++ +
# create faces
+ +qface1 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)
+ +qface2 = geompy.MakeQuad4Vertices(p1, + p2, p5, p4)
+ +qface3 = geompy.MakeQuad4Vertices(p13, + p12, p11, p10)
+ +qface4 = geompy.MakeQuad4Vertices(p9, + p8, p7, p6)
+ +qface5 = geompy.MakeQuad4Vertices(p13, + p9, p6, p10)
+ +qface6 = geompy.MakeQuad4Vertices(p13, + p9, p8, p12)
+ +qface7 = geompy.MakeQuad4Vertices(p12, + p8, p7, p11)
+ +qface8 = geompy.MakeQuad4Vertices(p11, + p7, p6, p10)
+ ++ +
# create a hexahedral solid between two given faces
+ +solid1 = geompy.MakeHexa2Faces(qface1, + qface2)
+ ++ +
# create a hexahedral solids, bounded by six given faces
+ +solid2 = geompy.MakeHexa(qface3, + qface4, qface5, qface6, qface7, qface8)
+ ++ +
# add objects in the study
+ +id_solid1 = geompy.addToStudy(solid1,"Solid1")
+ +id_solid2 = geompy.addToStudy(solid2,"Solid2")
+ ++ +
# display solids
+ +gg.createAndDisplayGO(id_solid1)
+ +gg.setDisplayMode(id_solid1,1)
+ +gg.createAndDisplayGO(id_solid2)
+ +gg.setDisplayMode(id_solid2,1) +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/chamfer.htm b/doc/salome/gui/GEOM/chamfer.htm index 1ca64f645..34174349c 100755 --- a/doc/salome/gui/GEOM/chamfer.htm +++ b/doc/salome/gui/GEOM/chamfer.htm @@ -1,191 +1,197 @@ - - - - - -
To produce - a Chamfer in the Main Menu select - Operations - > Transformation - > - Chamfer
- -- -
This operation allows you to make chamfer - of the edges of a Shape.
- -The Result will - be a GEOM_Object.
- -- -
To create - chamfer on all edges of the given shape, you need to define the Main Object to create a chamfer on and - the Dimension (radius) of the - chamfer.
- -TUI Command: - geompy.MakeChamferAll(Shape, D) -
- -Arguments: Name - + 1 SHAPE + 1 value (Chamfer dimension).
- -- -
- -
To create chamfer on the specified edges of - the given shape, you - need to define the Main Object - to create a fillet on, select the necessary edges in the viewer and define - the Dimension of the Chamfer.
- -TUI Command: - geompy.MakeChamferEdge(Shape, D1, - D2, Face1, Face2), where Shape is a shape to create a chamfer on, - D1 is a chamfer size along Face1, D2 is a chamfer size along Face2, Face1 - and Face2 are indices of faces in Shape.
- -- -
- -
To create chamfer on the specified faces of - the given shape, you - need to define the Main Object - to create a fillet on, select the two faces to which belongs the necessary - common edge in the OCC Viewer and define the Dimension - of the Chamfer.
- -TUI Command: - geompy.MakeChamferFaces(Shape, D1, - D2, ListOfFaceID), where Shape is a shape to create chamfer on, - D1 is a chamfer size along a face from ListOfFaceID, - D2 is a - chamfer size along two faces connected to the edge to which the chamfer - is applied, ListOfFaceID is a list of indices of faces in Shape.
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- -
- -
- -
- -
- - - - + + + + + +
To produce + a Chamfer in the Main Menu select + Operations - > Transformation - > + Chamfer
+ ++ +
This operation allows you to make chamfer + of the edges of a Shape.
+ +The Result will + be a GEOM_Object.
+ ++ +
To create + chamfer on all edges of the given shape, you need to define the Main Object to create a chamfer on and + the Dimension (radius) of the + chamfer.
+ +TUI Command: + geompy.MakeChamferAll(Shape, D) +
+ +Arguments: Name + + 1 SHAPE + 1 value (Chamfer dimension).
+ ++ +
+ +
To create chamfer on the specified edges of + the given shape, you + need to define the Main Object + to create a fillet on, select the two faces to which belongs the necessary common edge in the viewer and define + the Dimension of the Chamfer.
+ +TUI Command: + geompy.MakeChamferEdge(Shape, D1, + D2, Face1, Face2), where Shape is a shape to create a chamfer on, + D1 is a chamfer size along Face1, D2 is a chamfer size along Face2, Face1 + and Face2 are indices of faces in Shape.
+ ++ +
+ +
To create chamfer on the specified faces of + the given shape, you + need to define the Main Object + to create a fillet on, select the necessary faces the OCC Viewer and define + the Dimension of the Chamfer.
+ +TUI Command: + geompy.MakeChamferFaces(Shape, D1, + D2, ListOfFaceID), where Shape is a shape to create chamfer on, + D1 is a chamfer size along a face from ListOfFaceID, + D2 is a + chamfer size along two faces connected to the edge to which the chamfer + is applied, ListOfFaceID is a list of indices of faces in Shape.
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ +
+ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/changing_display_parameters.htm b/doc/salome/gui/GEOM/changing_display_parameters.htm index 422a4f784..604eea0ab 100755 --- a/doc/salome/gui/GEOM/changing_display_parameters.htm +++ b/doc/salome/gui/GEOM/changing_display_parameters.htm @@ -1,178 +1,183 @@ - - - - - -
import - salome
- -import geompy
- -box = geompy.MakeBox(0,0,0, - 50,50,50)
- -- -
sphere = geompy.MakeSphere(50,50,50, - 30)
- -fuse = geompy.MakeBoolean(box,sphere,3)
- -fuse_id = geompy.addToStudy(fuse,"Fuse")
- -- -
gg = salome.ImportComponentGUI("GEOM")
- -gg.createAndDisplayGO(fuse_id)
- -gg.setDisplayMode(fuse_id,1) -
- -- -
import salome
- -import geompy
- -box = geompy.MakeBox(0,0,0, - 50,50,50)
- -- -
sphere = geompy.MakeSphere(50,50,50, - 30)
- -fuse = geompy.MakeBoolean(box,sphere,3)
- -fuse_id = geompy.addToStudy(fuse,"Fuse")
- -- -
gg = salome.ImportComponentGUI("GEOM")
- -gg.createAndDisplayGO(fuse_id)
- -gg.setDisplayMode(fuse_id,1)
- -gg.setColor(fuse_id,218,165,31) -
- -- -
- -
import salome
- -import geompy
- -- -
box = geompy.MakeBox(0,0,0, - 50,50,50)
- -sphere = geompy.MakeSphere(50,50,50, - 30)
- -- -
fuse = geompy.MakeBoolean(box,sphere,3)
- -fuse_id = geompy.addToStudy(fuse,"Fuse")
- -- -
gg = salome.ImportComponentGUI("GEOM")
- -gg.createAndDisplayGO(fuse_id)
- -gg.setDisplayMode(fuse_id,1)
- -gg.setColor(fuse_id,218,165,31)
- -gg.setTransparency(fuse_id,0.5) -
- - - - + + + + + +import + salome
+ +import geompy
+ +box = geompy.MakeBox(0,0,0, + 50,50,50)
+ ++ +
sphere = geompy.MakeSphere(50,50,50, + 30)
+ +fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1) +
+ ++ +
import salome
+ +import geompy
+ +box = geompy.MakeBox(0,0,0, + 50,50,50)
+ ++ +
sphere = geompy.MakeSphere(50,50,50, + 30)
+ +fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1)
+ +gg.setColor(fuse_id,218,165,31) +
+ ++ +
+ +
import salome
+ +import geompy
+ ++ +
box = geompy.MakeBox(0,0,0, + 50,50,50)
+ +sphere = geompy.MakeSphere(50,50,50, + 30)
+ ++ +
fuse = geompy.MakeBoolean(box,sphere,3)
+ +fuse_id = geompy.addToStudy(fuse,"Fuse")
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ +gg.createAndDisplayGO(fuse_id)
+ +gg.setDisplayMode(fuse_id,1)
+ +gg.setColor(fuse_id,218,165,31)
+ +gg.setTransparency(fuse_id,0.5) +
+ + + + diff --git a/doc/salome/gui/GEOM/changing_displaying_parameters.htm b/doc/salome/gui/GEOM/changing_displaying_parameters.htm deleted file mode 100755 index 683769b8c..000000000 --- a/doc/salome/gui/GEOM/changing_displaying_parameters.htm +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - In GEOM you can set different
- displaying parameters for visualization of geometrical objects in the
- viewer:
- -
Isos (in OCC viewer only)
- -
To set displaying parameters of a geometrical object:
- -- -
Right-click on this geometrical object in - the viewer and from the pop-up menu select Properties.
- -- -
- - - -
- -
This - option is relevant for viewing 3D objects. Wireframe mode means that
- -- -
Description: - Set the display mode of the selected shape.
- -- -
TUI - Command: gg.setDisplayMode(ID, Short)
- -- -
Example:
- -- -
- -
- - - -
- -
Description: - Change the color of a shape.
- -- -
TUI Command: - gg.setColor(ID, Short, Short, Short)
- -- -
Example:
- -- -
- -
- -
- - - -
- -
Description: - Change the transparency (between 0 & 1) of a shape.
- -- -
TUI Command: - gg.setTransparency(ID, Double)
- -- -
Dialog Box:
- -- -
- -
Example:
- -- -
- -
- - - - diff --git a/doc/salome/gui/GEOM/check_free_boundaries.htm b/doc/salome/gui/GEOM/check_free_boundaries.htm index d5da15b92..b6e127486 100755 --- a/doc/salome/gui/GEOM/check_free_boundaries.htm +++ b/doc/salome/gui/GEOM/check_free_boundaries.htm @@ -1,154 +1,150 @@ - - - - - -
To Check Free Boundaries in the Main Menu - select Repair - > Check Free Boundaries.
- -- -
This operation detects wires and edges that - correspond to the shape's boundary, and highlights it
- -- -
Result: GEOM_Object. -
- -- -
TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), - where Shape is a shape to be checked, NoError is false if an error occurred - while checking free boundaries, ClosedWires is a list of closed free boundary - wires, OpenWires is a list of open free boundary wires.
- -- -
Arguments: - Shape
- -- -
Dialog - Box:
- -- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To Check Free Boundaries in the Main Menu + select Repair - > Check Free Boundaries.
+ ++ +
This operation detects wires and edges that + correspond to the shape's boundary, and highlights it
+ ++ +
The + Result will be a GEOM_Object.
+ ++ +
TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), + where Shape is a shape to be checked, NoError is false if an error occurred + while checking free boundaries, ClosedWires is a list of closed free boundary + wires, OpenWires is a list of open free boundary wires.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/check_free_faces.htm b/doc/salome/gui/GEOM/check_free_faces.htm index 68757732c..b704b6b75 100755 --- a/doc/salome/gui/GEOM/check_free_faces.htm +++ b/doc/salome/gui/GEOM/check_free_faces.htm @@ -1,148 +1,150 @@ - - - - - -
To Check Free Faces in the Main Menu select - Repair - > Check Free Faces.
- -- -
This operation retrieves all free faces from - a given shape. A free face is a face not shared between two shells of - the shape.
- -- -
Result: GEOM_Object. - Returns a list of IDs of all free faces, contained in the shape.
- -TUI Command : GetFreeFacesIDs(Shape), where - Shape is a shape to be checked.
- -Arguments: - Shape
- -- -
- -
- -
Examples:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To Check Free Faces in the Main Menu select + Repair - > Check Free Faces.
+ +This operation retrieves all free faces from + a given shape. A free face is a face not shared between two shells of + the shape.
+ ++ +
The + Result will be a GEOM_Object + (a list of IDs of all free faces, containing in the shape).
+ +TUI Command : + GetFreeFacesIDs(Shape), where Shape is a shape to be checked.
+ ++ +
+ +
Examples:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/circle.htm b/doc/salome/gui/GEOM/circle.htm index 22ad198ca..96568f5e0 100755 --- a/doc/salome/gui/GEOM/circle.htm +++ b/doc/salome/gui/GEOM/circle.htm @@ -1,150 +1,156 @@ - - - - - -
To create a Circle - in the Main Menu select New Entity - > Basic - > Circle
- -- -
There - are 2 algorithms to create a Circle in - the 3D space.
- -The - Result of each operation will be a - GEOM_Object (edge).
- -- -
Firstly, - you can define a Circle by a Center Point, a - Vector giving the circle’s - normal and a Radius.
- -TUI Command: - geompy.MakeCircle(Point, Vector, Radius)
- -Arguments: - Name + 1 vertex (for the center) - + 1 edge (for the direction) + Radius.
- -- -
- -
Secondly, - you can define a Circle by three - Points that lie on it.
- -TUI - Command: geompy.MakeCircleThreePnt(Point1, - Point2, Point3)
- -Arguments: - Name + 3 points which will form - the circle.
- -- -
- -
- -
Our TUI Scripts provide you with useful examples - of creation of Basic - Geometric Objects.
- -- - - - + + + + + +
To create a Circle + in the Main Menu select New Entity - > Basic - > Circle
+ ++ +
There + are 2 algorithms to create a Circle in + the 3D space.
+ +The + Result of each operation will be a + GEOM_Object (edge).
+ ++ +
Firstly, + you can define a Circle by a Center Point, a + Vector giving the circle’s + normal and a Radius.
+ +TUI Command: + geompy.MakeCircle(Point, Vector, Radius)
+ +Arguments: + Name + 1 vertex (for the center) + + 1 edge (for the direction) + Radius.
+ ++ +
+ +
Secondly, + you can define a Circle by three + Points that lie on it.
+ +TUI + Command: geompy.MakeCircleThreePnt(Point1, + Point2, Point3)
+ +Arguments: + Name + 3 points which will form + the circle.
+ ++ +
+ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/close_contour.htm b/doc/salome/gui/GEOM/close_contour.htm index 3dd603fc4..e8accf8a6 100755 --- a/doc/salome/gui/GEOM/close_contour.htm +++ b/doc/salome/gui/GEOM/close_contour.htm @@ -1,149 +1,153 @@ - - - - - -
To produce - a Close Contour operation in the - Main Menu select Repair - > Close - Contour.
- -- -
This operation closes an open contour and modifies - the underlying face (if needed) in accordance with user specified mode:
- -By common vertex – a - vertex is created between the end points of the contour and its tolerance - is increased to a value of the gap between the ends of the contour;
By new edge – a new edge - is inserted between the end points of the contour.
This operation is available in OCC - Viewer only.
- -- -
Result: GEOM_Object.
- -- -
TUI Command: - geompy.CloseContour(Shape, Wires, - IsCommonVertex), where Shape is a shape to be processed, Wires - is a list of edges or wires ID’s which has to be closed within the shape - (if the list contains only one element = -1, the shape itself is considered - as a wire), IsCommonVertex - if this parameter is True a closure has to be done by creation of a common - vertex, otherwise an edge is added between the end vertices.
- -- -
Arguments: Name + 1 shape + contour (Wire, - or a set of Edges) + mode of closure (by vertex or by edge)
- -- -
Dialog Box:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To produce + a Close Contour operation in the + Main Menu select Repair - > Close + Contour.
+ ++ +
This operation closes an open contour and modifies + the underlying face (if needed) in accordance with user specified mode:
+ +By common vertex – a + vertex is created between the end points of the contour and its tolerance + is increased to a value of the gap between the ends of the contour;
By new edge – a new edge + is inserted between the end points of the contour.
This operation is available in OCC + Viewer only.
+ ++ +
The Result will + be a GEOM_Object.
+ ++ +
TUI Command: + geompy.CloseContour(Shape, Wires, + IsCommonVertex), where Shape is a shape to be processed, Wires + is a list of edges or wires ID’s which has to be closed within the shape + (if the list contains only one element = -1, the shape itself is considered + as a wire), IsCommonVertex + if this parameter is True a closure has to be done by creation of a common + vertex, otherwise an edge is added between the end vertices.
+ ++ +
Arguments: Name + 1 shape + contour (Wire, + or a set of Edges) + mode of closure (by vertex or by edge)
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/color.htm b/doc/salome/gui/GEOM/color.htm index beef98a44..9732c7c03 100755 --- a/doc/salome/gui/GEOM/color.htm +++ b/doc/salome/gui/GEOM/color.htm @@ -1,105 +1,111 @@ - - - - - -
You can change the filling color of your object in the standard Select Color menu accessible by right-clicking - on an object and selecting Color - in the pop-up menu box.
- -- -
TUI - Command: gg.setColor(ID, Short, Short, Short)
- -- -
- -
Our TUI Scripts provide you with useful examples - of Changing Display - Parameters.
- -- - - - + + + + + +
You can change the filling color of your object in the standard Select Color menu accessible by right-clicking + on an object and selecting Color + in the pop-up menu box.
+ ++ +
TUI + Command: gg.setColor(ID, Short, Short, Short)
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of Changing Display + Parameters.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/common.htm b/doc/salome/gui/GEOM/common.htm index 02eab0666..25b4226c7 100755 --- a/doc/salome/gui/GEOM/common.htm +++ b/doc/salome/gui/GEOM/common.htm @@ -1,141 +1,147 @@ - - - - - -
To produce - a Common in the Main Menu select - Operations - > Boolean - > Common
- -- -
This - operation cuts the common part of two shapes and transforms - it into an independent geometrical object.
- -- -
The - Result will be a GEOM_Object - (COMPOUND).
- -TUI Command: - geompy.MakeCommon(s1, - s2)
- -Arguments: - Name + 2 shapes.
- -- -
- -
Example:
- -- -
Our TUI Scripts provide you with useful examples - of the use of Boolean Operations. -
- -- - - - + + + + + +
To produce + a Common operation in the Main + Menu select Operations - > Boolean + - > Common
+ ++ +
This + operation cuts the common part of two shapes and transforms + it into an independent geometrical object.
+ ++ +
The + Result will be a GEOM_Object + (COMPOUND).
+ +TUI Command: + geompy.MakeCommon(s1, + s2)
+ +Arguments: + Name + 2 shapes.
+ ++ +
+ +
Example:
+ ++ +
Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/complex_objects.htm b/doc/salome/gui/GEOM/complex_objects.htm index b79982740..72c395e02 100755 --- a/doc/salome/gui/GEOM/complex_objects.htm +++ b/doc/salome/gui/GEOM/complex_objects.htm @@ -1,484 +1,489 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex( - 0., - 0., - 0.)
- -p2 = geompy.MakeVertex( - 100., 0., - 0.)
- -p3 = geompy.MakeVertex( - 100., 100., 0.)
- -p4 = geompy.MakeVertex( - 0., - 100., 0.)
- -p5 = geompy.MakeVertex( - 0., - 0., - 60.)
- -p6 = geompy.MakeVertex(-100., - 0., - 0.)
- -p7 = geompy.MakeVertex(-100.,-100., - 0.)
- -p8 = geompy.MakeVertex( - 0.,-100., - 0.)
- -- -
# create a vector from the given components
- -vector = geompy.MakeVectorDXDYDZ(50., - 50., 50.)
- -- -
#create vectors from two points
- -vector1_arc1 = geompy.MakeVector(p1, - p2)
- -vector2_arc1 = geompy.MakeVector(p1, - p4)
- -vector1_arc2 = geompy.MakeVector(p1, - p6)
- -vector2_arc2 = geompy.MakeVector(p1, - p8)
- -- -
# create arcs from three points
- -arc1 = geompy.MakeArc(p2, - p3, p4)
- -arc2 = geompy.MakeArc(p6, - p7, p8)
- -- -
# create wires
- -wire1 = geompy.MakeWire([vector1_arc1, - arc1, vector2_arc1])
- -wire2 = geompy.MakeWire([vector1_arc2, - arc2, vector2_arc2])
- -- -
# create faces
- -isPlanarWanted = 1
- -face1 = geompy.MakeFace(wire1, - isPlanarWanted)
- -face2 = geompy.MakeFace(wire2, - isPlanarWanted)
- -- -
# create prisms
- -prism1 = geompy.MakePrism(face2, - p1, p5)
- -prism2 = geompy.MakePrismVecH(face1, - vector, 50)
- -- -
# add objects in the study
- -id_face1 = - geompy.addToStudy(face1,"Face1")
- -id_face2 = - geompy.addToStudy(face2,"Face2")
- -id_prism1 = geompy.addToStudy(prism1,"Prism1")
- -id_prism2 = geompy.addToStudy(prism2,"Prism2")
- -- -
# display cylinders
- -gg.createAndDisplayGO(id_face1)
- -gg.setDisplayMode(id_face1,1)
- -gg.createAndDisplayGO(id_face2)
- -gg.setDisplayMode(id_face2,1)
- -gg.createAndDisplayGO(id_prism1)
- -gg.setDisplayMode(id_prism1,1)
- -gg.createAndDisplayGO(id_prism2)
- -gg.setDisplayMode(id_prism2,1) -
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex( - 10., 10., - 10.)
- -p2 = geompy.MakeVertex( - 15., 15., - 50.)
- -p3 = geompy.MakeVertex( - 40., 40., - 0.)
- -- -
#create vectors from two points
- -vector1 = geompy.MakeVector(p1, - p2)
- -vector2 = geompy.MakeVector(p1, - p3)
- -- -
# create a vector from the given components
- -vector3 = geompy.MakeVectorDXDYDZ(-20., - -20., 100.)
- -- -
# create a wire
- -wire = geompy.MakeWire([vector1, - vector2])
- -- -
# create a revolution
- -revolution = geompy.MakeRevolution(wire, - vector3, 2.3)
- -- -
# add objects in the study
- -id_vector3 = - geompy.addToStudy(vector3,"Axis")
- -id_wire = - geompy.addToStudy(wire,"Wire")
- -id_revolution = geompy.addToStudy(revolution,"Revolution")
- -- -
# display the vector, the wire and the revolution
- -gg.createAndDisplayGO(id_vector3)
- -gg.createAndDisplayGO(id_wire)
- -gg.createAndDisplayGO(id_revolution)
- -gg.setDisplayMode(id_revolution,1) -
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -mindeg = 2
- -maxdeg = 5
- -tol3d = - 0.0001
- -tol2d = - 0.0001
- -nbiter = 5
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex( - -30., -30., - 50.)
- -p2 = geompy.MakeVertex( - -60., -60., - 30.)
- -p3 = geompy.MakeVertex( - -30., -30., - 10.)
- -- -
# create an arc from three points
- -arc = geompy.MakeArc(p1, - p2, p3)
- -ShapeListCompound - = []
- -i = 0
- -while i <= 3 :
- -S - = geompy.MakeTranslation(arc, i * 50., 0., 0.)
- -ShapeListCompound.append(S)
- -i - = i + 1
- -compound = geompy.MakeCompound(ShapeListCompound)
- -- -
# create a filling
- -filling = geompy.MakeFilling(compound, - mindeg, maxdeg, tol3d, tol2d, nbiter)
- -- -
# add objects in the study
- -id_compound = geompy.addToStudy(compound,"Compound")
- -id_filling = geompy.addToStudy(filling,"Filling")
- -- -
# display the compound and the filling
- -gg.createAndDisplayGO(id_compound)
- -gg.createAndDisplayGO(id_filling)
- -gg.setDisplayMode(id_filling,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = - geompy.MakeVertex(0. , - 0. , 0. - )
- -px = - geompy.MakeVertex(100., 0. , - 0. )
- -py = - geompy.MakeVertex(0. , - 100., 0. )
- -pz = - geompy.MakeVertex(0. , - 0. , 100.)
- -pxyz = geompy.MakeVertex(100., - 100., 100.)
- -- -
# create a vector from two points
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc from three points
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create an edge
- -edge = geompy.MakeEdge(p0, - pxyz)
- -- -
# create a pipe
- -pipe = geompy.MakePipe(wire, - edge)
- -- -
# add objects in the study
- -id_wire = geompy.addToStudy(wire,"Wire")
- -id_edge = geompy.addToStudy(edge,"Edge")
- -id_pipe = geompy.addToStudy(pipe,"Pipe")
- -- -
# display the wire, the edge (path) and the pipe
- -gg.createAndDisplayGO(id_wire)
- -gg.createAndDisplayGO(id_edge)
- -gg.createAndDisplayGO(id_pipe)
- -gg.setDisplayMode(id_pipe,1) -
- - - - + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex( + 0., + 0., + 0.)
+ +p2 = geompy.MakeVertex( + 100., 0., + 0.)
+ +p3 = geompy.MakeVertex( + 100., 100., 0.)
+ +p4 = geompy.MakeVertex( + 0., + 100., 0.)
+ +p5 = geompy.MakeVertex( + 0., + 0., + 60.)
+ +p6 = geompy.MakeVertex(-100., + 0., + 0.)
+ +p7 = geompy.MakeVertex(-100.,-100., + 0.)
+ +p8 = geompy.MakeVertex( + 0.,-100., + 0.)
+ ++ +
# create a vector from the given components
+ +vector = geompy.MakeVectorDXDYDZ(50., + 50., 50.)
+ ++ +
#create vectors from two points
+ +vector1_arc1 = geompy.MakeVector(p1, + p2)
+ +vector2_arc1 = geompy.MakeVector(p1, + p4)
+ +vector1_arc2 = geompy.MakeVector(p1, + p6)
+ +vector2_arc2 = geompy.MakeVector(p1, + p8)
+ ++ +
# create arcs from three points
+ +arc1 = geompy.MakeArc(p2, + p3, p4)
+ +arc2 = geompy.MakeArc(p6, + p7, p8)
+ ++ +
# create wires
+ +wire1 = geompy.MakeWire([vector1_arc1, + arc1, vector2_arc1])
+ +wire2 = geompy.MakeWire([vector1_arc2, + arc2, vector2_arc2])
+ ++ +
# create faces
+ +isPlanarWanted = 1
+ +face1 = geompy.MakeFace(wire1, + isPlanarWanted)
+ +face2 = geompy.MakeFace(wire2, + isPlanarWanted)
+ ++ +
# create prisms
+ +prism1 = geompy.MakePrism(face2, + p1, p5)
+ +prism2 = geompy.MakePrismVecH(face1, + vector, 50)
+ ++ +
# add objects in the study
+ +id_face1 = + geompy.addToStudy(face1,"Face1")
+ +id_face2 = + geompy.addToStudy(face2,"Face2")
+ +id_prism1 = geompy.addToStudy(prism1,"Prism1")
+ +id_prism2 = geompy.addToStudy(prism2,"Prism2")
+ ++ +
# display cylinders
+ +gg.createAndDisplayGO(id_face1)
+ +gg.setDisplayMode(id_face1,1)
+ +gg.createAndDisplayGO(id_face2)
+ +gg.setDisplayMode(id_face2,1)
+ +gg.createAndDisplayGO(id_prism1)
+ +gg.setDisplayMode(id_prism1,1)
+ +gg.createAndDisplayGO(id_prism2)
+ +gg.setDisplayMode(id_prism2,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex( + 10., 10., + 10.)
+ +p2 = geompy.MakeVertex( + 15., 15., + 50.)
+ +p3 = geompy.MakeVertex( + 40., 40., + 0.)
+ ++ +
#create vectors from two points
+ +vector1 = geompy.MakeVector(p1, + p2)
+ +vector2 = geompy.MakeVector(p1, + p3)
+ ++ +
# create a vector from the given components
+ +vector3 = geompy.MakeVectorDXDYDZ(-20., + -20., 100.)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vector1, + vector2])
+ ++ +
# create a revolution
+ +revolution = geompy.MakeRevolution(wire, + vector3, 2.3)
+ ++ +
# add objects in the study
+ +id_vector3 = + geompy.addToStudy(vector3,"Axis")
+ +id_wire = + geompy.addToStudy(wire,"Wire")
+ +id_revolution = geompy.addToStudy(revolution,"Revolution")
+ ++ +
# display the vector, the wire and the revolution
+ +gg.createAndDisplayGO(id_vector3)
+ +gg.createAndDisplayGO(id_wire)
+ +gg.createAndDisplayGO(id_revolution)
+ +gg.setDisplayMode(id_revolution,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ +mindeg = 2
+ +maxdeg = 5
+ +tol3d = + 0.0001
+ +tol2d = + 0.0001
+ +nbiter = 5
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex( + -30., -30., + 50.)
+ +p2 = geompy.MakeVertex( + -60., -60., + 30.)
+ +p3 = geompy.MakeVertex( + -30., -30., + 10.)
+ ++ +
# create an arc from three points
+ +arc = geompy.MakeArc(p1, + p2, p3)
+ +ShapeListCompound + = []
+ +i = 0
+ +while i <= 3 :
+ +S + = geompy.MakeTranslation(arc, i * 50., 0., 0.)
+ +ShapeListCompound.append(S)
+ +i + = i + 1
+ +compound = geompy.MakeCompound(ShapeListCompound)
+ ++ +
# create a filling
+ +filling = geompy.MakeFilling(compound, + mindeg, maxdeg, tol3d, tol2d, nbiter)
+ ++ +
# add objects in the study
+ +id_compound = geompy.addToStudy(compound,"Compound")
+ +id_filling = geompy.addToStudy(filling,"Filling")
+ ++ +
# display the compound and the filling
+ +gg.createAndDisplayGO(id_compound)
+ +gg.createAndDisplayGO(id_filling)
+ +gg.setDisplayMode(id_filling,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create a vector from two points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc from three points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create an edge
+ +edge = geompy.MakeEdge(p0, + pxyz)
+ ++ +
# create a pipe
+ +pipe = geompy.MakePipe(wire, + edge)
+ ++ +
# add objects in the study
+ +id_wire = geompy.addToStudy(wire,"Wire")
+ +id_edge = geompy.addToStudy(edge,"Edge")
+ +id_pipe = geompy.addToStudy(pipe,"Pipe")
+ ++ +
# display the wire, the edge (path) and the pipe
+ +gg.createAndDisplayGO(id_wire)
+ +gg.createAndDisplayGO(id_edge)
+ +gg.createAndDisplayGO(id_pipe)
+ +gg.setDisplayMode(id_pipe,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/compound.htm b/doc/salome/gui/GEOM/compound.htm index 2649dacef..11465b4c7 100755 --- a/doc/salome/gui/GEOM/compound.htm +++ b/doc/salome/gui/GEOM/compound.htm @@ -1,133 +1,138 @@ - - - - - -To create - a Compound in the Main Menu select - New Entity - > Build - > Compound.
- -- -
You can create a compound from a list of shells. -
- -The - Result will be a GEOM_Object - (COMPOUND).
- -- -
TUI Command: - geompy.MakeCompound(ListOfShape)
- -Arguments: - Name + List of shapes.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- -
- -
- -
- - - - + + + + + +
To create + a Compound in the Main Menu select + New Entity - > Build - > Compound.
+ ++ +
You can create a compound from a list of shells. +
+ +The + Result will be a GEOM_Object + (COMPOUND).
+ ++ +
TUI Command: + geompy.MakeCompound(ListOfShape)
+ +Arguments: + Name + List of shapes.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/cone.htm b/doc/salome/gui/GEOM/cone.htm index 46b250bef..8e0fec793 100755 --- a/doc/salome/gui/GEOM/cone.htm +++ b/doc/salome/gui/GEOM/cone.htm @@ -1,169 +1,166 @@ - - - - - -
To create a Cone - in the Main Menu select New Entity - > Primitives - > Cone
- -- -
There are two algorithms for creation of a Cone. -
- -The - Result of each operation will be a - GEOM_Object (SOLID).
- -- -
Firstly, you can define a Cone - by the Base Point (the central - point of the cone base), the Axis, - the Height and the first and the - second Radiuses.
- -TUI Command: geompy.MakeCone(Point, - Axis, Radius1, Radius2)
- -Arguments: - Name + 1 vertex - + 1 vector (for direction) + 3 values (Radius of the base part, radius - of the upper part, height).
- -- -
Secondly, you can define a Cone - with the center at the origin of coordinates by its Height - and Radiuses. The Axis - of the Cone will be collinear - to the OZ axis of the coordinate system.
- -TUI Command: geompy.MakeConeR1R2H(Radius1, - Radius2, Height)
- -Arguments: - Name + 3 values - (Radius of the base part, radius of the upper part, height).
- -
- -
Note: If both radiuses are non-zero, - the Cone will be truncated. If - the radiuses are equal, a Cylinder - will be created instead.
- -- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Primitives.
- -- - - - + + + + + +
To create a Cone + in the Main Menu select New Entity - > Primitives - > Cone
+ ++ +
There are two algorithms for creation of a Cone. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Cone + by the Base Point (the central + point of the cone base), the Axis, + the Height and the first and the + second Radiuses.
+ +TUI Command: geompy.MakeCone(Point, + Axis, Radius1, Radius2)
+ +Arguments: + Name + 1 vertex + + 1 vector (for direction) + 3 values (Radius of the base part, radius + of the upper part, height).
+ ++ +
+ +
Secondly, you can define a Cone + with the center at the origin of coordinates by its Height + and Radiuses. The Axis + of the Cone will be collinear + to the OZ axis of the coordinate system.
+ +TUI Command: geompy.MakeConeR1R2H(Radius1, + Radius2, Height)
+ +Arguments: Name + + 3 values (Radius of the base part, radius of the upper part, height).
+ ++ +
Note: If both radiuses are non-zero, + the Cone will be truncated. If + the radiuses are equal, a Cylinder + will be created instead.
+ ++ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/cshdat_robohelp.htm b/doc/salome/gui/GEOM/cshdat_robohelp.htm index afb68b6ee..6ac8b7890 100755 --- a/doc/salome/gui/GEOM/cshdat_robohelp.htm +++ b/doc/salome/gui/GEOM/cshdat_robohelp.htm @@ -1,258 +1,258 @@ - - -
To create a Curve in the Main Menu select New - Entity - > Basic - > Curve
- -- -
There are three algorithms to create - a Curve in the 3D space. Each time you define it by - a list of Points through which the curve passes. The three Curve Construction menu choices correspond to three possible types - of curves: Polyline, Besier or B-spline (Interpolated).
- -The Result of - each operation will be a GEOM_Object (edge).
- -- -
TUI Commands: -
- -geompy.MakePolyline(ListOfShapes)
geompy.MakeBezier(ListOfShapes)
geompy.MakeInterpol(ListOfShapes)
ListOfShape is a list of points through which - the curve passes.
- -Arguments: - Name + at least 2 points which will serve as nodes on the curve.
- -- -
- -
Examples:
- -- -
Polyline - Bezier - B-Spline
- -
- -
Our TUI Scripts provide you with useful examples - of creation of Basic - Geometric Objects.
- -- -
- - - - + + + + + +
To create a Curve in the Main Menu select New + Entity - > Basic - > Curve
+ ++ +
There are three algorithms to create + a Curve in the 3D space. Each time you define it by + a list of Points through which the curve passes. The three Curve Construction menu choices correspond to three possible types + of curves: Polyline, Besier or B-spline (Interpolated).
+ +The Result of + each operation will be a GEOM_Object (edge).
+ ++ +
TUI Commands: +
+ +geompy.MakePolyline(ListOfShapes)
geompy.MakeBezier(ListOfShapes)
geompy.MakeInterpol(ListOfShapes)
ListOfShape is a list of points through which + the curve passes.
+ +Arguments: + Name + at least 2 points which will serve as nodes on the curve.
+ ++ +
+ +
Examples:
+ ++ +
Polyline + Bezier + B-Spline
+ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/cut.htm b/doc/salome/gui/GEOM/cut.htm index cc5d74ed0..ea377fa9f 100755 --- a/doc/salome/gui/GEOM/cut.htm +++ b/doc/salome/gui/GEOM/cut.htm @@ -1,138 +1,144 @@ - - - - - -
To produce - a Cut in the Main Menu select - Operations - > Boolean - > Cut
- -- -
This operation cuts a shape with another - one.
- -The - Result will be a GEOM_Object - (COMPOUND).
- -Arguments: - Name + 2 shapes.
- -- -
Dialog Box:
- -- -
- -
Example:
- -- -
Our TUI Scripts provide you with useful examples - of the use of Boolean Operations. -
- -- - - - + + + + + +
To produce + a Cut operation in the Main Menu + select Operations - > Boolean - > + Cut
+ ++ +
This operation cuts a shape with another + one.
+ +The + Result will be a GEOM_Object + (COMPOUND).
+ +Arguments: + Name + 2 shapes.
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/cylinder.htm b/doc/salome/gui/GEOM/cylinder.htm index 087d2d73d..d2b7695f4 100755 --- a/doc/salome/gui/GEOM/cylinder.htm +++ b/doc/salome/gui/GEOM/cylinder.htm @@ -1,160 +1,168 @@ - - - - - -
To create a Cylinder - in the Main Menu select New Entity - > Primitives - > Cylinder
- -- -
There are 2 algorithms for creation of a Cylinder. -
- -The - Result of each operation will be a - GEOM_Object (SOLID).
- -- -
Firstly, you can define a Cylinder - by the Base Point (the central - point of the cylinder base), the Vector - (the axis of the cylinder), and its dimensions: the Radius and the Height.
- -TUI Command: geompy.MakeCylinder(Point, - Axis, Radius, Height),
- -Arguments: - Name - + 1 vertex + 1 vector + 2 values (Dimensions: radius and height).
- -- -
Secondly, you can define a - Cylinder by the given radius - and the height at the - origin of coordinate system. The axis of the cylinder will be collinear - to the OZ axis of the coordinate system.
- -TUI Command: geompy.MakeCylinderRH(Radius, - Height)
- -Arguments: Name - + 2 values (Dimensions at origin: radius and height).
- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Primitives.
- -- - - - + + + + + +
To create a Cylinder + in the Main Menu select New Entity - > Primitives - > Cylinder
+ ++ +
There are 2 algorithms for creation of a Cylinder. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Cylinder + by the Base Point (the central + point of the cylinder base), the Vector + (the axis of the cylinder), and its dimensions: the Radius and the Height.
+ +TUI Command: geompy.MakeCylinder(Point, + Axis, Radius, Height),
+ +Arguments: + Name + + 1 vertex + 1 vector + 2 values (Dimensions: radius and height).
+ ++ +
Secondly, you can define a + Cylinder by the given radius + and the height at the + origin of coordinate system. The axis of the cylinder will be collinear + to the OZ axis of the coordinate system.
+ +TUI Command: geompy.MakeCylinderRH(Radius, + Height)
+ +Arguments: Name + 2 values + (Dimensions at origin: radius and height).
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/default.css b/doc/salome/gui/GEOM/default.css index de2e5d955..1f8d6d772 100755 --- a/doc/salome/gui/GEOM/default.css +++ b/doc/salome/gui/GEOM/default.css @@ -1,101 +1,101 @@ -BODY { - background-color:#ffffff; - font-family:"Times New Roman" , serif; } -H1 { - font-weight:bold; - font-size:24.0pt; } -LI.kadov-H1 { - font-weight:bold; - font-size:24.0pt; } -H2 { - font-weight:bold; - font-size:18.0pt; } -LI.kadov-H2 { - font-weight:bold; - font-size:18.0pt; } -H3 { - font-weight:bold; - font-size:14.0pt; } -LI.kadov-H3 { - font-weight:bold; - font-size:14.0pt; } -H4 { - font-weight:bold; - font-size:12.0pt; } -LI.kadov-H4 { - font-weight:bold; - font-size:12.0pt; } -H5 { - font-weight:bold; - font-size:10.0pt; } -LI.kadov-H5 { - font-weight:bold; - font-size:10.0pt; } -H6 { - font-weight:bold; - font-size:8.0pt; } -LI.kadov-H6 { - font-weight:bold; - font-size:8.0pt; } -P { - font-size:12.0pt; - margin-top:0pt; - margin-bottom:0pt; } -LI.kadov-P { - font-size:12.0pt; } -A.expandspot { - color:#008000; - cursor:hand; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -SPAN.expandtext { - font-style:italic; - font-weight:normal; - color:#ff0000; } -A.dropspot { - cursor:hand; - color:#008000; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -A.glossterm { - color:#800000; - cursor:hand; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -SPAN.glosstext { - font-style:italic; - font-weight:normal; - color:#0000ff; } -OL { - margin-top:0px; - margin-bottom:0px; } -UL { - margin-top:0px; - margin-bottom:0px; } -A:active { } -A:hover { - x-text-underline:Off; - text-decoration:none; } -A:link { - x-text-underline:Off; - text-decoration:none; } -A:visited { - x-text-underline:Off; - text-decoration:none; } -P.TODO { - font-weight:normal; - font-style:italic; - font-family:"Arial Black" , sans-serif; } -LI.kadov-P-CTODO { - font-weight:normal; - font-style:italic; - font-family:"Arial Black" , sans-serif; } +BODY { + background-color:#ffffff; + font-family:"Times New Roman" , serif; } +H1 { + font-weight:bold; + font-size:24.0pt; } +LI.kadov-H1 { + font-weight:bold; + font-size:24.0pt; } +H2 { + font-weight:bold; + font-size:18.0pt; } +LI.kadov-H2 { + font-weight:bold; + font-size:18.0pt; } +H3 { + font-weight:bold; + font-size:14.0pt; } +LI.kadov-H3 { + font-weight:bold; + font-size:14.0pt; } +H4 { + font-weight:bold; + font-size:12.0pt; } +LI.kadov-H4 { + font-weight:bold; + font-size:12.0pt; } +H5 { + font-weight:bold; + font-size:10.0pt; } +LI.kadov-H5 { + font-weight:bold; + font-size:10.0pt; } +H6 { + font-weight:bold; + font-size:8.0pt; } +LI.kadov-H6 { + font-weight:bold; + font-size:8.0pt; } +P { + font-size:12.0pt; + margin-top:0pt; + margin-bottom:0pt; } +LI.kadov-P { + font-size:12.0pt; } +A.expandspot { + color:#008000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.expandtext { + font-style:italic; + font-weight:normal; + color:#ff0000; } +A.dropspot { + cursor:hand; + color:#008000; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +A.glossterm { + color:#800000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.glosstext { + font-style:italic; + font-weight:normal; + color:#0000ff; } +OL { + margin-top:0px; + margin-bottom:0px; } +UL { + margin-top:0px; + margin-bottom:0px; } +A:active { } +A:hover { + x-text-underline:Off; + text-decoration:none; } +A:link { + x-text-underline:Off; + text-decoration:none; } +A:visited { + x-text-underline:Off; + text-decoration:none; } +P.TODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +LI.kadov-P-CTODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } diff --git a/doc/salome/gui/GEOM/default_ns.css b/doc/salome/gui/GEOM/default_ns.css index 3eeb3c496..46e8b0018 100755 --- a/doc/salome/gui/GEOM/default_ns.css +++ b/doc/salome/gui/GEOM/default_ns.css @@ -1,118 +1,118 @@ -BODY { - background-color:#ffffff; - font-family:"Times New Roman" , serif; } -H1 { - font-weight:bold; - font-size:24.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H1 { - font-weight:bold; - font-size:24.0pt; } -H2 { - font-weight:bold; - font-size:18.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H2 { - font-weight:bold; - font-size:18.0pt; } -H3 { - font-weight:bold; - font-size:14.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H3 { - font-weight:bold; - font-size:14.0pt; } -H4 { - font-weight:bold; - font-size:12.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H4 { - font-weight:bold; - font-size:12.0pt; } -H5 { - font-weight:bold; - font-size:10.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H5 { - font-weight:bold; - font-size:10.0pt; } -H6 { - font-weight:bold; - font-size:8.0pt; - font-family:"Times New Roman" , serif; } -LI.kadov-H6 { - font-weight:bold; - font-size:8.0pt; } -P { - font-size:12.0pt; - margin-top:1pt; - margin-bottom:1pt; - font-family:"Times New Roman" , serif; } -LI.kadov-P { - font-size:12.0pt; } -A.expandspot { - color:#008000; - cursor:hand; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -SPAN.expandtext { - font-style:italic; - font-weight:normal; - color:#ff0000; } -A.dropspot { - cursor:hand; - color:#008000; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -A.glossterm { - color:#800000; - cursor:hand; - font-style:italic; - x-text-underline:off; - x-text-overline:off; - x-text-line-through:off; - text-decoration:none none none; } -SPAN.glosstext { - font-style:italic; - font-weight:normal; - color:#0000ff; } -OL { - margin-top:0px; - margin-bottom:0px; - font-family:"Times New Roman" , serif; } -UL { - margin-top:0px; - margin-bottom:0px; - font-family:"Times New Roman" , serif; } -A:active { } -A:hover { - x-text-underline:Off; - text-decoration:none; } -A:link { - x-text-underline:Off; - text-decoration:none; } -A:visited { - x-text-underline:Off; - text-decoration:none; } -P.TODO { - font-weight:normal; - font-style:italic; - font-family:"Arial Black" , sans-serif; } -LI.kadov-P-CTODO { - font-weight:normal; - font-style:italic; - font-family:"Arial Black" , sans-serif; } -ol ol { - margin-top:1px; } -ol ul { - margin-top:1px; } -ul ul { - margin-top:1px; } -ul ol { - margin-top:1px; } +BODY { + background-color:#ffffff; + font-family:"Times New Roman" , serif; } +H1 { + font-weight:bold; + font-size:24.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H1 { + font-weight:bold; + font-size:24.0pt; } +H2 { + font-weight:bold; + font-size:18.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H2 { + font-weight:bold; + font-size:18.0pt; } +H3 { + font-weight:bold; + font-size:14.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H3 { + font-weight:bold; + font-size:14.0pt; } +H4 { + font-weight:bold; + font-size:12.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H4 { + font-weight:bold; + font-size:12.0pt; } +H5 { + font-weight:bold; + font-size:10.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H5 { + font-weight:bold; + font-size:10.0pt; } +H6 { + font-weight:bold; + font-size:8.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H6 { + font-weight:bold; + font-size:8.0pt; } +P { + font-size:12.0pt; + margin-top:1pt; + margin-bottom:1pt; + font-family:"Times New Roman" , serif; } +LI.kadov-P { + font-size:12.0pt; } +A.expandspot { + color:#008000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.expandtext { + font-style:italic; + font-weight:normal; + color:#ff0000; } +A.dropspot { + cursor:hand; + color:#008000; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +A.glossterm { + color:#800000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.glosstext { + font-style:italic; + font-weight:normal; + color:#0000ff; } +OL { + margin-top:0px; + margin-bottom:0px; + font-family:"Times New Roman" , serif; } +UL { + margin-top:0px; + margin-bottom:0px; + font-family:"Times New Roman" , serif; } +A:active { } +A:hover { + x-text-underline:Off; + text-decoration:none; } +A:link { + x-text-underline:Off; + text-decoration:none; } +A:visited { + x-text-underline:Off; + text-decoration:none; } +P.TODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +LI.kadov-P-CTODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +ol ol { + margin-top:1px; } +ol ul { + margin-top:1px; } +ul ul { + margin-top:1px; } +ul ol { + margin-top:1px; } diff --git a/doc/salome/gui/GEOM/edge.htm b/doc/salome/gui/GEOM/edge.htm index 184e5ba47..75696858f 100755 --- a/doc/salome/gui/GEOM/edge.htm +++ b/doc/salome/gui/GEOM/edge.htm @@ -1,130 +1,135 @@ - - - - - -
To - create an Edge in the Main - Menu select New Entity - > - Build - > Edge
- -- -
You can create an Edge - from two points (Point1 and Point2), being the first and the last - vertices of the edge.
- -The - Result will - be a GEOM_Object (EDGE).
- -TUI Command: - geompy.MakeEdge(Vertex1, Vertex2), - where Vertex1 and Vertex2 are correspondingly the first and the last vertex - of the edge.
- -Arguments: - Name + 2 vertices.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- - - - + + + + + +
To + create an Edge in the Main + Menu select New Entity - > + Build - > Edge
+ ++ +
You can create an Edge + from two points (Point1 and Point2), being the first and the last + vertices of the edge.
+ +The + Result will + be a GEOM_Object (EDGE).
+ +TUI Command: + geompy.MakeEdge(Vertex1, Vertex2), + where Vertex1 and Vertex2 are correspondingly the first and the last vertex + of the edge.
+ +Arguments: + Name + 2 vertices.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/ehelp.xml b/doc/salome/gui/GEOM/ehelp.xml index 190aa2369..5fbcc543d 100755 --- a/doc/salome/gui/GEOM/ehelp.xml +++ b/doc/salome/gui/GEOM/ehelp.xml @@ -1,10 +1,10 @@ - - -
To create an Ellipse in the Main - Menu select New Entity - > - Basic - > Ellipse
- -- -
You - can define an Ellipse by its - Center Point, a Vector giving its normal, and its Major & - Minor Radiuses.
- -The - Result of the operation will be a - GEOM_Object (edge).
- -- -
TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, - RadiusMinor),
- -Arguments: - Name + 1 vertex (for the center) + 1 edge (for the direction) + 1 X Radius - + 1 Y Radius.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of creation of Basic - Geometric Objects.
- -- - - - + + + + + +
To create an Ellipse in the Main + Menu select New Entity - > + Basic - > Ellipse
+ ++ +
You + can define an Ellipse by its + Center Point, a Vector giving its normal, and its Major & + Minor Radiuses.
+ +The + Result of the operation will be a + GEOM_Object (edge).
+ ++ +
TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, + RadiusMinor),
+ +Arguments: + Name + 1 vertex (for the center) + 1 edge (for the direction) + 1 X Radius + + 1 Y Radius.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/explode.htm b/doc/salome/gui/GEOM/explode.htm index 46e1d3560..7e21453c5 100755 --- a/doc/salome/gui/GEOM/explode.htm +++ b/doc/salome/gui/GEOM/explode.htm @@ -1,180 +1,185 @@ - - - - - -
To Explode - an object into subshapes, in the main menu select New - Entity > Explode.
- -- -
To create a list of subshapes - (vertices, edges, wires etc.) of the given shape using the Explode - operation, you need to define the Main - Object, which will be exploded and - the Type of Subshapes you wish to obtain from it.
- -The - Result of the operation will be a List - of GEOM_Objects (edges, faces, solids or compsolids).
- -- -
Using - TUI Commands you can perform this operation - in a variety of ways:
- -geompy.SubShapeAll(Shape, - Type) explodes a Shape on subshapes of a given Type and returns - a List of sub-shapes.
geompy.SubShapeAllIDs(Shape, - Type) explodes - a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes. -
geompy.SubShapeAllSorted(Shape, - Type) explodes - a shape on subshapes of a given type and sorts - them by coordinates of their gravity centers, returning a - list of sub-shapes.
geompy.SubShapeAllSortedIDs(Shape, - Type) explodes - a shape on subshapes of a given type and - sorts them by coordinates of their gravity centers, returning - a List of IDs of sub-shapes.
geompy.SubShape(Shape, Type, ListOfInd) - allows - to obtain a compound of sub-shapes of the - Shape, selected - by they indices in a list of all sub-shapes of the given Type. Each index - is in the range [1, Nb_Sub-Shapes_Of_Given_Type].
geompy.SubShapeSorted(Shape, - Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape, - selected by they indices in sorted list of all sub-shapes of the given - Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type]
- -
Arguments: - 1 SHAPE + 1 type of SubShape.
- -- -
- -
- -
- - - - + + + + + +
To Explode + an object into subshapes, in the main menu select New + Entity > Explode.
+ ++ +
To create a list of subshapes + (vertices, edges, wires etc.) of the given shape using the Explode + operation, you need to define the Main + Object, which will be exploded and + the Type of Subshapes you wish to obtain from it.
+ +The + Result of the operation will be a List + of GEOM_Objects (edges, faces, solids or compsolids).
+ ++ +
Using + TUI Commands you can perform this operation + in a variety of ways:
+ +geompy.SubShapeAll(Shape, + Type) explodes a Shape on subshapes of a given Type and returns + a List of sub-shapes.
geompy.SubShapeAllIDs(Shape, + Type) explodes + a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes. +
geompy.SubShapeAllSorted(Shape, + Type) explodes + a shape on subshapes of a given type and sorts + them by coordinates of their gravity centers, returning a + list of sub-shapes.
geompy.SubShapeAllSortedIDs(Shape, + Type) explodes + a shape on subshapes of a given type and + sorts them by coordinates of their gravity centers, returning + a List of IDs of sub-shapes.
geompy.SubShape(Shape, Type, ListOfInd) + allows + to obtain a compound of sub-shapes of the + Shape, selected + by they indices in a list of all sub-shapes of the given Type. Each index + is in the range [1, Nb_Sub-Shapes_Of_Given_Type].
geompy.SubShapeSorted(Shape, + Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape, + selected by they indices in sorted list of all sub-shapes of the given + Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type]
+ +
Arguments: + 1 SHAPE + 1 type of SubShape.
+ ++ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/explode_on_blocks.htm b/doc/salome/gui/GEOM/explode_on_blocks.htm index d03efcc16..e30f3e802 100755 --- a/doc/salome/gui/GEOM/explode_on_blocks.htm +++ b/doc/salome/gui/GEOM/explode_on_blocks.htm @@ -1,163 +1,168 @@ - - - - - -
To produce - an Explode on Blocks operation - in the Main Menu select Operations - - > Blocks - > Explode on Blocks.
- -- -
This operation - returns blocks of the given compound. The user may define the type of - blocks to be extracted by setting the minimum and maximum number of faces - in the target block. By checking the corresponding box the user may also - interactively choose the blocks from a compound .
- -- -
The - Result will be a GEOM_Object.
- -- -
TUI Command: - geompy.MakeBlockExplode(Compound, - MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded - into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal - and the - maximal number of faces of the resulting blocks.
- -Arguments: 1 compound + 2 integers (min. and max. number - of faces in the block to be extracted).
- -- -
- -
- -
Example:
- -- -
- -
- -
Our TUI - Scripts provide you with useful examples - of the use of Blocks - Operations.
- -- - - - + + + + + +
To produce + an Explode on Blocks operation + in the Main Menu select Operations - + > Blocks - > Explode on Blocks.
+ ++ +
This operation + returns blocks of the given compound. The user may define the type of + blocks to be extracted by setting the minimum and maximum number of faces + in the target block. By checking the corresponding box the user may also + interactively choose the blocks from a compound .
+ ++ +
The + Result will be a GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeBlockExplode(Compound, + MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded + into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal + and the + maximal number of faces of the resulting blocks.
+ +Arguments: 1 compound + 2 integers (min. and max. number + of faces in the block to be extracted).
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
+ +
Our TUI + Scripts provide you with useful examples + of the use of Blocks + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/extrusion.htm b/doc/salome/gui/GEOM/extrusion.htm index c52507839..5c0812908 100755 --- a/doc/salome/gui/GEOM/extrusion.htm +++ b/doc/salome/gui/GEOM/extrusion.htm @@ -1,168 +1,161 @@ - - - - - -
To generate an Extrusion on an object in the Main Menu select New - Entity - > Generation - - > Extrusion
- -- -
To create an Extrusion (Prism) you should define - the Base Shape (a basis of the - extrusion), the Vector - (a normal of the extrusion) and the Height - of extrusion.
- -The - Result of the operation will be a - GEOM_Object (edge, face, solid or compsolid).
- -TUI - Command : geompy.MakePrismVecH(Base, - Vector, Height)
- -Arguments: - Name + 1 shape (vertex, edge, wire, face or shell) serving as base object - + 1 vector (for direction of the extrusion) + 1 value (dimension).
- -- -
- -
NB! The - is another way to create an Extrusion, which - is currently accessible only via TUI commands.
- -You - can define the Extrusion by - the Base Shape and the Start and End Point - of the Vector (in - this way you don't need to create it in advance).
- -TUI - Command: geompy.MakePrism(Base, - Point1, Point2)
- -- -
- -
Examples:
- -- -
Base Shape Prisms
- -
- -
Our TUI Scripts - provide you with useful examples of creation of Complex - Geometric Objects.
- -- - - - + + + + + +
To generate an Extrusion on an object in the Main Menu select New + Entity - > Generation - + > Extrusion
+ ++ +
To create an Extrusion (Prism) you should define + the Base Shape (a basis of the + extrusion), the Vector + (a direction of the extrusion) and the Height + of extrusion.
+ +The + Result of the operation will be a + GEOM_Object (edge, face, solid or compsolid).
+ +TUI + Command : geompy.MakePrismVecH(Base, + Vector, Height)
+ +Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction of the extrusion) + 1 value (dimension).
+ ++ +
+ +
NB! The + is another way to create an Extrusion, which + is currently accessible only via TUI commands.
+ +You + can define the Extrusion by + the Base Shape and the Start and End Point + of the Vector (in + this way you don't need to create it in advance).
+ +TUI + Command: geompy.MakePrism(Base, + Point1, Point2)
+ ++ +
+ +
Examples:
+ ++ +
Base Shape Prisms
+ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Complex + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/face.htm b/doc/salome/gui/GEOM/face.htm index fea622451..a0fdccf80 100755 --- a/doc/salome/gui/GEOM/face.htm +++ b/doc/salome/gui/GEOM/face.htm @@ -1,150 +1,155 @@ - - - - - -
To create - a Face in the Main Menu select - New Entity - > Build - > Face
- -- -
To - create a Face - you need to select a wire, whose elements will be connected so that the - surface of the resulting object was minimal. Check Try - to create a planar face to create - a planar face or nothing if it is impossible.
- -The - Result will be a GEOM_Object - (FACE).
- -- -
TUI Command: - geompy.MakeFace(Wire, isPlanarWanted)
- -Arguments: - Name + 1 wire.
- -- -
- -
There are some advanced possibilities accessible - only via TUI commands.
- -- -
geompy.MakeFaceWires(Wires, - isPlanarWanted) - Creates a face on the given wires set. The argument - is not a single wire, but a list of wires.
- -geompy.MakeFaces(Wires, - isPlanarWanted) is a shortcut to MakeFaceWires(). -
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- - - - + + + + + +
To create + a Face in the Main Menu select + New Entity - > Build - > Face
+ ++ +
To + create a Face + you need to select a wire, whose elements will be connected so that the + surface of the resulting object was minimal. Check Try + to create a planar face to create + a planar face or nothing if it is impossible.
+ +The + Result will be a GEOM_Object + (FACE).
+ ++ +
TUI Command: + geompy.MakeFace(Wire, isPlanarWanted)
+ +Arguments: + Name + 1 wire.
+ ++ +
+ +
There are some advanced possibilities accessible + only via TUI commands.
+ ++ +
geompy.MakeFaceWires(Wires, + isPlanarWanted) - Creates a face on the given wires set. The argument + is not a single wire, but a list of wires.
+ +geompy.MakeFaces(Wires, + isPlanarWanted) is a shortcut to MakeFaceWires(). +
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/fillet.htm b/doc/salome/gui/GEOM/fillet.htm index cfcad978c..83ab6e5d6 100755 --- a/doc/salome/gui/GEOM/fillet.htm +++ b/doc/salome/gui/GEOM/fillet.htm @@ -1,179 +1,182 @@ - - - - - -
To produce - a Fillet in the Main Menu select - Operations - > Transformation - > - Fillet
- -- -
This operation creates - fillets on the edges of a shape.
- -The - Result will be a GEOM_Object.
- -- -
To create fillets on all edges of the given - shape, you need to define the Main Object - to create a fillet on and the Radius - of the Fillet.
- -TUI Command: - geompy.MakeFilletAll(Shape, R)
- -Arguments: Name + 1 shape + 1 value - (fillet radius).
- -- -
- -
To create fillets on - the specified edges or faces of the given shape, you - need to define the Main Object - to create a fillet on, select the necessary edges or faces in the object - browser or in the OCC Viewer and define the Radius - of the Fillet.
- -TUI - Command: geompy.MakeFillet(Shape, R, ShapeType, ListShapes) -
- -Arguments: Name + 1 shape + 1 Selection - of edges (or faces) + 1 value (Fillet radius).
- -- -
- -
Example:
- -- -
Fillet on all Fillet - on an edge Fillet - on a Face
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Fillet in the Main Menu select + Operations - > Transformation - > + Fillet
+ ++ +
This operation creates + fillets on the edges of a shape.
+ +The + Result will be a GEOM_Object.
+ ++ +
To create fillets on all edges of the given + shape, you need to define the Main Object + to create a fillet on and the Radius + of the Fillet.
+ +TUI Command: + geompy.MakeFilletAll(Shape, R)
+ +Arguments: Name + 1 shape + 1 value + (fillet radius).
+ ++ +
+ +
To create fillets on the specified edges or + faces of the given shape, you + need to define the Main Object + to create a fillet on, select the necessary edges or faces in the OCC + Viewer and define the Radius + of the Fillet.
+ +TUI + Command: geompy.MakeFillet(Shape, R, ShapeType, ListShapes) +
+ +Arguments: Name + 1 shape + 1 Selection + of edges (or faces) + 1 value (Fillet radius).
+ ++ +
+ +
Example:
+ ++ +
Fillet on all Fillet + on an edge Fillet + on a Face
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/filling.htm b/doc/salome/gui/GEOM/filling.htm index 463608b82..a9eea44fd 100755 --- a/doc/salome/gui/GEOM/filling.htm +++ b/doc/salome/gui/GEOM/filling.htm @@ -1,152 +1,145 @@ - - - - - -
To generate - a Filling in the Main - Menu select New Entity - > - Generation - - > Filling
- -- -
To create a curving face using several curves - you need to define the Curves, - which will be the components of your face, Minimum - and Maximum Degree, Tolerance - for 2D and for 3D - and - the Number of Iterations.
- -The - Result of the operation will be a - GEOM_Object (face).
- -- -
TUI Command: - geompy.MakeFilling(Shape, MinDegree, - MaxDegree, Tol2D, Tol3D, NbIter),
- -Arguments: - Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number - of iterations, 2D tolerance, 3D tolerance).
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Complex Geometric - Objects.
- -- - - - + + + + + +
To generate + a Filling in the Main + Menu select New Entity - > + Generation - + > Filling
+ ++ +
To create a curving face using several curves + you need to define the Curves, + which will be the components of your face, Minimum + and Maximum Degree, Tolerance + for 2D and for 3D + and + the Number of Iterations.
+ +The + Result of the operation will be a + GEOM_Object (face).
+ ++ +
TUI Command: + geompy.MakeFilling(Shape, MinDegree, + MaxDegree, Tol2D, Tol3D, NbIter),
+ +Arguments: + Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number + of iterations, 2D tolerance, 3D tolerance).
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Complex Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/fuse.htm b/doc/salome/gui/GEOM/fuse.htm index ede4d6dd2..f5895cac7 100755 --- a/doc/salome/gui/GEOM/fuse.htm +++ b/doc/salome/gui/GEOM/fuse.htm @@ -1,146 +1,152 @@ - - - - - -
To produce - a Fuse in the Main Menu select - Operations - > Boolean - > Fuse
- -- -
This operation creates a shape from two - shapes.
- -- -
The Result - will be a GEOM_Object (COMPOUND).
- -Arguments: - Name + 2 shapes.
- -TUI - Command: geompy.MakeFuse(s1, - s2)
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Boolean - Operations.
- -- - - - + + + + + +
To produce + a Fuse operation in the Main Menu + select Operations - > Boolean - > + Fuse
+ ++ +
This operation creates a shape from two + shapes.
+ ++ +
The Result + will be a GEOM_Object (COMPOUND).
+ +Arguments: + Name + 2 shapes.
+ +TUI + Command: geompy.MakeFuse(s1, + s2)
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Boolean + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/geom.htm b/doc/salome/gui/GEOM/geom.htm deleted file mode 100755 index 46797c73d..000000000 --- a/doc/salome/gui/GEOM/geom.htm +++ /dev/null @@ -1,139 +0,0 @@ - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = - geompy.MakeVertex(0. , - 0. , 0. - )
- -pxyz = geompy.MakeVertex(100., - 100., 100.)
- -- -
# create an edge
- -edge = geompy.MakeEdge(p0, - pxyz)
- -- -
# add object in the study
- -id_edge = geompy.addToStudy(edge,"Edge")
- -- -
# display an edge
- -gg.createAndDisplayGO(id_edge) -
- -- -
import - geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -px = - geompy.MakeVertex(100., 0. , - 0. )
- -py = - geompy.MakeVertex(0. , - 100., 0. )
- -pz = - geompy.MakeVertex(0. , - 0. , 100.)
- -- -
# create a vector from - two points
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc from - three points
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# add an object in the - study
- -id_wire = geompy.addToStudy(wire,"Wire")
- -- -
# display the wire
- -gg.createAndDisplayGO(id_wire) -
- -- -
- -
import - geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = - geompy.MakeVertex(0. , - 0. , 0. - )
- -px = - geompy.MakeVertex(100., 0. , - 0. )
- -py = - geompy.MakeVertex(0. , - 100., 0. )
- -pz = - geompy.MakeVertex(0. , - 0. , 100.)
- -pxyz = geompy.MakeVertex(100., - 100., 100.)
- -- -
# create a vector from - two points
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc from - three points
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create sketchers
- -sketcher1 = geompy.MakeSketcher("Sketcher:F - -100 -100:TT 250 -100:R 0:C 100 150:R 0:L 300:WW",
- -[100,0,0, - 1,1,1, -1,1,0])
- -sketcher2 = geompy.MakeSketcher("Sketcher:F - 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
- -sketcher3 = geompy.MakeSketcher("Sketcher:F - 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
- -isPlanarFace = 1
- -- -
# create a face from - the wire
- -face1 = geompy.MakeFace(wire, - isPlanarFace)
- -- -
# create faces from two - wires
- -face2 = geompy.MakeFaceWires([wire, - sketcher1],isPlanarFace)
- -face3 = geompy.MakeFaces([sketcher2, - sketcher3],isPlanarFace)
- -- -
# add objects in the - study
- -id_face1 = geompy.addToStudy(face1,"Face1")
- -id_face2 = geompy.addToStudy(face2,"Face2")
- -id_face3 = geompy.addToStudy(face3,"Face3")
- -- -
# display the faces
- -gg.createAndDisplayGO(id_face1)
- -gg.setDisplayMode(id_face1,1)
- -gg.setTransparency(id_face1,0.2)
- -gg.createAndDisplayGO(id_face2)
- -gg.setDisplayMode(id_face2,1)
- -gg.setTransparency(id_face2,0.2)
- -gg.createAndDisplayGO(id_face3)
- -gg.setDisplayMode(id_face3,1)
- -gg.setTransparency(id_face3,0.2) -
- -- -
import - geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
#create vertices
- -p0 = - geompy.MakeVertex( 0., 0., - 0.)
- -pxyz = geompy.MakeVertex( - 5., 5., - 40.)
- -- -
# create sketchers
- -sketcher1 = geompy.MakeSketcher("Sketcher:F - 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
- -sketcher2 = geompy.MakeSketcher("Sketcher:F - 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
- -isPlanarFace = 1
- -- -
# create a face from - two wires
- -face = geompy.MakeFaces([sketcher1, - sketcher2],isPlanarFace)
- -- -
# create a prism
- -prism = geompy.MakePrism(face, - p0, pxyz)
- -- -
# explode the prism into - faces
- -prism_faces = geompy.SubShapeAllSorted(prism, - geompy.ShapeType["FACE"])
- -- -
# create a shell from - a set of faces
- -shell = geompy.MakeShell([prism_faces[0], - prism_faces[2], prism_faces[3],
- -prism_faces[7], - prism_faces[9]])
- -- -
# add objects in the - study
- -id_shell = geompy.addToStudy(shell,"Shell")
- -- -
# display the shell
- -gg.createAndDisplayGO(id_shell)
- -gg.setDisplayMode(id_shell,1) -
- -- -
import - geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
#create vertices
- -p0 = geompy.MakeVertex( - 0., 0., - 0.)
- -pz = geompy.MakeVertex( - 0., 0., - 40.)
- -- -
# create sketchers
- -sketcher = geompy.MakeSketcher("Sketcher:F - -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
- -- -
# create faces from two - wires
- -face = geompy.MakeFace(sketcher,1)
- -- -
# create a prism
- -prism = geompy.MakePrism(face, - p0, pz)
- -- -
# explode the prism into - faces
- -prism_faces = geompy.SubShapeAllSorted(prism, - geompy.ShapeType["FACE"])
- -- -
# create a shell from - a set of faces
- -shell = geompy.MakeShell([prism_faces[0], - prism_faces[1],
- -prism_faces[3], - prism_faces[4],
- -prism_faces[5], - prism_faces[2]])
- -- -
# create a solid, bounded - by the given shells
- -solid = geompy.MakeSolid([shell])
- -- -
# add objects in the - study
- -id_solid = geompy.addToStudy(solid,"Solid")
- -- -
# display the solid
- -gg.createAndDisplayGO(id_solid)
- -gg.setDisplayMode(id_solid,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
#create vertices
- -p0 = geompy.MakeVertex( - 0., 0., - 0.)
- -pz = geompy.MakeVertex( - 0., 0., - 40.)
- -- -
# create sketchers
- -sketcher = geompy.MakeSketcher("Sketcher:F - -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
- -- -
# create faces from two - wires
- -face = geompy.MakeFace(sketcher,1)
- -- -
# create a prism
- -prism = geompy.MakePrism(face, - p0, pz)
- -- -
# explode the prism into - faces
- -prism_faces = geompy.SubShapeAllSorted(prism, - geompy.ShapeType["FACE"])
- -- -
# create a shell from - a set of faces
- -shell = geompy.MakeShell([prism_faces[0], - prism_faces[1],
- -prism_faces[3], - prism_faces[4],
- -prism_faces[5], - prism_faces[2]])
- -- -
# create a solid, bounded - by the given shells
- -solid = geompy.MakeSolid([shell])
- -- -
# add objects in the - study
- -id_solid = geompy.addToStudy(solid,"Solid")
- -- -
# display the solid
- -gg.createAndDisplayGO(id_solid)
- -gg.setDisplayMode(id_solid,1) -
- - - - + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create an edge
+ +edge = geompy.MakeEdge(p0, + pxyz)
+ ++ +
# add object in the study
+ +id_edge = geompy.addToStudy(edge,"Edge")
+ ++ +
# display an edge
+ +gg.createAndDisplayGO(id_edge) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ ++ +
# create a vector from + two points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc from + three points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# add an object in the + study
+ +id_wire = geompy.addToStudy(wire,"Wire")
+ ++ +
# display the wire
+ +gg.createAndDisplayGO(id_wire) +
+ ++ +
+ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = + geompy.MakeVertex(0. , + 0. , 0. + )
+ +px = + geompy.MakeVertex(100., 0. , + 0. )
+ +py = + geompy.MakeVertex(0. , + 100., 0. )
+ +pz = + geompy.MakeVertex(0. , + 0. , 100.)
+ +pxyz = geompy.MakeVertex(100., + 100., 100.)
+ ++ +
# create a vector from + two points
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc from + three points
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create sketchers
+ +sketcher1 = geompy.MakeSketcher("Sketcher:F + -100 -100:TT 250 -100:R 0:C 100 150:R 0:L 300:WW",
+ +[100,0,0, + 1,1,1, -1,1,0])
+ +sketcher2 = geompy.MakeSketcher("Sketcher:F + 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
+ +sketcher3 = geompy.MakeSketcher("Sketcher:F + 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
+ +isPlanarFace = 1
+ ++ +
# create a face from + the wire
+ +face1 = geompy.MakeFace(wire, + isPlanarFace)
+ ++ +
# create faces from two + wires
+ +face2 = geompy.MakeFaceWires([wire, + sketcher1],isPlanarFace)
+ +face3 = geompy.MakeFaces([sketcher2, + sketcher3],isPlanarFace)
+ ++ +
# add objects in the + study
+ +id_face1 = geompy.addToStudy(face1,"Face1")
+ +id_face2 = geompy.addToStudy(face2,"Face2")
+ +id_face3 = geompy.addToStudy(face3,"Face3")
+ ++ +
# display the faces
+ +gg.createAndDisplayGO(id_face1)
+ +gg.setDisplayMode(id_face1,1)
+ +gg.setTransparency(id_face1,0.2)
+ +gg.createAndDisplayGO(id_face2)
+ +gg.setDisplayMode(id_face2,1)
+ +gg.setTransparency(id_face2,0.2)
+ +gg.createAndDisplayGO(id_face3)
+ +gg.setDisplayMode(id_face3,1)
+ +gg.setTransparency(id_face3,0.2) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = + geompy.MakeVertex( 0., 0., + 0.)
+ +pxyz = geompy.MakeVertex( + 5., 5., + 40.)
+ ++ +
# create sketchers
+ +sketcher1 = geompy.MakeSketcher("Sketcher:F + 0 0:TT 70 0:TT 70 70:TT 0 70:WW")
+ +sketcher2 = geompy.MakeSketcher("Sketcher:F + 20 20:TT 50 20:TT 50 50:TT 20 50:WW")
+ +isPlanarFace = 1
+ ++ +
# create a face from + two wires
+ +face = geompy.MakeFaces([sketcher1, + sketcher2],isPlanarFace)
+ ++ +
# create a prism
+ +prism = geompy.MakePrism(face, + p0, pxyz)
+ ++ +
# explode the prism into + faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create a shell from + a set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[2], prism_faces[3],
+ +prism_faces[7], + prism_faces[9]])
+ ++ +
# add objects in the + study
+ +id_shell = geompy.addToStudy(shell,"Shell")
+ ++ +
# display the shell
+ +gg.createAndDisplayGO(id_shell)
+ +gg.setDisplayMode(id_shell,1) +
+ ++ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = geompy.MakeVertex( + 0., 0., + 0.)
+ +pz = geompy.MakeVertex( + 0., 0., + 40.)
+ ++ +
# create sketchers
+ +sketcher = geompy.MakeSketcher("Sketcher:F + -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
+ ++ +
# create faces from two + wires
+ +face = geompy.MakeFace(sketcher,1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrism(face, + p0, pz)
+ ++ +
# explode the prism into + faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create a shell from + a set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[1],
+ +prism_faces[3], + prism_faces[4],
+ +prism_faces[5], + prism_faces[2]])
+ ++ +
# create a solid, bounded + by the given shells
+ +solid = geompy.MakeSolid([shell])
+ ++ +
# add objects in the + study
+ +id_solid = geompy.addToStudy(solid,"Solid")
+ ++ +
# display the solid
+ +gg.createAndDisplayGO(id_solid)
+ +gg.setDisplayMode(id_solid,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
#create vertices
+ +p0 = geompy.MakeVertex( + 0., 0., + 0.)
+ +pz = geompy.MakeVertex( + 0., 0., + 40.)
+ ++ +
# create sketchers
+ +sketcher = geompy.MakeSketcher("Sketcher:F + -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")
+ ++ +
# create faces from two + wires
+ +face = geompy.MakeFace(sketcher,1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrism(face, + p0, pz)
+ ++ +
# explode the prism into + faces
+ +prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])
+ ++ +
# create a shell from + a set of faces
+ +shell = geompy.MakeShell([prism_faces[0], + prism_faces[1],
+ +prism_faces[3], + prism_faces[4],
+ +prism_faces[5], + prism_faces[2]])
+ ++ +
# create a solid, bounded + by the given shells
+ +solid = geompy.MakeSolid([shell])
+ ++ +
# add objects in the + study
+ +id_solid = geompy.addToStudy(solid,"Solid")
+ ++ +
# display the solid
+ +gg.createAndDisplayGO(id_solid)
+ +gg.setDisplayMode(id_solid,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/geometry.htm b/doc/salome/gui/GEOM/geometry.htm index 3e2e4ceaf..7a68cf459 100755 --- a/doc/salome/gui/GEOM/geometry.htm +++ b/doc/salome/gui/GEOM/geometry.htm @@ -1,144 +1,144 @@ - - - - - -Geometry module
- of SALOME is destined for:
- -
Import and export of geometrical models in IGES, - BREP and STEP formats.
Construction and optimization of geometrical models - using a wide range of CAD - functions:
- -
-
|
-
- |
- - - - + + + + + +
Geometry module
+ of SALOME is destined for:
+ +
Import and export of geometrical models in IGES, + BREP and STEP formats.
Construction and optimization of geometrical models + using a wide range of CAD + functions:
+ +
+
|
+
+ |
+ + + + diff --git a/doc/salome/gui/GEOM/glue_faces.htm b/doc/salome/gui/GEOM/glue_faces.htm index 3b470af55..9cdc1db72 100755 --- a/doc/salome/gui/GEOM/glue_faces.htm +++ b/doc/salome/gui/GEOM/glue_faces.htm @@ -1,158 +1,165 @@ - - - - - -
To - Glue Faces in the Main Menu select Repair - > Glue Faces.
- -- -
This operation - glues faces that are coincident with respect to the given tolerance - value.
- -- -
Result: - GEOM_Object.
- -TUI Command - : geompy.MakeGlueFaces(theShape, - theTolerance), where theShape is a compound of shapes to be glued, - theTolerance is a maximum distance between two faces, which can be considered - as coincident.
- -Arguments: - Name + 1 Compound - + Tolerance value
- -- -
- -
- -
Example:
- -- -
- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To + Glue Faces in the Main Menu select Repair - > Glue Faces.
+ ++ +
This operation + glues faces that are coincident with respect to the given tolerance + value.
+ ++ +
The Result will + be a GEOM_Object.
+ ++ +
TUI Command : geompy.MakeGlueFaces(theShape, + theTolerance), where theShape is a compound of shapes to be glued, + theTolerance is a maximum distance between two faces, which can be considered + as coincident.
+ +Arguments: + Name + 1 Compound + + Tolerance value
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/groups.htm b/doc/salome/gui/GEOM/groups.htm index 2d0fbf371..6cabf4139 100755 --- a/doc/salome/gui/GEOM/groups.htm +++ b/doc/salome/gui/GEOM/groups.htm @@ -1,322 +1,327 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create two vertices
- -p0 = geompy.MakeVertex(0. - , 0. , - 0. )
- -p200 = geompy.MakeVertex(200., - 200., 200.)
- -- -
# create a box from two points
- -Box = geompy.MakeBoxTwoPnt(p0, - p200)
- -- -
# create a group from the faces of the box
- -group = geompy.CreateGroup(Box, - geompy.ShapeType["FACE"])
- -- -
# add objects to the group
- -SubFaceList = geompy.SubShapeAllSorted(Box, - geompy.ShapeType["FACE"])
- -for i in [0, 3, 5] - :
- -FaceID - = geompy.GetSubShapeID(Box, SubFaceList[i])
- -geompy.AddObject(group, - FaceID)
- -- -
# add all selected shapes from the list to the group
- -# (the program doesn't raise error, if some shapes are already included)
- -geompy.UnionList(group, - [SubFaceList[0], SubFaceList[2], SubFaceList[5]])
- -- -
# remove an object from the group
- -geompy.RemoveObject(group, - FaceID)
- -- -
# remove all selected shapes from the group
- -# (the program doesn't raise error, if some shapes are not included)
- -geompy.DifferenceList(group, - [SubFaceList[2], SubFaceList[3], SubFaceList[4]])
- -id_group1 = geompy.addToStudy(group, - "Group1")
- -- -
# display the contents of the group
- -gg.createAndDisplayGO(id_group1)
- -salome.sg.updateObjBrowser(1) -
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create two vertices
- -p0 = geompy.MakeVertex(0. - , 0. , - 0. )
- -p200 = geompy.MakeVertex(200., - 200., 200.)
- -- -
# create a box from two points
- -Box = geompy.MakeBoxTwoPnt(p0, - p200)
- -- -
# create a group from the faces of the box
- -group = geompy.CreateGroup(Box, - geompy.ShapeType["FACE"])
- -- -
# add objects to the group
- -SubFaceList = geompy.SubShapeAllSorted(Box, - geompy.ShapeType["FACE"])
- -for i in [0, 3, 5] - :
- -FaceID - = geompy.GetSubShapeID(Box, SubFaceList[i])
- -geompy.AddObject(group, - FaceID)
- -id_group1 = geompy.addToStudy(group, - "Group1")
- -- -
# display the contents of the group
- -gg.createAndDisplayGO(id_group1)
- -salome.sg.updateObjBrowser(1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create two vertices
- -p0 = geompy.MakeVertex(0. - , 0. , - 0. )
- -p200 = geompy.MakeVertex(200., - 200., 200.)
- -- -
# create a box from two points
- -Box = geompy.MakeBoxTwoPnt(p0, - p200)
- -- -
# create a group from the faces of the box
- -group = geompy.CreateGroup(Box, - geompy.ShapeType["FACE"])
- -- -
# add objects to the group
- -SubFaceList = geompy.SubShapeAllSorted(Box, - geompy.ShapeType["FACE"])
- -for i in [0, 3, 5] - :
- -FaceID - = geompy.GetSubShapeID(Box, SubFaceList[i])
- -geompy.AddObject(group, - FaceID)
- -- -
# add all selected shapes from the list to the group
- -# (the program doesn't raise errors, if some shapes are already included)
- -geompy.UnionList(group, - [SubFaceList[0], SubFaceList[2], SubFaceList[5]])
- -- -
# remove an object from the group
- -geompy.RemoveObject(group, - FaceID)
- -id_group1 = geompy.addToStudy(group, - "Group1")
- -- -
# display the contents of the group
- -gg.createAndDisplayGO(id_group1)
- -salome.sg.updateObjBrowser(1) -
- -- -
- -
- -
- -
- -
- -
- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create two vertices
+ +p0 = geompy.MakeVertex(0. + , 0. , + 0. )
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ ++ +
# create a box from two points
+ +Box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# create a group from the faces of the box
+ +group = geompy.CreateGroup(Box, + geompy.ShapeType["FACE"])
+ ++ +
# add objects to the group
+ +SubFaceList = geompy.SubShapeAllSorted(Box, + geompy.ShapeType["FACE"])
+ +for i in [0, 3, 5] + :
+ +FaceID + = geompy.GetSubShapeID(Box, SubFaceList[i])
+ +geompy.AddObject(group, + FaceID)
+ ++ +
# add all selected shapes from the list to the group
+ +# (the program doesn't raise error, if some shapes are already included)
+ +geompy.UnionList(group, + [SubFaceList[0], SubFaceList[2], SubFaceList[5]])
+ ++ +
# remove an object from the group
+ +geompy.RemoveObject(group, + FaceID)
+ ++ +
# remove all selected shapes from the group
+ +# (the program doesn't raise error, if some shapes are not included)
+ +geompy.DifferenceList(group, + [SubFaceList[2], SubFaceList[3], SubFaceList[4]])
+ +id_group1 = geompy.addToStudy(group, + "Group1")
+ ++ +
# display the contents of the group
+ +gg.createAndDisplayGO(id_group1)
+ +salome.sg.updateObjBrowser(1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create two vertices
+ +p0 = geompy.MakeVertex(0. + , 0. , + 0. )
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ ++ +
# create a box from two points
+ +Box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# create a group from the faces of the box
+ +group = geompy.CreateGroup(Box, + geompy.ShapeType["FACE"])
+ ++ +
# add objects to the group
+ +SubFaceList = geompy.SubShapeAllSorted(Box, + geompy.ShapeType["FACE"])
+ +for i in [0, 3, 5] + :
+ +FaceID + = geompy.GetSubShapeID(Box, SubFaceList[i])
+ +geompy.AddObject(group, + FaceID)
+ +id_group1 = geompy.addToStudy(group, + "Group1")
+ ++ +
# display the contents of the group
+ +gg.createAndDisplayGO(id_group1)
+ +salome.sg.updateObjBrowser(1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create two vertices
+ +p0 = geompy.MakeVertex(0. + , 0. , + 0. )
+ +p200 = geompy.MakeVertex(200., + 200., 200.)
+ ++ +
# create a box from two points
+ +Box = geompy.MakeBoxTwoPnt(p0, + p200)
+ ++ +
# create a group from the faces of the box
+ +group = geompy.CreateGroup(Box, + geompy.ShapeType["FACE"])
+ ++ +
# add objects to the group
+ +SubFaceList = geompy.SubShapeAllSorted(Box, + geompy.ShapeType["FACE"])
+ +for i in [0, 3, 5] + :
+ +FaceID + = geompy.GetSubShapeID(Box, SubFaceList[i])
+ +geompy.AddObject(group, + FaceID)
+ ++ +
# add all selected shapes from the list to the group
+ +# (the program doesn't raise errors, if some shapes are already included)
+ +geompy.UnionList(group, + [SubFaceList[0], SubFaceList[2], SubFaceList[5]])
+ ++ +
# remove an object from the group
+ +geompy.RemoveObject(group, + FaceID)
+ +id_group1 = geompy.addToStudy(group, + "Group1")
+ ++ +
# display the contents of the group
+ +gg.createAndDisplayGO(id_group1)
+ +salome.sg.updateObjBrowser(1) +
+ ++ +
+ +
+ +
+ +
+ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/image10.jpg b/doc/salome/gui/GEOM/image10.jpg deleted file mode 100755 index 89009bc1c..000000000 Binary files a/doc/salome/gui/GEOM/image10.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image11.gif b/doc/salome/gui/GEOM/image11.gif deleted file mode 100755 index 4a07b5e83..000000000 Binary files a/doc/salome/gui/GEOM/image11.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image11.jpg b/doc/salome/gui/GEOM/image11.jpg deleted file mode 100755 index 4f666fd34..000000000 Binary files a/doc/salome/gui/GEOM/image11.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image12.gif b/doc/salome/gui/GEOM/image12.gif deleted file mode 100755 index 9e872c816..000000000 Binary files a/doc/salome/gui/GEOM/image12.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image12.jpg b/doc/salome/gui/GEOM/image12.jpg deleted file mode 100755 index fac5c1274..000000000 Binary files a/doc/salome/gui/GEOM/image12.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image121.jpg b/doc/salome/gui/GEOM/image121.jpg deleted file mode 100755 index 2dfe66e98..000000000 Binary files a/doc/salome/gui/GEOM/image121.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image122.jpg b/doc/salome/gui/GEOM/image122.jpg deleted file mode 100755 index 847a39703..000000000 Binary files a/doc/salome/gui/GEOM/image122.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image124.jpg b/doc/salome/gui/GEOM/image124.jpg deleted file mode 100755 index 2bc4bf342..000000000 Binary files a/doc/salome/gui/GEOM/image124.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image127.jpg b/doc/salome/gui/GEOM/image127.jpg deleted file mode 100755 index f0cf3d9c9..000000000 Binary files a/doc/salome/gui/GEOM/image127.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image128.jpg b/doc/salome/gui/GEOM/image128.jpg deleted file mode 100755 index c62cbf8bb..000000000 Binary files a/doc/salome/gui/GEOM/image128.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image129.jpg b/doc/salome/gui/GEOM/image129.jpg deleted file mode 100755 index d8fcb94a6..000000000 Binary files a/doc/salome/gui/GEOM/image129.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image13.gif b/doc/salome/gui/GEOM/image13.gif deleted file mode 100755 index 83f73a54a..000000000 Binary files a/doc/salome/gui/GEOM/image13.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image130.jpg b/doc/salome/gui/GEOM/image130.jpg deleted file mode 100755 index 8874e8ea6..000000000 Binary files a/doc/salome/gui/GEOM/image130.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image133.jpg b/doc/salome/gui/GEOM/image133.jpg deleted file mode 100755 index 0bc42a680..000000000 Binary files a/doc/salome/gui/GEOM/image133.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image14.gif b/doc/salome/gui/GEOM/image14.gif deleted file mode 100755 index a05dd647c..000000000 Binary files a/doc/salome/gui/GEOM/image14.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image147.jpg b/doc/salome/gui/GEOM/image147.jpg deleted file mode 100755 index e38c1dad2..000000000 Binary files a/doc/salome/gui/GEOM/image147.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image149.jpg b/doc/salome/gui/GEOM/image149.jpg deleted file mode 100755 index 2332885cd..000000000 Binary files a/doc/salome/gui/GEOM/image149.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image15.gif b/doc/salome/gui/GEOM/image15.gif deleted file mode 100755 index 3dcdf001c..000000000 Binary files a/doc/salome/gui/GEOM/image15.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image150.jpg b/doc/salome/gui/GEOM/image150.jpg deleted file mode 100755 index 31fceea62..000000000 Binary files a/doc/salome/gui/GEOM/image150.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image151.jpg b/doc/salome/gui/GEOM/image151.jpg deleted file mode 100755 index eda0dfcbd..000000000 Binary files a/doc/salome/gui/GEOM/image151.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image16.gif b/doc/salome/gui/GEOM/image16.gif deleted file mode 100755 index 44f8616a6..000000000 Binary files a/doc/salome/gui/GEOM/image16.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image160.jpg b/doc/salome/gui/GEOM/image160.jpg index a88429f79..c97d8378a 100755 Binary files a/doc/salome/gui/GEOM/image160.jpg and b/doc/salome/gui/GEOM/image160.jpg differ diff --git a/doc/salome/gui/GEOM/image163.jpg b/doc/salome/gui/GEOM/image163.jpg deleted file mode 100755 index 8f87e356b..000000000 Binary files a/doc/salome/gui/GEOM/image163.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image164.jpg b/doc/salome/gui/GEOM/image164.jpg deleted file mode 100755 index a180e04d1..000000000 Binary files a/doc/salome/gui/GEOM/image164.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image17.gif b/doc/salome/gui/GEOM/image17.gif deleted file mode 100755 index 4436895a4..000000000 Binary files a/doc/salome/gui/GEOM/image17.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image170.jpg b/doc/salome/gui/GEOM/image170.jpg deleted file mode 100755 index 4e24375fa..000000000 Binary files a/doc/salome/gui/GEOM/image170.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image171.jpg b/doc/salome/gui/GEOM/image171.jpg deleted file mode 100755 index 9e055888a..000000000 Binary files a/doc/salome/gui/GEOM/image171.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image172.jpg b/doc/salome/gui/GEOM/image172.jpg deleted file mode 100755 index 2bee4472e..000000000 Binary files a/doc/salome/gui/GEOM/image172.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image18.jpg b/doc/salome/gui/GEOM/image18.jpg deleted file mode 100755 index 7b7d6f4dc..000000000 Binary files a/doc/salome/gui/GEOM/image18.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image188.jpg b/doc/salome/gui/GEOM/image188.jpg deleted file mode 100755 index 00f58a045..000000000 Binary files a/doc/salome/gui/GEOM/image188.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image189.jpg b/doc/salome/gui/GEOM/image189.jpg deleted file mode 100755 index d02a23911..000000000 Binary files a/doc/salome/gui/GEOM/image189.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image19.gif b/doc/salome/gui/GEOM/image19.gif deleted file mode 100755 index ecd250a2b..000000000 Binary files a/doc/salome/gui/GEOM/image19.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image191.jpg b/doc/salome/gui/GEOM/image191.jpg deleted file mode 100755 index 92144cc51..000000000 Binary files a/doc/salome/gui/GEOM/image191.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image197.jpg b/doc/salome/gui/GEOM/image197.jpg deleted file mode 100755 index 11eb06e4a..000000000 Binary files a/doc/salome/gui/GEOM/image197.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image20.gif b/doc/salome/gui/GEOM/image20.gif deleted file mode 100755 index ef92fafea..000000000 Binary files a/doc/salome/gui/GEOM/image20.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image201.jpg b/doc/salome/gui/GEOM/image201.jpg deleted file mode 100755 index 0a6a1b4d7..000000000 Binary files a/doc/salome/gui/GEOM/image201.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image202.jpg b/doc/salome/gui/GEOM/image202.jpg deleted file mode 100755 index 067426223..000000000 Binary files a/doc/salome/gui/GEOM/image202.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image21.gif b/doc/salome/gui/GEOM/image21.gif deleted file mode 100755 index 8fa295c52..000000000 Binary files a/doc/salome/gui/GEOM/image21.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image22.gif b/doc/salome/gui/GEOM/image22.gif deleted file mode 100755 index 00f387962..000000000 Binary files a/doc/salome/gui/GEOM/image22.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image23.gif b/doc/salome/gui/GEOM/image23.gif deleted file mode 100755 index 9af6909fc..000000000 Binary files a/doc/salome/gui/GEOM/image23.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image24.gif b/doc/salome/gui/GEOM/image24.gif deleted file mode 100755 index d53209d35..000000000 Binary files a/doc/salome/gui/GEOM/image24.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image25.gif b/doc/salome/gui/GEOM/image25.gif deleted file mode 100755 index b111102aa..000000000 Binary files a/doc/salome/gui/GEOM/image25.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image27.jpg b/doc/salome/gui/GEOM/image27.jpg deleted file mode 100755 index ec850e713..000000000 Binary files a/doc/salome/gui/GEOM/image27.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image31.gif b/doc/salome/gui/GEOM/image31.gif deleted file mode 100755 index 0285eb3cf..000000000 Binary files a/doc/salome/gui/GEOM/image31.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image52.jpg b/doc/salome/gui/GEOM/image52.jpg deleted file mode 100755 index 06cf1911c..000000000 Binary files a/doc/salome/gui/GEOM/image52.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image53.jpg b/doc/salome/gui/GEOM/image53.jpg deleted file mode 100755 index 0de05fdeb..000000000 Binary files a/doc/salome/gui/GEOM/image53.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image54.jpg b/doc/salome/gui/GEOM/image54.jpg deleted file mode 100755 index b331a4adb..000000000 Binary files a/doc/salome/gui/GEOM/image54.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image56.gif b/doc/salome/gui/GEOM/image56.gif index 049e1ebdc..becd5b28c 100755 Binary files a/doc/salome/gui/GEOM/image56.gif and b/doc/salome/gui/GEOM/image56.gif differ diff --git a/doc/salome/gui/GEOM/image6.gif b/doc/salome/gui/GEOM/image6.gif deleted file mode 100755 index ef3e4bcdb..000000000 Binary files a/doc/salome/gui/GEOM/image6.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image67.jpg b/doc/salome/gui/GEOM/image67.jpg deleted file mode 100755 index 658b9430d..000000000 Binary files a/doc/salome/gui/GEOM/image67.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image7.gif b/doc/salome/gui/GEOM/image7.gif deleted file mode 100755 index dda1141af..000000000 Binary files a/doc/salome/gui/GEOM/image7.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image76.jpg b/doc/salome/gui/GEOM/image76.jpg deleted file mode 100755 index deb1aedee..000000000 Binary files a/doc/salome/gui/GEOM/image76.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image78.jpg b/doc/salome/gui/GEOM/image78.jpg deleted file mode 100755 index 8737d822c..000000000 Binary files a/doc/salome/gui/GEOM/image78.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image79.jpg b/doc/salome/gui/GEOM/image79.jpg deleted file mode 100755 index 099999d1d..000000000 Binary files a/doc/salome/gui/GEOM/image79.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image8.gif b/doc/salome/gui/GEOM/image8.gif deleted file mode 100755 index 67597372d..000000000 Binary files a/doc/salome/gui/GEOM/image8.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image8.jpg b/doc/salome/gui/GEOM/image8.jpg deleted file mode 100755 index f2c07ebd2..000000000 Binary files a/doc/salome/gui/GEOM/image8.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image80.jpg b/doc/salome/gui/GEOM/image80.jpg deleted file mode 100755 index ce81b706a..000000000 Binary files a/doc/salome/gui/GEOM/image80.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image81.jpg b/doc/salome/gui/GEOM/image81.jpg deleted file mode 100755 index 415dabeeb..000000000 Binary files a/doc/salome/gui/GEOM/image81.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image82.jpg b/doc/salome/gui/GEOM/image82.jpg deleted file mode 100755 index 96d4a04f9..000000000 Binary files a/doc/salome/gui/GEOM/image82.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image83.jpg b/doc/salome/gui/GEOM/image83.jpg deleted file mode 100755 index bafd8bea1..000000000 Binary files a/doc/salome/gui/GEOM/image83.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image84.jpg b/doc/salome/gui/GEOM/image84.jpg deleted file mode 100755 index 25625c16a..000000000 Binary files a/doc/salome/gui/GEOM/image84.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image85.jpg b/doc/salome/gui/GEOM/image85.jpg deleted file mode 100755 index 51ceee454..000000000 Binary files a/doc/salome/gui/GEOM/image85.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image9.gif b/doc/salome/gui/GEOM/image9.gif deleted file mode 100755 index cf29eb98d..000000000 Binary files a/doc/salome/gui/GEOM/image9.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image9.jpg b/doc/salome/gui/GEOM/image9.jpg deleted file mode 100755 index 6040b6677..000000000 Binary files a/doc/salome/gui/GEOM/image9.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image94.jpg b/doc/salome/gui/GEOM/image94.jpg deleted file mode 100755 index 9ac2ee50c..000000000 Binary files a/doc/salome/gui/GEOM/image94.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image95.jpg b/doc/salome/gui/GEOM/image95.jpg deleted file mode 100755 index 12f6002c4..000000000 Binary files a/doc/salome/gui/GEOM/image95.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image96.jpg b/doc/salome/gui/GEOM/image96.jpg deleted file mode 100755 index 53006acd8..000000000 Binary files a/doc/salome/gui/GEOM/image96.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image97.jpg b/doc/salome/gui/GEOM/image97.jpg deleted file mode 100755 index b81765b7d..000000000 Binary files a/doc/salome/gui/GEOM/image97.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image98.jpg b/doc/salome/gui/GEOM/image98.jpg deleted file mode 100755 index e5abf9dcd..000000000 Binary files a/doc/salome/gui/GEOM/image98.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/index.htm b/doc/salome/gui/GEOM/index.htm index aff470fc2..54c41df02 100755 --- a/doc/salome/gui/GEOM/index.htm +++ b/doc/salome/gui/GEOM/index.htm @@ -1,180 +1,180 @@ - - -
In this menu you can change the number of isolines - displayed within a shape.
- -Arguments: - 2 values (number of isolines).
- -- -
- -
Example:
- -- -
- -
- - - - + + + + + +
In this menu you can change the number of isolines + displayed within a shape.
+ +Arguments: + 2 values (number of isolines).
+ ++ +
+ +
Example:
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/line.htm b/doc/salome/gui/GEOM/line.htm index a525ab79a..0ad6efe1a 100755 --- a/doc/salome/gui/GEOM/line.htm +++ b/doc/salome/gui/GEOM/line.htm @@ -1,154 +1,159 @@ - - - - - -
To create a Line in the Main Menu select New - Entity - > Basic - > Line
- -- -
To create a Line - you should define Point1 and Point2, which are the points through - which the - Line passes.
- -The - Result of the operation will be a - GEOM_Object (edge).
- -- -
TUI Command: - geompy.MakeLineTwoPnt(Point1, Point2) -
- -Arguments: - Name + 2 vertices.
- -- -
- -
- -
Example:
- -- -
- -
NB! There - is another way to create a line, which is currently accessible only via - TUI commands.
- -- -
You - can define a line passing - through the given Point and - parallel to the given Vector.
- -TUI - Command: geompy.MakeLine(Point, - Vector)
- -- -
Our TUI Scripts - provide you with useful examples of creation of Basic - Geometric Objects.
- -- - - - + + + + + +
To create a Line in the Main Menu select New + Entity - > Basic - > Line
+ ++ +
To create a Line + you should define Point1 and Point2, which are the points through + which the + Line passes.
+ +The + Result of the operation will be a + GEOM_Object (edge).
+ ++ +
TUI Command: + geompy.MakeLineTwoPnt(Point1, Point2) +
+ +Arguments: + Name + 2 vertices.
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
NB! There + is another way to create a line, which is currently accessible only via + TUI commands.
+ ++ +
You + can define a line passing + through the given Point and + parallel to the given Vector.
+ +TUI + Command: geompy.MakeLine(Point, + Vector)
+ ++ +
Our TUI Scripts + provide you with useful examples of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/local_coordinate_system.htm b/doc/salome/gui/GEOM/local_coordinate_system.htm index dd0490e35..f760763a2 100755 --- a/doc/salome/gui/GEOM/local_coordinate_system.htm +++ b/doc/salome/gui/GEOM/local_coordinate_system.htm @@ -1,177 +1,184 @@ - - - - - -
To create a Local Coordinate System - in the Main Menu select New Entity - > Basic - > Local Coordinate - System
- -There are three algorithms to choose from.
- -- -
Firstly, you can by yourselves the values of - X, Y, and Z coordinates of origin and the directions of X and Y axes.
- -TUI command: - geompy.MakeMarker(OX, OY, OZ, XDX, XDY, - XDZ, YDX, YDY, YDZ), where OX, OY, OZ are coordinates of the origin - of LCS, XDX, XDY, XDZ is a vector of OX direction - of the LCS and YDX, YDY, YDZ is a a vector of OY direction of the LCS.
- -Arguments: - Name + Coordinates of origin, X axis direction, Y axis direction.
- -- -
- -
Secondly, you can simply - select a point in the object browser or 3D viewer, in this case the coordinates - of origin are automatically filled in with the coordinates of the selected - point and X and Y axes direction will be parallel to the X and Y direction - of the Global CS.
- -Arguments: - Name + reference object.
- -- -
- -
The last algorithm also presumes that you select - a point in the object browser or 3D viewer, but in this case you define - X and Y axes direction yourselves.
- -Arguments: Name + 1 point of origin + X axis direction, - Y axis direction.
- -- -
- -
Press «OK» or «Apply» button to create an LCS - at the location with the specified coordinates. The new object is shown - in the Object Browser and in 3D viewer.
- -- -
Example:
- -- -
- - - - + + + + + +
To create a Local Coordinate System + in the Main Menu select New Entity - > Basic - > Local Coordinate + System
+ +There are three algorithms to choose from.
+ ++ +
Firstly, you can define the values of X, Y, + and Z coordinates of origin and the directions of X and Y axes directly + in the menu.
+ +TUI command: + geompy.MakeMarker(OX, OY, OZ, XDX, XDY, + XDZ, YDX, YDY, YDZ), where OX, OY, OZ are coordinates of the origin + of LCS, XDX, XDY, XDZ is a vector of OX direction + of the LCS and YDX, YDY, YDZ is a a vector of OY direction of the LCS.
+ +Arguments: + Name + Coordinates of origin, X axis direction, Y axis direction.
+ ++ +
+ +
Secondly, you can simply + select a point in the object browser or 3D viewer, in this case the coordinates + of origin are automatically filled in with the coordinates of the selected + point and X and Y axes direction will be parallel to the X and Y direction + of the Global CS.
+ +Arguments: + Name + reference object.
+ ++ +
+ +
The last algorithm also presumes that you select + a point in the object browser or 3D viewer, but in this case you define + X and Y axes direction yourselves.
+ +Arguments: + Name + 1 point of origin + X axis direction, + Y axis direction.
+ ++ +
+ +
Press «OK» or «Apply» button to create an LCS + at the location with the specified coordinates. The new object is shown + in the Object Browser and in 3D viewer.
+ ++ +
Example:
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/measurement_tools.htm b/doc/salome/gui/GEOM/measurement_tools.htm index 9a45d4c94..f364fbdfb 100755 --- a/doc/salome/gui/GEOM/measurement_tools.htm +++ b/doc/salome/gui/GEOM/measurement_tools.htm @@ -1,427 +1,432 @@ - - - - - -
import geompy
- -- -
# create a point
- -point = geompy.MakeVertex(15, - 23, 80)
- -- -
# get the coordinates of the point and check its values
- -coords = geompy.PointCoordinates(point)
- -if coords[0] != 15 - or coords[1] != 23 or coords[2] != 80 :
- -print - "Coordinates of point must be (15, 23, 80), but returned (", - coords[0], ", ", coords[1], ", ", coords[2], ")"
- -else :
- -print - "All values are OK."
- -import geompy
- -import math
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -props = geompy.BasicProperties(box)
- -print "\nBox - 100x30x100 Basic Properties:"
- -print " Wires - length: ", props[0]
- -print " Surface - area: ", props[1]
- -print " Volume - : - ", props[2]
- -length = math.sqrt((props[0] - - 1840)*(props[0] - 1840))
- -area = math.sqrt((props[1] - - 32000)*(props[1] - 32000))
- -volume = math.sqrt((props[2] - - 300000)*(props[2] - 300000))
- -if length > 1e-7 - or area > 1e-7 or volume > 1e-7:
- -print - "While must be:"
- -print - " Wires length: ", 1840
- -print - " Surface area: ", 32000
- -print - " Volume : - ", 300000.
- -import geompy
- -import math
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -cm = geompy.MakeCDG(box)
- -if cm is None:
- -raise - RuntimeError, "MakeCDG(box) failed"
- -else:
- -print - "\nCentre of gravity of box has been successfully obtained:"
- -coords - = geompy.PointCoordinates(cm)
- -print - "(", coords[0], ", ", coords[1], ", ", coords[2], - ")"
- -dx - = math.sqrt((coords[0] - 50)*(coords[0] - 50))
- -dy - = math.sqrt((coords[1] - 15)*(coords[1] - 15))
- -dz - = math.sqrt((coords[2] - 50)*(coords[2] - 50))
- -if - dx > 1e-7 or dy > 1e-7 or dz > 1e-7:
- -print - "But must be (50, 15, 50)"
- -import geompy
- -import math
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -In = geompy.Inertia(box)
- -print "\nInertia - matrix of box 100x30x100:"
- -print " (", - In[0], ", ", In[1], ", ", In[2], ")"
- -print " (", - In[3], ", ", In[4], ", ", In[5], ")"
- -print " (", - In[6], ", ", In[7], ", ", In[8], ")"
- -print "Main moments - of inertia of box 100x30x100:"
- -print " Ix = - ", In[9], ", Iy = ", In[10], ", Iz = ", In[11] -
- -- -
import geompy
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -bb = geompy.BoundingBox(box)
- -print "\nBounding - Box of box 100x30x100:"
- -print " Xmin - = ", bb[0], ", Xmax = ", bb[1]
- -print " Ymin - = ", bb[2], ", Ymax = ", bb[3]
- -print " Zmin - = ", bb[4], ", Zmax = ", bb[5]
- -- -
- -
import - geompy
- -- -
# create boxes
- -box1 = geompy.MakeBoxDXDYDZ(100,30,100)
- -box2 = geompy.MakeBox(105,0,0,200,30,100)
- -min_dist = geompy.MinDistance(box1,box2)
- -print "\nMinimal - distance between box1 and box2 = ", min_dist
- -- -
import - geompy
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -Toler = geompy.Tolerance(box)
- -print "\nBox - 100x30x100 tolerance:"
- -print " Face - min. tolerance: ", Toler[0]
- -print " Face - max. tolerance: ", Toler[1]
- -print " Edge - min. tolerance: ", Toler[2]
- -print " Edge - max. tolerance: ", Toler[3]
- -print " Vertex - min. tolerance: ", Toler[4]
- -print " Vertex - max. tolerance: ", Toler[5]
- -- -
import - geompy
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -Descr = geompy.WhatIs(box)
- -print "\nBox - 100x30x100 description:"
- -print Descr
- -- -
import geompy
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100,30,100)
- -IsValid = geompy.CheckShape(box)
- -if IsValid == 0:
- -raise - RuntimeError, "Invalid box created"
- -else:
- -print - "\nBox is valid"
- -- -
- -
import - geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create boxes
- -box1 = geompy.MakeBox(0,0,0,100,50,100)
- -box2 = geompy.MakeBox(100,0,0,250,50,100)
- -- -
# make a compound
- -compound = geompy.MakeCompound([box1, - box2])
- -- -
# glue the faces of the - compound
- -tolerance = 1e-5
- -glue = geompy.MakeGlueFaces(compound, - tolerance)
- -IsValid = geompy.CheckCompoundOfBlocks(glue)
- -if IsValid == 0:
- -raise - RuntimeError, "Invalid compound created"
- -else:
- -print - "\nCompound is valid"
- -- -
- -
- - - - + + + + + +
import geompy
+ ++ +
# create a point
+ +point = geompy.MakeVertex(15, + 23, 80)
+ ++ +
# get the coordinates of the point and check its values
+ +coords = geompy.PointCoordinates(point)
+ +if coords[0] != 15 + or coords[1] != 23 or coords[2] != 80 :
+ +print + "Coordinates of point must be (15, 23, 80), but returned (", + coords[0], ", ", coords[1], ", ", coords[2], ")"
+ +else :
+ +print + "All values are OK."
+ +import geompy
+ +import math
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +props = geompy.BasicProperties(box)
+ +print "\nBox + 100x30x100 Basic Properties:"
+ +print " Wires + length: ", props[0]
+ +print " Surface + area: ", props[1]
+ +print " Volume + : + ", props[2]
+ +length = math.sqrt((props[0] + - 1840)*(props[0] - 1840))
+ +area = math.sqrt((props[1] + - 32000)*(props[1] - 32000))
+ +volume = math.sqrt((props[2] + - 300000)*(props[2] - 300000))
+ +if length > 1e-7 + or area > 1e-7 or volume > 1e-7:
+ +print + "While must be:"
+ +print + " Wires length: ", 1840
+ +print + " Surface area: ", 32000
+ +print + " Volume : + ", 300000.
+ +import geompy
+ +import math
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +cm = geompy.MakeCDG(box)
+ +if cm is None:
+ +raise + RuntimeError, "MakeCDG(box) failed"
+ +else:
+ +print + "\nCentre of gravity of box has been successfully obtained:"
+ +coords + = geompy.PointCoordinates(cm)
+ +print + "(", coords[0], ", ", coords[1], ", ", coords[2], + ")"
+ +dx + = math.sqrt((coords[0] - 50)*(coords[0] - 50))
+ +dy + = math.sqrt((coords[1] - 15)*(coords[1] - 15))
+ +dz + = math.sqrt((coords[2] - 50)*(coords[2] - 50))
+ +if + dx > 1e-7 or dy > 1e-7 or dz > 1e-7:
+ +print + "But must be (50, 15, 50)"
+ +import geompy
+ +import math
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +In = geompy.Inertia(box)
+ +print "\nInertia + matrix of box 100x30x100:"
+ +print " (", + In[0], ", ", In[1], ", ", In[2], ")"
+ +print " (", + In[3], ", ", In[4], ", ", In[5], ")"
+ +print " (", + In[6], ", ", In[7], ", ", In[8], ")"
+ +print "Main moments + of inertia of box 100x30x100:"
+ +print " Ix = + ", In[9], ", Iy = ", In[10], ", Iz = ", In[11] +
+ ++ +
import geompy
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +bb = geompy.BoundingBox(box)
+ +print "\nBounding + Box of box 100x30x100:"
+ +print " Xmin + = ", bb[0], ", Xmax = ", bb[1]
+ +print " Ymin + = ", bb[2], ", Ymax = ", bb[3]
+ +print " Zmin + = ", bb[4], ", Zmax = ", bb[5]
+ ++ +
+ +
import + geompy
+ ++ +
# create boxes
+ +box1 = geompy.MakeBoxDXDYDZ(100,30,100)
+ +box2 = geompy.MakeBox(105,0,0,200,30,100)
+ +min_dist = geompy.MinDistance(box1,box2)
+ +print "\nMinimal + distance between box1 and box2 = ", min_dist
+ ++ +
import + geompy
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +Toler = geompy.Tolerance(box)
+ +print "\nBox + 100x30x100 tolerance:"
+ +print " Face + min. tolerance: ", Toler[0]
+ +print " Face + max. tolerance: ", Toler[1]
+ +print " Edge + min. tolerance: ", Toler[2]
+ +print " Edge + max. tolerance: ", Toler[3]
+ +print " Vertex + min. tolerance: ", Toler[4]
+ +print " Vertex + max. tolerance: ", Toler[5]
+ ++ +
import + geompy
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +Descr = geompy.WhatIs(box)
+ +print "\nBox + 100x30x100 description:"
+ +print Descr
+ ++ +
import geompy
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100,30,100)
+ +IsValid = geompy.CheckShape(box)
+ +if IsValid == 0:
+ +raise + RuntimeError, "Invalid box created"
+ +else:
+ +print + "\nBox is valid"
+ ++ +
+ +
import + geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create boxes
+ +box1 = geompy.MakeBox(0,0,0,100,50,100)
+ +box2 = geompy.MakeBox(100,0,0,250,50,100)
+ ++ +
# make a compound
+ +compound = geompy.MakeCompound([box1, + box2])
+ ++ +
# glue the faces of the + compound
+ +tolerance = 1e-5
+ +glue = geompy.MakeGlueFaces(compound, + tolerance)
+ +IsValid = geompy.CheckCompoundOfBlocks(glue)
+ +if IsValid == 0:
+ +raise + RuntimeError, "Invalid compound created"
+ +else:
+ +print + "\nCompound is valid"
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/mirror_image.htm b/doc/salome/gui/GEOM/mirror_image.htm index 9858edf40..dce4702d8 100755 --- a/doc/salome/gui/GEOM/mirror_image.htm +++ b/doc/salome/gui/GEOM/mirror_image.htm @@ -1,192 +1,196 @@ - - - - - -
To produce - a Mirror Image in the Main Menu - select Operations - > Transformation - - > Mirror Image
- -- -
This operation creates a symmetrical copy of - an Object, which can be mirrored - in three different ways. Create a copy - checkbox allows to keep the initial object, otherwise it will be - removed.
- -The - Result will be a GEOM_Object.
- -- -
Firstly an Object - can be mirrored through a Point of symmetry
- -TUI Command: - geompy.MakeMirrorByPoint(Object, - Point)
- -Arguments: Name + 1 shape + 1 vertex.
- -- -
- -
- -
- -
Secondly an - Object can be mirrored through an Axis of symmetry
- -TUI Command: - geompy.MakeMirrorByAxis(Object, - Axis)
- -Arguments: Name + 1 shape + 1 vector.
- -- -
- -
- -
Finally an Object - can be mirrored through a Plane - of symmetry
- -TUI Command: - geompy.MakeMirrorByPlane(Shape, - Plane),
- -Arguments: - Name + 1 shape + 1 plane
- -- -
- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Mirror Image in the Main Menu + select Operations - > Transformation + - > Mirror Image
+ ++ +
This operation creates a symmetrical copy of + an Object, which can be mirrored + in three different ways. Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ +The + Result will be a GEOM_Object.
+ ++ +
Firstly an Object + can be mirrored through a Point of symmetry
+ +TUI Command: + geompy.MakeMirrorByPoint(Object, + Point)
+ +Arguments: Name + 1 shape + 1 vertex.
+ ++ +
+ +
+ +
+ +
Secondly an + Object can be mirrored through an Axis of symmetry
+ +TUI Command: + geompy.MakeMirrorByAxis(Object, + Axis)
+ +Arguments: Name + 1 shape + 1 vector.
+ ++ +
+ +
+ +
Finally an Object + can be mirrored through a Plane + of symmetry
+ +TUI Command: + geompy.MakeMirrorByPlane(Shape, + Plane),
+ +Arguments: + Name + 1 shape + 1 plane
+ ++ +
+ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/modify_the_location.htm b/doc/salome/gui/GEOM/modify_the_location.htm index c98bb2039..2db2e84a9 100755 --- a/doc/salome/gui/GEOM/modify_the_location.htm +++ b/doc/salome/gui/GEOM/modify_the_location.htm @@ -1,183 +1,219 @@ - - - - - -
To Modify the Location in the Main Menu - select Operations - > Transformation - - > Modify the Location.
- -- -
This operation modifies the Location - of an Object
- -The first algorithm places the object so that - its center coincides with the center of an End Local Coordinate System.
- -Create a copy - checkbox allows to keep the initial object, otherwise it will be - removed.
- -Arguments: - Name + 1 GEOM_Object + End Coordinate System.
- -- -
- -
In the picture the initial cube with the global - coordinate system is to - the right and the modified cube with the Local Coordinate System in the - center of it is to the left .
- -- -
- -
The second algorithm modifies - the location of an object using Start and End LSC, however, it does not - place the object in the center of any of the two systems.
- -Create a copy - checkbox allows to keep the initial object, otherwise it will be - removed.
- -Arguments: - Name + 1 GEOM_Object + Start Coordinate System + End Coordinate System.
- -- -
- -
In this picture the initial cube with the global - coordinate system is above, the modified cube is below and the End Local - Coordinate System is the big one.
- -- -
- -
The Result - of this operation will be a GEOM_Object.
- -- -
TUI Command: - geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject - is a shape, location of which is modified, theStartLCS is a location to - move the shape from, theEndLCS is a location to move the shape to.
- -- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To Modify the Location in the Main Menu + select Operations - > Transformation + - > Modify the Location.
+ ++ +
This operation modifies the Location + of an Object.
+ ++ +
The first algorithm places the object so that + its center coincides with the center of an End Local Coordinate System.
+ +Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ +Arguments: + Name + 1 Object + End Coordinate System.
+ ++ +
+ +
In the picture the initial cube with the global + coordinate system is to + the right and the modified cube with the Local Coordinate System in the + center of it is to the left .
+ ++ +
+ +
The second algorithm modifies + the location of an object using Start and End LSC, although the final + position of the object will not coincide with the center of either + of the two systems. In this method the object is shifted from its initial + position by the value of the remainder after subtraction of the coordinates + of the Start LSC from the coordinates of the End LSC.
+ +Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ +Arguments: + Name + 1 Object + Start Coordinate System + End Coordinate System.
+ ++ +
+ +
In this picture we see the initial cube with + the global coordinate system and two LCS: LocalCS1 (GCS+100 along x-axis) + and LocalCS2 (GCS+200 along x-axis)
+ ++ +
+ +
+ Selecting Start LCS = LCS1 and End LCS = LCS2, + we obtain the translated cube at the position (100;0;0) +
|
+
+ Selecting Start LCS = LCS2 and End LCS = LCS1, + we obtain the translated cube at the position (-100;0;0) |
+ |
+
+ |
+ +
TUI Command: + geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject + is a shape, location of which is modified, theStartLCS is a location to + move the shape from, theEndLCS is a location to move the shape to.
+ ++ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/multi_rotation.htm b/doc/salome/gui/GEOM/multi_rotation.htm index 5a9846057..c42f36e7d 100755 --- a/doc/salome/gui/GEOM/multi_rotation.htm +++ b/doc/salome/gui/GEOM/multi_rotation.htm @@ -1,184 +1,190 @@ - - - - - -
To produce - a Multi Rotation in the Main Menu - select Operations - > Transformation - - > Multi Rotation
- -- -
This operation creates several geometrical - objects rotated in one or two dimentions basing on the initial - geometrical object.
- -The Result will - be one or several GEOM_Objects (compound).
- -- -
To produce a Simple - Multi Rotation (in one dimension) you need to define a Shape - to be rotated, an Axis of rotation - and a Number of Times the shape - must be rotated. Rotation Angle - will be 2*PI/NbTimes
- -TUI - Command: geompy.MakeMultiRotate1D(Shape, - Axis, NbTimes)
- -Arguments: - Name + 1 shape + 1 vector for direction - + 1 value (repetition).
- -- -
There is a TUI-only command geompy.MakeMultiRotation1D(Shape, - Dir, Point, NbTimes) which works in the same way, but the Axis - is defined by - direction and point.
- -- -
- -
Double Multi - Rotation (in two dimensions) rotates the given Object - around the given Axis on the given - Angle a given Number - of Times and multi-translates each rotation result. Translation - direction passes through the center of gravity of the rotated shape and - its projection on the rotation axis. Reverse - checkbox allows to set the direction of rotation.
- -TUI - Command: geompy.MakeMultiRotate2D(Shape, - Axis, Angle, NbTimes1, Step, NbTimes2)
- -Arguments: Name + 1 shape + 1 vector - for direction + 1 angle + 1 value (repetition) + 1 step value + 1 value - (repetition);
- -- -
There is a TUI-only - command geompy.MakeMultiRotation2D(Shape, - Dir, Point, Angle, nbtimes1, Step, nbtimes2) which works in the - same way, but the Axis is defined by - direction and point.
- -- -
- -
- -
Our TUI - Scripts provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Multi Rotation in the Main Menu + select Operations - > Transformation + - > Multi Rotation
+ ++ +
This operation creates several geometrical + objects rotated in one or two dimensions basing on the initial + geometrical object.
+ +The Result will + be one or several GEOM_Objects (compound).
+ ++ +
To produce a Simple + Multi Rotation (in one dimension) you need to define a Shape + to be rotated, an Axis of rotation + and a Number of Times the shape + must be rotated. Rotation Angle + will be 2*PI/NbTimes
+ +TUI + Command: geompy.MultiRotate1D(Shape, + Axis, NbTimes)
+ +Arguments: + Name + 1 shape + 1 vector for direction + + 1 value (repetition).
+ ++ +
There is a TUI-only command geompy.MakeMultiRotation1D(Shape, + Dir, Point, NbTimes) which works in the same way, but the Axis + is defined by + direction and point.
+ ++ +
+ +
Double Multi + Rotation (in two dimensions) rotates the given Object + around the given Axis on the given + Angle a given Number + of Times and multi-translates each rotation result. Translation + direction passes through the center of gravity of the rotated shape and + its projection on the rotation axis. Reverse + checkbox allows to set the direction of rotation.
+ +TUI + Command: geompy.MultiRotate2D(Shape, + Axis, Angle, NbTimes1, Step, NbTimes2)
+ +Arguments: Name + 1 shape + 1 vector + for direction + 1 angle + 1 value (repetition) + 1 step value + 1 value + (repetition);
+ ++ +
There is a TUI-only + command geompy.MakeMultiRotation2D(Shape, + Dir, Point, Angle, nbtimes1, Step, nbtimes2) which works in the + same way, but the Axis is defined by + direction and point.
+ ++ +
+ +
+ +
Our TUI + Scripts provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/multi_transformation.htm b/doc/salome/gui/GEOM/multi_transformation.htm index 8a2708cbe..3362e1f57 100755 --- a/doc/salome/gui/GEOM/multi_transformation.htm +++ b/doc/salome/gui/GEOM/multi_transformation.htm @@ -1,177 +1,183 @@ - - - - - -
To produce - a Multi Translation operation - in the Main Menu select Operations - - > Blocks - > Multi Transformation
- -- -
This operation makes several translations of - a block (solid) in one or two directions depending on the arguments - specified by the user.
- -The - Result in both cases will be a - GEOM_Object.
- -- -
Simple Multi - Transformation (in one direction).
- -TUI - Command: geompy. - MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), where - Block is a block to be transformed, DirFaceID1 is an ID of the face which defines the first - direction of transformation, - DirFaceID2 is an ID of the face - which defines the second direction of transformation, - NbTimes is a number of transformations.
- -Arguments: Name - + 1 hexahedral solid + 1 or 2 faces + 1 integer (number of blocks).
- -- -
- -
Double - Multi Transformation (in two directions).
- -TUI - Command: geompy. - MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, - DirFaceID2V, NbTimesV), where Block - is a block to be transformed, DirFaceID1U and DirFace1V are IDs of the - faces, which define directions of the first transformation, DirFaceID1V - and DirFaceID2V are ID’s of the faces which define directions of the second - transformation, NbTimesU and NbTimesV are numbers of transformations.
- -Arguments: Name - + 1 hexahedral solid + 2, 3 or 4 faces + 2 integers (number of blocks).
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of - Blocks Operations.
- -- -
- -
- - - - + + + + + +
To produce + a Multi Transformation operation + in the Main Menu select Operations - + > Blocks - > Multi Transformation
+ ++ +
This operation makes several translations of + a block (solid) in one or two directions depending on the arguments + specified by the user.
+ +The + Result in both cases will be a + GEOM_Object.
+ ++ +
Simple Multi + Transformation (in one direction).
+ +TUI + Command: geompy. + MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), where + Block is a block to be transformed, DirFaceID1 is an ID of the face which defines the first + direction of transformation, + DirFaceID2 is an ID of the face + which defines the second direction of transformation, + NbTimes is a number of transformations.
+ +Arguments: Name + + 1 hexahedral solid + 1 or 2 faces + 1 integer (number of blocks).
+ ++ +
+ +
Double + Multi Transformation (in two directions).
+ +TUI + Command: geompy. + MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, + DirFaceID2V, NbTimesV), where Block + is a block to be transformed, DirFaceID1U and DirFaceID2U are IDs of the + faces, which define directions of the first transformation, DirFaceID1V + and DirFaceID2V are ID’s of the faces which define directions of the second + transformation, NbTimesU and NbTimesV are numbers of transformations.
+ +Arguments: Name + + 1 hexahedral solid + 2, 3 or 4 faces + 2 integers (number of blocks).
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of + Blocks Operations.
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/multi_translation.htm b/doc/salome/gui/GEOM/multi_translation.htm index 95312679d..05449ca5a 100755 --- a/doc/salome/gui/GEOM/multi_translation.htm +++ b/doc/salome/gui/GEOM/multi_translation.htm @@ -1,181 +1,197 @@ - - - - - -
To produce - a Multi Translation in the Main - Menu select Operations - > Transformation - - > Multi Translation
- -- -
This operation - makes several translations of a shape in one - or two directions.
- -The - Result will be one or several - GEOM_Objects (compound).
- -- -
To produce a Simple - Multi Translation (in one direction) you need to indicate a Shape to be translated, a Vector - of translation, a Step of translation - and a Number of Times the shape - must be moved.
- -TUI Command: - geompy.MakeMultiTranslation1D(Shape, - Dir, Step, NbTimes)
- -Arguments: - Name + 1 shape + 1 vector (for direction) + 1 step value + - 1 value (repetition).
- -- -
- -
To produce a Double - Multi Translation (in two directions) you need to indicate a Shape to be translated and a Vector - of translation, a Step of translation - and a Number of Times the shape - must be moved along each axis.
- -- -
TUI Command: geompy.MakeMultiTranslation2D(Shape, Dir1, - Step1, NbTimes1, Dir2, Step2, NbTimes2), where Shape - is a shape to be translated, Dir1 - is the first direction of translation, Step1 - of the first translation, NbTimes1 - is a number of translations to be done along Dir1, - Dir2 is the second direction - of translation, Step2 of the - second translation, NbTimes2 - is a number of translations to be done along Dir2.
- -Arguments: - Name + 1 shape + 2 vectors defining the direction + 2 step - values + 2 values (repetitions).
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Multi Translation in the Main + Menu select Operations - > Transformation + - > Multi Translation
+ ++ +
This operation + makes several translations of a shape in one + or two directions.
+ +The + Result will be one or several + GEOM_Objects (compound).
+ ++ +
To produce a Simple + Multi Translation (in one direction) you need to indicate a Shape to be translated, a Vector + of translation, a Step of translation + and a Number of Times the shape + must be moved.
+ +TUI Command: + geompy.MakeMultiTranslation1D(Shape, + Dir, Step, NbTimes)
+ +Arguments: + Name + 1 shape + 1 vector (for direction) + 1 step value + + 1 value (repetition).
+ ++ +
+ +
To produce a + Double Multi + Translation (in two directions) + you need to indicate a Shape to be translated and a Vector of translation, a Step of translation and a Number + of Times the shape must be moved + along each axis.
+ ++ +
TUI Command: + geompy.MakeMultiTranslation2D(Shape, Dir1, + Step1, NbTimes1, Dir2, Step2, NbTimes2), where Shape + is a shape to be translated, Dir1 + is the first direction of translation, Step1 + of the first translation, NbTimes1 + is a number of translations to be done along Dir1, + Dir2 is the second direction + of translation, Step2 of the + second translation, NbTimes2 + is a number of translations to be done along Dir2.
+ +Arguments: + Name + 1 shape + 2 vectors defining the direction + 2 step + values + 2 values (repetitions).
+ ++ +
+ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/newentity_blocks.htm b/doc/salome/gui/GEOM/newentity_blocks.htm index f1ea5806a..1fcbf4c89 100755 --- a/doc/salome/gui/GEOM/newentity_blocks.htm +++ b/doc/salome/gui/GEOM/newentity_blocks.htm @@ -1,326 +1,340 @@ - - - - - -
Introduction.
- -- -
Below are some general notions about blocks:
- -- -
A block is a an elementary geometric solid that
- has specific geometric constraints oriented for meshing. In the hexahedral
- case, blocks have 6 faces and each face has 4 edges.
- -
Tetrahedral Block - is a block with constraints for tetrahedral meshing. -
- -- -
Hexahedral Block - is a block with constraints for hexahedral meshing.
- -- -
Block Compound - is a compound composed of blocks only.
- -- -
These functionalities are available from the main menu via New - Entity / Blocks.
- -- -
- -
- - - -
- -
Description: - Builds a face using the below mentioned arguments. This operation allows - to build a face bypassing the intermediate stage of building edges and - wires (in the case of building by 4 points) or wires (in the case of building - by 4 or 2 edges).
- -- -
The Result of - the operation will be a GEOM_Object (face).
- -- -
TUI Command:
- -geompy.MakeQuad4Vertices(V1, - V2, V3, V4), where V1, V2, V3, V4 are - four vertices from which a face is constructed. Edges are created automatically.
geompy.MakeQuad2Edges(E1, - E2), where E1, E2 are edges from which the face is constructed, - two other edges are created automatically.
geompy.MakeQuad(E1, E2, E3, E4), - where E1, E2, E3, E4 are four edges from which the face is constructed.
- -
Arguments: -
- -Name + 4 Points, or
Name + 2 Edges, or
Name + 4 Edges.
- -
Dialog Box:
- -
- |
-
- |
-
- |
- -
- -
Example:
- -- -
- -
- - - -
- -
Description: - Builds a hexahedral solid. either of the below mentioned arguments. This - operation allows to build a solid bypassing the intermediate stage of - building a shell and 4 faces (in the case of building by 2 faces) or just - a shell (in the case of building by 6 faces).
- -- -
The - Result of the operation will be a - GEOM_Object (solid).
- -- -
TUI Command:
- -geompy.MakeHexa2Faces(F1, - F2), where F1 and F2 are faces - from which the hexahedron is constructed, other four faces are created - automatically.
geompy.MakeHexa(F1, - F2, F3, F4, F5, F6), where F1 – F6 are six faces from which the - hexahedron is constructed.
- -
Arguments: -
- -Name + 2 Faces, or
Name + 6 Faces.
- -
Dialog Box:
- -- -
- |
-
- |
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of Building - by Blocks.
- -- - - - + + + + + +
Introduction.
+ ++ +
Below are some general notions about blocks:
+ ++ +
A block is a an elementary geometric solid that
+ has specific geometric constraints oriented for meshing. In the hexahedral
+ case, blocks have 6 faces and each face has 4 edges.
+ +
Tetrahedral Block - is a block with constraints for tetrahedral meshing. +
+ ++ +
Hexahedral Block - is a block with constraints for hexahedral meshing.
+ ++ +
Block Compound - is a compound composed of blocks only.
+ ++ +
These functionalities are available from the main menu via New + Entity / Blocks.
+ ++ +
+ +
+ + + +
+ +
Description: + Builds a face using the below mentioned arguments. This operation allows + to build a face bypassing the intermediate stage of building edges and + wires (in the case of building by 4 points) or wires (in the case of building + by 4 or 2 edges).
+ ++ +
The Result of + the operation will be a GEOM_Object (face).
+ ++ +
TUI Command:
+ +geompy.MakeQuad4Vertices(V1, + V2, V3, V4), where V1, V2, V3, V4 are + four vertices from which a face is constructed. Edges are created automatically.
geompy.MakeQuad2Edges(E1, + E2), where E1, E2 are edges from which the face is constructed, + two other edges are created automatically.
geompy.MakeQuad(E1, E2, E3, E4), + where E1, E2, E3, E4 are four edges from which the face is constructed.
+ +
Arguments: +
+ +Name + 4 Points, or
Name + 2 Edges, or
Name + 4 Edges.
+ +
Dialog Box:
+ +
+ |
+
+ |
+
+ |
+ +
+ +
Example:
+ ++ +
+ +
+ + + +
+ +
Description: + Builds a hexahedral solid. either of the below mentioned arguments. This + operation allows to build a solid bypassing the intermediate stage of + building a shell and 4 faces (in the case of building by 2 faces) or just + a shell (in the case of building by 6 faces).
+ ++ +
The + Result of the operation will be a + GEOM_Object (solid).
+ ++ +
TUI Command:
+ +geompy.MakeHexa2Faces(F1, + F2), where F1 and F2 are faces + from which the hexahedron is constructed, other four faces are created + automatically.
geompy.MakeHexa(F1, + F2, F3, F4, F5, F6), where F1 – F6 are six faces from which the + hexahedron is constructed.
+ +
Arguments: +
+ +Name + 2 Faces, or
Name + 6 Faces.
+ +
Dialog Box:
+ ++ +
+ |
+
+ |
+
|
+
+
|
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of Building + by Blocks.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/occ_viewer.htm b/doc/salome/gui/GEOM/occ_viewer.htm index 171561038..6e9bd37c2 100755 --- a/doc/salome/gui/GEOM/occ_viewer.htm +++ b/doc/salome/gui/GEOM/occ_viewer.htm @@ -1,206 +1,206 @@ - - - - - -
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.
-
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.
- - - - + + + + + +
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.
+
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.
+ + + + diff --git a/doc/salome/gui/GEOM/offset_surface.htm b/doc/salome/gui/GEOM/offset_surface.htm index 204a067b7..776c23f69 100755 --- a/doc/salome/gui/GEOM/offset_surface.htm +++ b/doc/salome/gui/GEOM/offset_surface.htm @@ -1,146 +1,151 @@ - - - - - -
To produce - an Offset Surface in the Main - Menu select Operations - > Transformation - - > Offset Surface
- -- -
This operation - translates each point of an Object - (a set of Objects) along a local normal by a given Offset - distance (signed number, negative value meaning inner offset). Offset - operation is applicable to faces, shells and solids.
- -The - Result will be a GEOM_Object -
- -TUI - Command: geompy.MakeOffset(Shape, - Offset), where Shape is a shape which has to be an offset, Offset - is a value of the offset.
- -Arguments: Name + Object (face, shell, solid, compound) - + Offset value
- -- -
- -
Example:
- -- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + an Offset Surface in the Main + Menu select Operations - > Transformation + - > Offset Surface
+ ++ +
This operation + translates each point of an Object + (a set of Objects) along a local normal by a given Offset + distance (signed number, negative value meaning inner offset). Offset + operation is applicable to faces, shells and solids.
+ +The + Result will be a GEOM_Object +
+ +TUI + Command: geompy.MakeOffset(Shape, + Offset), where Shape is a shape which has to be an offset, Offset + is a value of the offset.
+ +Arguments: Name + Object (face, shell, solid, compound) + + Offset value
+ ++ +
+ +
Example:
+ ++ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/partition.htm b/doc/salome/gui/GEOM/partition.htm index 49cd51c2c..5ccff637c 100755 --- a/doc/salome/gui/GEOM/partition.htm +++ b/doc/salome/gui/GEOM/partition.htm @@ -1,175 +1,181 @@ - - - - - -
To produce - a Partition in the Main Menu select - Operations - > Partition
- -- -
This - operation builds a shape by intersection of two shapes or a shape - and a plane.
- -The - Result will be any GEOM_Object.
- -- -
Intersection - of two shapes.
- -- -
TUI Command: - geompy.MakePartition(ListOfShapes, - ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, - ListOfMaterials), where ListOfShapes is a list of shapes to be - intersected, ListOfTools is a list of shapes to intersect the shapes from - ListOfShapes, ListOfKeepInside is a list of shapes outside which the results - will be deleted, ListOfRemoveInside is a list of shapes inside which the - results will be deleted, Limit is a type of the result shapes, if RemoveWebs - is True the Glue 3D algorithm will be performed on the results, ListOfMaterials - is a list of materials indices for each shape, it makes sense only if - RemoveWebs is True.
- -Arguments: - Name + 2 shapes (the first shape - will be intersected by the second shape) + reconstruction limit.
- -- -
- -
- -
- -
Intersection of a Shape - and a Plane.
- -- -
TUI Command - geompy.MakeHalfPartition(Shape, - Plane), where Shape is - a Shape to be intersected and Plane - is a Tool shape, to intersect the Shape.
- -Arguments: Name - + 1 shape which will be intersected + 1 cutting face.
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of the use of Basic Operations. -
- -- - - - + + + + + +
To produce + a Partition in the Main + Menu select Operations - > + Partition
+ ++ +
This + operation builds a shape by intersection of two shapes or a shape + and a plane.
+ +The + Result will be any GEOM_Object.
+ ++ +
Intersection + of two shapes.
+ ++ +
TUI Command: + geompy.MakePartition(ListOfShapes, + ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, + ListOfMaterials), where ListOfShapes is a list of shapes to be + intersected, ListOfTools is a list of shapes to intersect the shapes from + ListOfShapes, ListOfKeepInside is a list of shapes outside which the results + will be deleted, ListOfRemoveInside is a list of shapes inside which the + results will be deleted, Limit is a type of the result shapes, if RemoveWebs + is True the Glue 3D algorithm will be performed on the results, ListOfMaterials + is a list of materials indices for each shape, it makes sense only if + RemoveWebs is True.
+ +Arguments: + Name + 2 shapes (the first shape + will be intersected by the second shape) + reconstruction limit.
+ ++ +
+ +
+ +
+ +
Intersection of a Shape + and a Plane.
+ ++ +
TUI Command + geompy.MakeHalfPartition(Shape, + Plane), where Shape is + a Shape to be intersected and Plane + is a Tool shape, to intersect the Shape.
+ +Arguments: Name + + 1 shape which will be intersected + 1 cutting face.
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of the use of Basic Operations. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/pipe_creation.htm b/doc/salome/gui/GEOM/pipe_creation.htm index 94ae244f7..a996ddfc5 100755 --- a/doc/salome/gui/GEOM/pipe_creation.htm +++ b/doc/salome/gui/GEOM/pipe_creation.htm @@ -1,140 +1,145 @@ - - - - - -
To generate - a Pipe - in the Main Menu select New Entity - > Generation - - > Pipe
- -- -
To create an extruded Pipe shape, - you need to define the Base Object (vertex, edge, wire, face or shell), which will be extruded and the Path Object (edge, - face or shell) along which the Base Object will be extruded.
- -The - Result of the operation will be a - GEOM_Object (edge, face, solid or compsolid).
- -- -
TUI Command: - geompy.MakePipe(baseShape, pathShape) -
- -Arguments: - Name + 1 shape (vertex, edge, wire, face or shell) serving as base object - + 1 shape (edge, face or shell) for definition of the path.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Complex Geometric - Objects.
- -- -
- -
- - - - + + + + + +
To generate + a Pipe + in the Main Menu select New Entity - > Generation - + > Pipe
+ ++ +
To create an extruded Pipe shape, + you need to define the Base Object (vertex, edge, wire, face or shell), which will be extruded and the Path Object (edge, + face or shell) along which the Base Object will be extruded.
+ +The + Result of the operation will be a + GEOM_Object (edge, face, solid or compsolid).
+ ++ +
TUI Command: + geompy.MakePipe(baseShape, pathShape) +
+ +Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 shape (edge, face or shell) for definition of the path.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Complex Geometric + Objects.
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/plane.htm b/doc/salome/gui/GEOM/plane.htm index 776c520f2..d858d3ec8 100755 --- a/doc/salome/gui/GEOM/plane.htm +++ b/doc/salome/gui/GEOM/plane.htm @@ -1,198 +1,205 @@ - - - - - -
To create a Plane in the Main Menu select New - Entity - > Basic - > Plane
- -- -
There are three algorithms to create - a point in the 3D space.
- -The Result of - each operation will be a GEOM_Object - (face).
- -- -
Firstly, you can define a Plane - by a Point through which the - plane passes, a Vector giving - a normal of the plane and a Size of the - Plane (size of a side of quadrangle face, representing the plane).
- -TUI - Command: geompy.MakePlane(Point, - Vector, TrimSize)
- -Arguments: Name - + 1 vertex + 1 vector + - 1 value (to define the size of the plane).
- -- -
Secondly, you can define a Plane - by three Points through which - the plane - passes.
- -TUI - Command: geompy.MakePlaneThreePnt(Point1, - Point2, Point3, TrimSize)
- -Arguments: - Name + 3 points + 1 value (to define - the size of the plane).
- -- -
- -
Finally, you can define a Plane, - similar to the existing one, but with another size of representing face. -
- -TUI - Command: geompy.MakePlaneFace(Face, TrimSize)
- -Arguments: Name - + 1 face + 1 value (to define the size of the plane).
- -- -
- -
Examples:
- -- -
Planes - A - Plane created on a Plane of another size
- -- -
- |
-
- |
-
-
|
- -
Our TUI Scripts provide you with useful examples - of creation of Basic - Geometric Objects.
- -- - - - + + + + + +
To create a Plane in the Main Menu select New + Entity - > Basic - > Plane
+ ++ +
There are three algorithms to create + a point in the 3D space.
+ +The Result of + each operation will be a GEOM_Object + (face).
+ ++ +
Firstly, you can define a Plane + by a Point through which the + plane passes, a Vector giving + a normal of the plane and a Size of the + Plane (size of a side of quadrangle face, representing the plane).
+ +TUI + Command: geompy.MakePlane(Point, + Vector, TrimSize)
+ +Arguments: Name + + 1 vertex + 1 vector + + 1 value (to define the size of the plane).
+ ++ +
Secondly, you can define a Plane + by three Points through which + the plane + passes.
+ +TUI + Command: geompy.MakePlaneThreePnt(Point1, + Point2, Point3, TrimSize)
+ +Arguments: + Name + 3 vertices + 1 value (to + define the size of the plane).
+ ++ +
+ +
Finally, you can define a Plane, + similar to the existing one, but with another size of representing face. +
+ +TUI + Command: geompy.MakePlaneFace(Face, TrimSize)
+ +Arguments: Name + + 1 face + 1 value (to define the size of the plane).
+ ++ +
+ +
Examples:
+ ++ +
Planes + A + Plane created on a Plane of another size
+ ++ +
+ |
+
+ |
+
+
|
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/point.htm b/doc/salome/gui/GEOM/point.htm index 87bd221ae..6400c2995 100755 --- a/doc/salome/gui/GEOM/point.htm +++ b/doc/salome/gui/GEOM/point.htm @@ -1,193 +1,201 @@ - - - - - -
To create a Point in the Main Menu select New - Entity - > Basic - > Point
- -- -
There are three algorithms to create - a Point in the 3D space.
- -Each - time the Result of the operation - will be a GEOM_Object (vertex).
- -- -
Firstly, - we can define a point by setting its X, Y and Z Coordinates. -
- -TUI Command : - geompy.MakeVertex(X, - Y, Z)
- -Arguments: Name - (Vertex_n by default) + - X, Y and Z coordinates of the point.
- -- -
- -
Secondly, we - can define a point by a Reference - to another point and the shift of the coordinates of the new point regarding - the coordinates of the old one.
- -TUI Command : - geompy.MakeVertexWithRef(Reference, - X, Y, Z).
- -Arguments: Name - + 1 reference point + 3 coordinates defining the position of this point - regarding the reference one.
- -- -
- -
Finally, we can define a - point by an Edge and a Parameter - indicating - its position on the Edge. For example, 0.5 means that the point is located - in the middle of the edge.
- -TUI - Command : geompy.MakeVertexOnCurve(Edge, - Parameter).
- -Arguments: Name - + 1 edge + - 1 Parameter defining the position of the point on the given edge.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of creation of Basic - Geometric Objects.
- - - - + + + + + +To create a Point in the Main Menu select New + Entity - > Basic - > Point
+ ++ +
There are three algorithms to create + a Point in the 3D space.
+ +Each + time the Result of the operation + will be a GEOM_Object (vertex).
+ ++ +
Firstly, + we can define a point by setting its X, Y and Z Coordinates. +
+ +TUI Command : + geompy.MakeVertex(X, + Y, Z)
+ +Arguments: Name + (Vertex_n by default) + + X, Y and Z coordinates of the point.
+ ++ +
+ +
Secondly, we + can define a point by a Reference + to another point and the shift of the coordinates of the new point regarding + the coordinates of the old one.
+ +TUI Command : + geompy.MakeVertexWithRef(Reference, + X, Y, Z).
+ +Arguments: Name + + 1 reference point + 3 coordinates defining the position of this point + regarding the reference one.
+ ++ +
+ +
Finally, we can define a + point by an Edge and a Parameter + indicating + its position on the Edge. For example, 0.5 means that the point is located + in the middle of the edge.
+ +TUI + Command : geompy.MakeVertexOnCurve(Edge, + Parameter).
+ +Arguments: Name + + 1 edge + + 1 Parameter defining the position of the point on the given edge.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Basic + Geometric Objects.
+ + + + diff --git a/doc/salome/gui/GEOM/primitives.htm b/doc/salome/gui/GEOM/primitives.htm index 5fc9c0a8b..994a17337 100755 --- a/doc/salome/gui/GEOM/primitives.htm +++ b/doc/salome/gui/GEOM/primitives.htm @@ -1,362 +1,367 @@ - - - - - -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p0 = geompy.MakeVertex(15, - 25, 35)
- -p70 = geompy.MakeVertex(70, - 70, 70)
- -- -
# create boxes
- -box1 = geompy.MakeBoxDXDYDZ(10, - 20, 30)
- -box2 = geompy.MakeBox(10,20,30, - 15,25,35)
- -box3 = geompy.MakeBoxTwoPnt(p0, - p70)
- -- -
# add objects in the study
- -id_box1 = geompy.addToStudy(box1,"Box1")
- -id_box2 = geompy.addToStudy(box2,"Box2")
- -id_box3 = geompy.addToStudy(box3,"Box3")
- -- -
# display the boxes
- -gg.createAndDisplayGO(id_box1)
- -gg.setDisplayMode(id_box1,1)
- -gg.createAndDisplayGO(id_box2)
- -gg.setDisplayMode(id_box2,1)
- -gg.createAndDisplayGO(id_box3)
- -gg.setDisplayMode(id_box3,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(35, - 35, 0)
- -p2 = geompy.MakeVertex(35, - 35, 70)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create cones
- -cone1 = geompy.MakeCone(p1, - v, 17, 1, 20)
- -cone2 = geompy.MakeConeR1R2H(30, - 10, 30)
- -- -
# add objects in the study
- -id_cone1 = geompy.addToStudy(cone1,"Cone1")
- -id_cone2 = geompy.addToStudy(cone2,"Cone2")
- -- -
# display cones
- -gg.createAndDisplayGO(id_cone1)
- -gg.setDisplayMode(id_cone1,1)
- -gg.createAndDisplayGO(id_cone2)
- -gg.setDisplayMode(id_cone2,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex
- -p = geompy.MakeVertex(55, - 45, 25)
- -- -
# create spheres
- -radius1 = 20
- -sphere1 = geompy.MakeSpherePntR(p, - radius1)
- -radius2 = 15
- -sphere2 = geompy.MakeSphere(0, - 0, 45, radius2)
- -radius3 = 30
- -sphere3 = geompy.MakeSphereR(radius3)
- -- -
# add objects in the study
- -id_sphere1 = geompy.addToStudy(sphere1,"Sphere1")
- -id_sphere2 = geompy.addToStudy(sphere2,"Sphere2")
- -id_sphere3 = geompy.addToStudy(sphere3,"Sphere3")
- -- -
# display spheres
- -gg.createAndDisplayGO(id_sphere1)
- -gg.setDisplayMode(id_sphere1,1)
- -gg.createAndDisplayGO(id_sphere2)
- -gg.setDisplayMode(id_sphere2,1)
- -gg.createAndDisplayGO(id_sphere3)
- -gg.setDisplayMode(id_sphere3,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(35, - 40, 45)
- -p2 = geompy.MakeVertex(35, - 45, 70)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create toruses
- -torus1 = geompy.MakeTorus(p1, - v, 20, 10)
- -torus2 = geompy.MakeTorusRR(30, - 15)
- -- -
# add objects in the study
- -id_torus1 = geompy.addToStudy(torus1,"Torus1")
- -id_torus2 = geompy.addToStudy(torus2,"Torus2")
- -- -
# display toruses
- -gg.createAndDisplayGO(id_torus1)
- -gg.setDisplayMode(id_torus1,1)
- -gg.createAndDisplayGO(id_torus2)
- -gg.setDisplayMode(id_torus2,1) -
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(35, - 35, 0)
- -p2 = geompy.MakeVertex(35, - 35, 70)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create cones
- -cone1 = geompy.MakeCone(p1, - v, 17, 1, 20)
- -cone2 = geompy.MakeConeR1R2H(30, - 10, 30)
- -- -
# add objects in the study
- -id_cone1 = geompy.addToStudy(cone1,"Cone1")
- -id_cone2 = geompy.addToStudy(cone2,"Cone2")
- -- -
# display cones
- -gg.createAndDisplayGO(id_cone1)
- -gg.setDisplayMode(id_cone1,1)
- -gg.createAndDisplayGO(id_cone2)
- -gg.setDisplayMode(id_cone2,1) -
- - - - + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p0 = geompy.MakeVertex(15, + 25, 35)
+ +p70 = geompy.MakeVertex(70, + 70, 70)
+ ++ +
# create boxes
+ +box1 = geompy.MakeBoxDXDYDZ(10, + 20, 30)
+ +box2 = geompy.MakeBox(10,20,30, + 15,25,35)
+ +box3 = geompy.MakeBoxTwoPnt(p0, + p70)
+ ++ +
# add objects in the study
+ +id_box1 = geompy.addToStudy(box1,"Box1")
+ +id_box2 = geompy.addToStudy(box2,"Box2")
+ +id_box3 = geompy.addToStudy(box3,"Box3")
+ ++ +
# display the boxes
+ +gg.createAndDisplayGO(id_box1)
+ +gg.setDisplayMode(id_box1,1)
+ +gg.createAndDisplayGO(id_box2)
+ +gg.setDisplayMode(id_box2,1)
+ +gg.createAndDisplayGO(id_box3)
+ +gg.setDisplayMode(id_box3,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(35, + 35, 0)
+ +p2 = geompy.MakeVertex(35, + 35, 70)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cones
+ +cone1 = geompy.MakeCone(p1, + v, 17, 1, 20)
+ +cone2 = geompy.MakeConeR1R2H(30, + 10, 30)
+ ++ +
# add objects in the study
+ +id_cone1 = geompy.addToStudy(cone1,"Cone1")
+ +id_cone2 = geompy.addToStudy(cone2,"Cone2")
+ ++ +
# display cones
+ +gg.createAndDisplayGO(id_cone1)
+ +gg.setDisplayMode(id_cone1,1)
+ +gg.createAndDisplayGO(id_cone2)
+ +gg.setDisplayMode(id_cone2,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex
+ +p = geompy.MakeVertex(55, + 45, 25)
+ ++ +
# create spheres
+ +radius1 = 20
+ +sphere1 = geompy.MakeSpherePntR(p, + radius1)
+ +radius2 = 15
+ +sphere2 = geompy.MakeSphere(0, + 0, 45, radius2)
+ +radius3 = 30
+ +sphere3 = geompy.MakeSphereR(radius3)
+ ++ +
# add objects in the study
+ +id_sphere1 = geompy.addToStudy(sphere1,"Sphere1")
+ +id_sphere2 = geompy.addToStudy(sphere2,"Sphere2")
+ +id_sphere3 = geompy.addToStudy(sphere3,"Sphere3")
+ ++ +
# display spheres
+ +gg.createAndDisplayGO(id_sphere1)
+ +gg.setDisplayMode(id_sphere1,1)
+ +gg.createAndDisplayGO(id_sphere2)
+ +gg.setDisplayMode(id_sphere2,1)
+ +gg.createAndDisplayGO(id_sphere3)
+ +gg.setDisplayMode(id_sphere3,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(35, + 40, 45)
+ +p2 = geompy.MakeVertex(35, + 45, 70)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create toruses
+ +torus1 = geompy.MakeTorus(p1, + v, 20, 10)
+ +torus2 = geompy.MakeTorusRR(30, + 15)
+ ++ +
# add objects in the study
+ +id_torus1 = geompy.addToStudy(torus1,"Torus1")
+ +id_torus2 = geompy.addToStudy(torus2,"Torus2")
+ ++ +
# display toruses
+ +gg.createAndDisplayGO(id_torus1)
+ +gg.setDisplayMode(id_torus1,1)
+ +gg.createAndDisplayGO(id_torus2)
+ +gg.setDisplayMode(id_torus2,1) +
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(35, + 35, 0)
+ +p2 = geompy.MakeVertex(35, + 35, 70)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create cones
+ +cone1 = geompy.MakeCone(p1, + v, 17, 1, 20)
+ +cone2 = geompy.MakeConeR1R2H(30, + 10, 30)
+ ++ +
# add objects in the study
+ +id_cone1 = geompy.addToStudy(cone1,"Cone1")
+ +id_cone2 = geompy.addToStudy(cone2,"Cone2")
+ ++ +
# display cones
+ +gg.createAndDisplayGO(id_cone1)
+ +gg.setDisplayMode(id_cone1,1)
+ +gg.createAndDisplayGO(id_cone2)
+ +gg.setDisplayMode(id_cone2,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/propagate.htm b/doc/salome/gui/GEOM/propagate.htm index 9fd1dd1be..fc07f3be3 100755 --- a/doc/salome/gui/GEOM/propagate.htm +++ b/doc/salome/gui/GEOM/propagate.htm @@ -1,149 +1,154 @@ - - - - - -To produce - a Propagate operation in the Main - Menu select Operations - > Blocks - - > Propagate
- -- -
This operation breaks a multitude of edges - of a shape into groups (builds all possible propagation groups).
- -The - Result will be a List of - GEOM_Objects. Each Geom Object will contain a group of edges.
- -- -
TUI Command: - geompy.Propagate(Shape), - where Shape is a shape to build propagation groups on.
- -Arguments: 1 Shape.
- -- -
- -
Example:
- -- -
- -
Our TUI - Scripts provide you with useful examples - of the use of Blocks - Operations.
- -- - - - + + + + + +
To produce + a Propagate operation in the Main + Menu select Operations - > Blocks + - > Propagate
+ ++ +
This operation breaks a multitude of edges + of a shape into groups (builds all possible propagation groups).
+ +The + Result will be a List of + GEOM_Objects. Each Geom Object will contain a group of edges.
+ ++ +
TUI Command: + geompy.Propagate(Shape), + where Shape is a shape to build propagation groups on.
+ +Arguments: 1 Shape.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI + Scripts provide you with useful examples + of the use of Blocks + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/repairing_operations.htm b/doc/salome/gui/GEOM/repairing_operations.htm index 9aa4cb0f5..60a5c824b 100755 --- a/doc/salome/gui/GEOM/repairing_operations.htm +++ b/doc/salome/gui/GEOM/repairing_operations.htm @@ -1,1055 +1,1058 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices, an edge, an arc, a wire, a face and a prism
- -p1 = geompy.MakeVertex(0,0,0)
- -p2 = geompy.MakeVertex(200,0,0)
- -p3 = geompy.MakeVertex(100,150,0)
- -edge = geompy.MakeEdge(p1,p2)
- -arc = - geompy.MakeArc(p1,p3,p2)
- -wire = geompy.MakeWire([edge,arc])
- -face = geompy.MakeFace(wire, - 1)
- -theShape = geompy.MakePrismVecH(face, - edge, 130)
- -- -
# check the shape at the beginning
- -print "Before - ProcessShape:"
- -isValid = geompy.CheckShape(theShape)
- -if isValid == 0:
- -print - "The shape is not valid"
- -else:
- -print - "The shape seems to be valid"
- -- -
# process the Shape
- -Operators = ["FixShape"]
- -Parameters = ["FixShape.Tolerance3d"]
- -Values = ["1e-7"]
- -PS = geompy.ProcessShape(theShape, - Operators, Parameters, Values)
- -- -
# check the shape at the end
- -print "After - ProcessShape:"
- -isValid = geompy.CheckShape(PS)
- -if isValid == 0:
- -print - "The shape is not valid"
- -raise - RuntimeError, "It seems, that the ProcessShape() has failed"
- -else:
- -print - "The shape seems to be valid"
- -- -
# add in the study and display
- -Id_Shape = geompy.addToStudy(theShape, - "Invalid Shape")
- -Id_PS = - geompy.addToStudy(PS, "Processed Shape")
- -gg.createAndDisplayGO(Id_Shape)
- -gg.setDisplayMode(Id_Shape,1)
- -gg.createAndDisplayGO(Id_PS)
- -gg.setDisplayMode(Id_PS,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(200, - 200, 200)
- -- -
# The list of IDs (IDList) for suppress faces
- -sup_faces = []
- -sup_faces = geompy.SubShapeAllSorted(box, - geompy.ShapeType["FACE"])
- -- -
# get indices of the sub-shape
- -f1_id = geompy.GetSubShapeID(box, - sup_faces[3])
- -- -
# remove faces from the given object (shape)
- -result = geompy.SuppressFaces(box, - [f1_id])
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box, - "Box")
- -id_result = geompy.addToStudy(result, - "Result")
- -- -
# display the results
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_result)
- -gg.setDisplayMode(id_result,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices and vectors
- -p0 = - geompy.MakeVertex( 0., - 0., - 0.)
- -px = - geompy.MakeVertex(100., 0., - 0.)
- -py = - geompy.MakeVertex( 0., - 100., 0.)
- -py1 = geompy.MakeVertex( - 0., 140., - 0.)
- -pz = - geompy.MakeVertex( 0., - 0., - 100.)
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc
- -arc = geompy.MakeArc(py1, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# close an open wire by creation of an edge between ends
- -wire_close = geompy.CloseContour(wire, - [1], 0)
- -- -
# add objects in the study
- -id_wire = geompy.addToStudy(wire, - "Wire")
- -id_wire_close = geompy.addToStudy(wire_close, - "Wire close")
- -- -
# display the results
- -gg.createAndDisplayGO(id_wire)
- -gg.createAndDisplayGO(id_wire_close) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(55, - 65, 50)
- -p2 = geompy.MakeVertex(55, - 0, 50)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 100
- -radius1 = 40
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(100, - 100, 100)
- -- -
# make a cut
- -cut = geompy.MakeCut(box, - cylinder)
- -- -
# suppress all internal wires
- -result = geompy.SuppressInternalWires(cut, - [])
- -- -
# add objects in the study
- -id_cut = geompy.addToStudy(cut, - "Cut")
- -id_result = geompy.addToStudy(result, - "Result")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cut)
- -gg.setDisplayMode(id_cut,1)
- -gg.createAndDisplayGO(id_result)
- -gg.setDisplayMode(id_result,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(35, - 35, 0)
- -p2 = geompy.MakeVertex(35, - 35, 50)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 20
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create a cone
- -cone = geompy.MakeCone(p1, - v, 70, 0, 80)
- -- -
# make a cut
- -cut = geompy.MakeCut(cone, - cylinder)
- -- -
# get faces as sub-shapes
- -faces = []
- -faces = geompy.SubShapeAllSorted(cut, - geompy.ShapeType["FACE"])
- -f_2 = geompy.GetSubShapeID(cut, - faces[2])
- -- -
# remove one face from the shape
- -cut_without_f_2 = - geompy.SuppressFaces(cut, [f_2])
- -- -
# get wires as sub-shapes
- -wires = []
- -wires = geompy.SubShapeAllSorted(cut_without_f_2, - geompy.ShapeType["WIRE"])
- -w_0 = geompy.GetSubShapeID(cut_without_f_2, - wires[0])
- -- -
# suppress the selected wire
- -result = geompy.SuppressHoles(cut_without_f_2, - [w_0])
- -- -
# add objects in the study
- -id_cut = geompy.addToStudy(cut, - "Cut")
- -id_cut_without_f_2 - = geompy.addToStudy(cut_without_f_2, "Cut without f_2")
- -id_result = geompy.addToStudy(result, - "Result")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cut)
- -gg.setDisplayMode(id_cut,1)
- -gg.createAndDisplayGO(id_cut_without_f_2)
- -gg.setDisplayMode(id_cut_without_f_2,1)
- -gg.createAndDisplayGO(id_result)
- -gg.setDisplayMode(id_result,1) -
- -- -
import geompy
- -import salome
- -import math
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create base points
- -px = geompy.MakeVertex(100., - 0., 0.)
- -py = geompy.MakeVertex(0., - 100., 0.)
- -pz = geompy.MakeVertex(0., - 0., 100.)
- -- -
# create base geometry 2D & 3D
- -vector = geompy.MakeVector(px, - py)
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create base objects
- -angle = 45. * math.pi - / 180
- -WantPlanarFace = 1 - #True
- -wire = geompy.MakeWire([vector, - arc])
- -face = geompy.MakeFace(wire, - WantPlanarFace)
- -face_rot = geompy.MakeRotation(face, - vector, angle)
- -- -
# make sewing
- -precision = 0.00001
- -sewing = geompy.MakeSewing([face, - face_rot], precision)
- -- -
# add objects in the study
- -id_face = geompy.addToStudy(face, - "Face")
- -id_face_rot = geompy.addToStudy(face_rot, - "Face rotation")
- -id_sewing = geompy.addToStudy(sewing, - "Sewing")
- -- -
# display the results
- -gg.createAndDisplayGO(id_face)
- -gg.setDisplayMode(id_face,1)
- -gg.createAndDisplayGO(id_face_rot)
- -gg.setDisplayMode(id_face_rot,1)
- -gg.createAndDisplayGO(id_sewing)
- -gg.setDisplayMode(id_sewing,1) -
- -- -
import - geompy
- -import salome
- -- -
gg = salome.ImportComponentGUI("GEOM")
- -- -
# create boxes
- -box1 = geompy.MakeBox(0,0,0,100,50,100)
- -box2 =
- -geompy.MakeBox(100,0,0,250,50,100)
- -- -
# make compound
- -compound = geompy.MakeCompound([box1, - box2])
- -- -
# glue compound's faces
- -tolerance = 1e-5
- -glue = geompy.MakeGlueFaces(compound, - tolerance)
- -- -
# add objects in study
- -id_box1 = geompy.addToStudy(box1, - "Box1")
- -id_box2 = geompy.addToStudy(box2, - "Box2")
- -id_compound = geompy.addToStudy(compound, - "Compound")
- -id_glue = geompy.addToStudy(glue, - "Glue faces")
- -- -
# display results
- -gg.createAndDisplayGO(id_box1)
- -gg.setDisplayMode(id_box1,1)
- -gg.createAndDisplayGO(id_box2)
- -gg.setDisplayMode(id_box2,1)
- -gg.createAndDisplayGO(id_compound)
- -gg.setDisplayMode(id_compound,1)
- -gg.createAndDisplayGO(id_glue)
- -gg.setDisplayMode(id_glue,1) -
- -- -
import - geompy
- -import salome
- -- -
# create vertices
- -p1 = geompy.MakeVertex(0,0,50)
- -p2 = geompy.MakeVertex(60,0,50)
- -- -
# make an edge
- -edge = geompy.MakeEdge(p1, - p2) #geompy.GetSubShape(box, edge_ind)
- -- -
# divide an edge
- -divide = geompy.DivideEdge(edge, - -1, 0.5, 0)
- -- -
# add objects in the - study
- -id_edge = geompy.addToStudy(edge, - "Edge")
- -edge_points = geompy.SubShapeAllSorted(edge, - geompy.ShapeType["VERTEX"])
- -for point in edge_points:
- -geompy.addToStudyInFather(edge, - point, "Edge's point")
- -- -
id_divide = geompy.addToStudy(divide, - "Divided edge")
- -edge_points = geompy.SubShapeAllSorted(divide, - geompy.ShapeType["VERTEX"])
- -for point in edge_points:
- -geompy.addToStudyInFather(divide, - point, "Edge's point after divide")
- -- -
salome.sg.updateObjBrowser(1) -
- -- -
import os
- -import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create boxes
- -box1 = geompy.MakeBox(0,0,0,100,50,100)
- -box2 = geompy.MakeBox(100,0,0,250,50,100)
- -- -
# make a compound
- -compound = geompy.MakeCompound([box1, - box2])
- -- -
# import from *.brep
- -ImportBREP = geompy.ImportBREP("ImportBREP - = geompy.ImportBREP(os.getenv("DATA_DIR")+"/Shapes/Brep/flight_solid.brep")
- -- -
# get a face
- -faces = geompy.SubShapeAllSorted(ImportBREP, - geompy.ShapeType["FACE"])
- -- -
# get the free boundary - for face 32
- -Res = geompy.GetFreeBoundary(faces[32])
- -isSuccess = - Res[0]
- -ClosedWires = Res[1]
- -OpenWires = - Res[2]
- -- -
if - isSuccess == 1 :
- -print - "Checking free boudaries is OK."
- -else :
- -print - "Checking free boudaries is KO!"
- -print "len(ClosedWires) - = ", len(ClosedWires)
- -i = 0
- -for wire in ClosedWires - :
- -wire_name - = "Face 32 -> Close wires : WIRE %d"%(i+1)
- -geompy.addToStudy(ClosedWires[i], - wire_name)
- -if - i < len(ClosedWires) :
- -i - = i+ 1
- -print "len(OpenWires) - = ", len(OpenWires)
- -i = 0
- -for wire in OpenWires - :
- -wire_name - = "Face 32 -> Open wires : WIRE %d"%(i+1)
- -geompy.addToStudy(OpenWires[i], - wire_name)
- -if - i < len(OpenWires) :
- -i - = i+ 1
- -- -
# get the free boundary - for face 41
- -Res = geompy.GetFreeBoundary(faces[41])
- -isSuccess = - Res[0]
- -ClosedWires = Res[1]
- -OpenWires = - Res[2]
- -- -
if isSuccess == 1 - :
- -print - "Checking free boudaries is OK."
- -else :
- -print - "Checking free boudaries is KO!"
- -print "len(ClosedWires) - = ", len(ClosedWires)
- -i = 0
- -for wire in ClosedWires - :
- -wire_name - = "Face 41 -> Close wires : WIRE %d"%(i+1)
- -geompy.addToStudy(ClosedWires[i], - wire_name)
- -if - i < len(ClosedWires) :
- -i - = i+ 1
- -print "len(OpenWires) - = ", len(OpenWires)
- -i = 0
- -for wire in OpenWires - :
- -wire_name - = "Face 41 -> Open wires : WIRE %d"%(i+1)
- -geompy.addToStudy(OpenWires[i], - wire_name)
- -if - i < len(OpenWires) :
- -i - = i+ 1
- -- -
# add the imported object - to the study
- -id_ImportBREP = geompy.addToStudy(ImportBREP, - "ImportBREP")
- -salome.sg.updateObjBrowser(1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(35, - 35, 0)
- -p2 = geompy.MakeVertex(35, - 35, 50)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -cylinder = geompy.MakeCone(p1, - v, 30, 20, 20)
- -- -
# create a cone
- -cone = geompy.MakeCone(p1, - v, 70, 40, 60)
- -- -
# make cut
- -cut = geompy.MakeCut(cone, - cylinder)
- -- -
# get faces as sub-shapes
- -faces = []
- -faces = geompy.SubShapeAllSorted(cut, - geompy.ShapeType["FACE"])
- -f_2 = geompy.GetSubShapeID(cut, - faces[0])
- -- -
# remove one face from the shape
- -cut_without_f_2 = - geompy.SuppressFaces(cut, [f_2])
- -- -
# suppress the specified wire
- -result = geompy.GetFreeFacesIDs(cut_without_f_2)
- -print "A number - of free faces is ", len(result)
- -- -
# add objects in the study
- -all_faces = geompy.SubShapeAllSorted(cut_without_f_2, - geompy.ShapeType["FACE"])
- -for face in all_faces - :
- -sub_shape_id - = geompy.GetSubShapeID(cut_without_f_2, face)
- -if - result.count(sub_shape_id) > 0 :
- -face_name - = "Free face %d"%(sub_shape_id)
- -geompy.addToStudy(face, - face_name)
- -- -
# in this example all faces from cut_without_f_2 are free
- -id_cut_without_f_2 - = geompy.addToStudy(cut_without_f_2, "Cut without f_2")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cut_without_f_2)
- -gg.setDisplayMode(id_cut_without_f_2,1) -
- - - - + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices, an edge, an arc, a wire, a face and a prism
+ +p1 = geompy.MakeVertex(0,0,0)
+ +p2 = geompy.MakeVertex(200,0,0)
+ +p3 = geompy.MakeVertex(100,150,0)
+ +edge = geompy.MakeEdge(p1,p2)
+ +arc = + geompy.MakeArc(p1,p3,p2)
+ +wire = geompy.MakeWire([edge,arc])
+ +face = geompy.MakeFace(wire, + 1)
+ +theShape = geompy.MakePrismVecH(face, + edge, 130)
+ ++ +
# check the shape at the beginning
+ +print "Before + ProcessShape:"
+ +isValid = geompy.CheckShape(theShape)
+ +if isValid == 0:
+ +print + "The shape is not valid"
+ +else:
+ +print + "The shape seems to be valid"
+ ++ +
# process the Shape
+ +Operators = ["FixShape"]
+ +Parameters = ["FixShape.Tolerance3d"]
+ +Values = ["1e-7"]
+ +PS = geompy.ProcessShape(theShape, + Operators, Parameters, Values)
+ ++ +
# check the shape at the end
+ +print "After + ProcessShape:"
+ +isValid = geompy.CheckShape(PS)
+ +if isValid == 0:
+ +print + "The shape is not valid"
+ +raise + RuntimeError, "It seems, that the ProcessShape() has failed"
+ +else:
+ +print + "The shape seems to be valid"
+ ++ +
# add in the study and display
+ +Id_Shape = geompy.addToStudy(theShape, + "Invalid Shape")
+ +Id_PS = + geompy.addToStudy(PS, "Processed Shape")
+ +gg.createAndDisplayGO(Id_Shape)
+ +gg.setDisplayMode(Id_Shape,1)
+ +gg.createAndDisplayGO(Id_PS)
+ +gg.setDisplayMode(Id_PS,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ ++ +
# The list of IDs (IDList) for suppress faces
+ +sup_faces = []
+ +sup_faces = geompy.SubShapeAllSorted(box, + geompy.ShapeType["FACE"])
+ ++ +
# get indices of the sub-shape
+ +f1_id = geompy.GetSubShapeID(box, + sup_faces[3])
+ ++ +
# remove faces from the given object (shape)
+ +result = geompy.SuppressFaces(box, + [f1_id])
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_result = geompy.addToStudy(result, + "Result")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_result)
+ +gg.setDisplayMode(id_result,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices and vectors
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +px = + geompy.MakeVertex(100., 0., + 0.)
+ +py = + geompy.MakeVertex( 0., + 100., 0.)
+ +py1 = geompy.MakeVertex( + 0., 140., + 0.)
+ +pz = + geompy.MakeVertex( 0., + 0., + 100.)
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc
+ +arc = geompy.MakeArc(py1, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# close an open wire by creation of an edge between ends
+ +wire_close = geompy.CloseContour(wire, + [1], 0)
+ ++ +
# add objects in the study
+ +id_wire = geompy.addToStudy(wire, + "Wire")
+ +id_wire_close = geompy.addToStudy(wire_close, + "Wire close")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_wire)
+ +gg.createAndDisplayGO(id_wire_close) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(55, + 65, 50)
+ +p2 = geompy.MakeVertex(55, + 0, 50)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 100
+ +radius1 = 40
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(100, + 100, 100)
+ ++ +
# make a cut
+ +cut = geompy.MakeCut(box, + cylinder)
+ ++ +
# suppress all internal wires
+ +result = geompy.SuppressInternalWires(cut, + [])
+ ++ +
# add objects in the study
+ +id_cut = geompy.addToStudy(cut, + "Cut")
+ +id_result = geompy.addToStudy(result, + "Result")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cut)
+ +gg.setDisplayMode(id_cut,1)
+ +gg.createAndDisplayGO(id_result)
+ +gg.setDisplayMode(id_result,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(35, + 35, 0)
+ +p2 = geompy.MakeVertex(35, + 35, 50)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 20
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create a cone
+ +cone = geompy.MakeCone(p1, + v, 70, 0, 80)
+ ++ +
# make a cut
+ +cut = geompy.MakeCut(cone, + cylinder)
+ ++ +
# get faces as sub-shapes
+ +faces = []
+ +faces = geompy.SubShapeAllSorted(cut, + geompy.ShapeType["FACE"])
+ +f_2 = geompy.GetSubShapeID(cut, + faces[2])
+ ++ +
# remove one face from the shape
+ +cut_without_f_2 = + geompy.SuppressFaces(cut, [f_2])
+ ++ +
# get wires as sub-shapes
+ +wires = []
+ +wires = geompy.SubShapeAllSorted(cut_without_f_2, + geompy.ShapeType["WIRE"])
+ +w_0 = geompy.GetSubShapeID(cut_without_f_2, + wires[0])
+ ++ +
# suppress the selected wire
+ +result = geompy.SuppressHoles(cut_without_f_2, + [w_0])
+ ++ +
# add objects in the study
+ +id_cut = geompy.addToStudy(cut, + "Cut")
+ +id_cut_without_f_2 + = geompy.addToStudy(cut_without_f_2, "Cut without f_2")
+ +id_result = geompy.addToStudy(result, + "Result")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cut)
+ +gg.setDisplayMode(id_cut,1)
+ +gg.createAndDisplayGO(id_cut_without_f_2)
+ +gg.setDisplayMode(id_cut_without_f_2,1)
+ +gg.createAndDisplayGO(id_result)
+ +gg.setDisplayMode(id_result,1) +
+ ++ +
import geompy
+ +import salome
+ +import math
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create base points
+ +px = geompy.MakeVertex(100., + 0., 0.)
+ +py = geompy.MakeVertex(0., + 100., 0.)
+ +pz = geompy.MakeVertex(0., + 0., 100.)
+ ++ +
# create base geometry 2D & 3D
+ +vector = geompy.MakeVector(px, + py)
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create base objects
+ +angle = 45. * math.pi + / 180
+ +WantPlanarFace = 1 + #True
+ +wire = geompy.MakeWire([vector, + arc])
+ +face = geompy.MakeFace(wire, + WantPlanarFace)
+ +face_rot = geompy.MakeRotation(face, + vector, angle)
+ ++ +
# make sewing
+ +precision = 0.00001
+ +sewing = geompy.MakeSewing([face, + face_rot], precision)
+ ++ +
# add objects in the study
+ +id_face = geompy.addToStudy(face, + "Face")
+ +id_face_rot = geompy.addToStudy(face_rot, + "Face rotation")
+ +id_sewing = geompy.addToStudy(sewing, + "Sewing")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_face)
+ +gg.setDisplayMode(id_face,1)
+ +gg.createAndDisplayGO(id_face_rot)
+ +gg.setDisplayMode(id_face_rot,1)
+ +gg.createAndDisplayGO(id_sewing)
+ +gg.setDisplayMode(id_sewing,1) +
+ ++ +
import + geompy
+ +import salome
+ ++ +
gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create boxes
+ +box1 = geompy.MakeBox(0,0,0,100,50,100)
+ +box2 = geompy.MakeBox(100,0,0,250,50,100)
+ ++ +
# make compound
+ +compound = geompy.MakeCompound([box1, + box2])
+ ++ +
# glue compound's faces
+ +tolerance = 1e-5
+ +glue = geompy.MakeGlueFaces(compound, + tolerance)
+ ++ +
# add objects in study
+ +id_box1 = geompy.addToStudy(box1, + "Box1")
+ +id_box2 = geompy.addToStudy(box2, + "Box2")
+ +id_compound = geompy.addToStudy(compound, + "Compound")
+ +id_glue = geompy.addToStudy(glue, + "Glue faces")
+ ++ +
# display results
+ +gg.createAndDisplayGO(id_box1)
+ +gg.setDisplayMode(id_box1,1)
+ +gg.createAndDisplayGO(id_box2)
+ +gg.setDisplayMode(id_box2,1)
+ +gg.createAndDisplayGO(id_compound)
+ +gg.setDisplayMode(id_compound,1)
+ +gg.createAndDisplayGO(id_glue)
+ +gg.setDisplayMode(id_glue,1) +
+ ++ +
import + geompy
+ +import salome
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex(0,0,50)
+ +p2 = geompy.MakeVertex(60,0,50)
+ ++ +
# make an edge
+ +edge = geompy.MakeEdge(p1, + p2) #geompy.GetSubShape(box, edge_ind)
+ ++ +
# divide an edge
+ +divide = geompy.DivideEdge(edge, + -1, 0.5, 0)
+ ++ +
# add objects in the + study
+ +id_edge = geompy.addToStudy(edge, + "Edge")
+ +edge_points = geompy.SubShapeAllSorted(edge, + geompy.ShapeType["VERTEX"])
+ +for point in edge_points:
+ +geompy.addToStudyInFather(edge, + point, "Edge's point")
+ ++ +
id_divide = geompy.addToStudy(divide, + "Divided edge")
+ +edge_points = geompy.SubShapeAllSorted(divide, + geompy.ShapeType["VERTEX"])
+ +for point in edge_points:
+ +geompy.addToStudyInFather(divide, + point, "Edge's point after divide")
+ ++ +
salome.sg.updateObjBrowser(1) +
+ ++ +
import os
+ +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create boxes
+ +box1 = geompy.MakeBox(0,0,0,100,50,100)
+ +box2 = geompy.MakeBox(100,0,0,250,50,100)
+ ++ +
# make a compound
+ +compound = geompy.MakeCompound([box1, + box2])
+ ++ +
# import from *.brep
+ +ImportBREP = geompy.ImportBREP("os.getenv("DATA_DIR")+"/Shapes/Brep/flight_solid.brep")
+ ++ +
# get a face
+ +faces = geompy.SubShapeAllSorted(ImportBREP, + geompy.ShapeType["FACE"])
+ ++ +
# get the free boundary + for face 32
+ +Res = geompy.GetFreeBoundary(faces[32])
+ +isSuccess = + Res[0]
+ +ClosedWires = Res[1]
+ +OpenWires = + Res[2]
+ ++ +
if + isSuccess == 1 :
+ +print + "Checking free boudaries is OK."
+ +else :
+ +print + "Checking free boudaries is KO!"
+ +print "len(ClosedWires) + = ", len(ClosedWires)
+ +i = 0
+ +for wire in ClosedWires + :
+ +wire_name + = "Face 32 -> Close wires : WIRE %d"%(i+1)
+ +geompy.addToStudy(ClosedWires[i], + wire_name)
+ +if + i < len(ClosedWires) :
+ +i + = i+ 1
+ +print "len(OpenWires) + = ", len(OpenWires)
+ +i = 0
+ +for wire in OpenWires + :
+ +wire_name + = "Face 32 -> Open wires : WIRE %d"%(i+1)
+ +geompy.addToStudy(OpenWires[i], + wire_name)
+ +if + i < len(OpenWires) :
+ +i + = i+ 1
+ ++ +
# get the free boundary + for face 41
+ +Res = geompy.GetFreeBoundary(faces[41])
+ +isSuccess = + Res[0]
+ +ClosedWires = Res[1]
+ +OpenWires = + Res[2]
+ ++ +
if isSuccess == 1 + :
+ +print + "Checking free boudaries is OK."
+ +else :
+ +print + "Checking free boudaries is KO!"
+ +print "len(ClosedWires) + = ", len(ClosedWires)
+ +i = 0
+ +for wire in ClosedWires + :
+ +wire_name + = "Face 41 -> Close wires : WIRE %d"%(i+1)
+ +geompy.addToStudy(ClosedWires[i], + wire_name)
+ +if + i < len(ClosedWires) :
+ +i + = i+ 1
+ +print "len(OpenWires) + = ", len(OpenWires)
+ +i = 0
+ +for wire in OpenWires + :
+ +wire_name + = "Face 41 -> Open wires : WIRE %d"%(i+1)
+ +geompy.addToStudy(OpenWires[i], + wire_name)
+ +if + i < len(OpenWires) :
+ +i + = i+ 1
+ ++ +
# add the imported object + to the study
+ +id_ImportBREP = geompy.addToStudy(ImportBREP, + "ImportBREP")
+ +salome.sg.updateObjBrowser(1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(35, + 35, 0)
+ +p2 = geompy.MakeVertex(35, + 35, 50)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +cylinder = geompy.MakeCone(p1, + v, 30, 20, 20)
+ ++ +
# create a cone
+ +cone = geompy.MakeCone(p1, + v, 70, 40, 60)
+ ++ +
# make cut
+ +cut = geompy.MakeCut(cone, + cylinder)
+ ++ +
# get faces as sub-shapes
+ +faces = []
+ +faces = geompy.SubShapeAllSorted(cut, + geompy.ShapeType["FACE"])
+ +f_2 = geompy.GetSubShapeID(cut, + faces[0])
+ ++ +
# remove one face from the shape
+ +cut_without_f_2 = + geompy.SuppressFaces(cut, [f_2])
+ ++ +
# suppress the specified wire
+ +result = geompy.GetFreeFacesIDs(cut_without_f_2)
+ +print "A number + of free faces is ", len(result)
+ ++ +
# add objects in the study
+ +all_faces = geompy.SubShapeAllSorted(cut_without_f_2, + geompy.ShapeType["FACE"])
+ +for face in all_faces + :
+ +sub_shape_id + = geompy.GetSubShapeID(cut_without_f_2, face)
+ +if + result.count(sub_shape_id) > 0 :
+ +face_name + = "Free face %d"%(sub_shape_id)
+ +geompy.addToStudy(face, + face_name)
+ ++ +
# in this example all faces from cut_without_f_2 are free
+ +id_cut_without_f_2 + = geompy.addToStudy(cut_without_f_2, "Cut without f_2")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cut_without_f_2)
+ +gg.setDisplayMode(id_cut_without_f_2,1) +
+ + + + diff --git a/doc/salome/gui/GEOM/revolution.htm b/doc/salome/gui/GEOM/revolution.htm index f19dcf81a..3e0d2593d 100755 --- a/doc/salome/gui/GEOM/revolution.htm +++ b/doc/salome/gui/GEOM/revolution.htm @@ -1,147 +1,140 @@ - - - - - -To create - an extruded shape by Revolution - in the Main Menu select New Entity - > Generation - - > Revolution
- -- -
To create an extruded shape by Revolution - you need to define the source Object - to rotate, the Axis of revolution - and the Angle by which the Shape - has to be rotated around the Axis - (in degrees).
- -The Result of - the operation will be a GEOM_Object (edge, face, solid or compsolid).
- -- -
TUI Command: - geompy.MakeRevolution(Shape, Axis, - Angle).
- -Arguments: - Name + 1 shape (vertex, edge, wire, face or shell) serving as base object - + 1 vector (for direction) + 1 value (angle).
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of creation of Complex - Geometric Objects.
- -- - - - + + + + + +
To create + an extruded shape by Revolution + in the Main Menu select New Entity - > Generation - + > Revolution
+ ++ +
To create an extruded shape by Revolution + you need to define the source Object + to rotate, the Axis of revolution + and the Angle by which the Shape + has to be rotated around the Axis + (in degrees).
+ +The Result of + the operation will be a GEOM_Object (edge, face, solid or compsolid).
+ ++ +
TUI Command: + geompy.MakeRevolution(Shape, Axis, + Angle).
+ +Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction) + 1 value (angle).
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of creation of Complex + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/rotation.htm b/doc/salome/gui/GEOM/rotation.htm index cc5464188..b5423cce0 100755 --- a/doc/salome/gui/GEOM/rotation.htm +++ b/doc/salome/gui/GEOM/rotation.htm @@ -1,155 +1,160 @@ - - - - - -
To produce - a Rotation in the Main Menu select - Operations - > Transformation - > - Rotation
- -- -
This operation rotates the initial shape. To - produce a Rotation you need to - define an Object to - be rotated, an Axis of rotation - and an Angle of rotation.
- -Reverse - checkbox allows to specify the direction of rotation.
- -Create a copy - checkbox allows to keep the initial object, otherwise it will be - removed.
- -- -
The - Result will be any GEOM_Object.
- -TUI Command: - geompy.MakeRotation(Shape, Axis, - Angle)
- -Arguments: - 1 shape + 1 vector for direction of rotation + 1 angle.
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Rotation in the Main Menu select + Operations - > Transformation - > + Rotation
+ ++ +
This operation rotates the initial shape. To + produce a Rotation you need to + define an Object to + be rotated, an Axis of rotation + and an Angle of rotation.
+ +Reverse + checkbox allows to specify the direction of rotation.
+ +Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.
+ ++ +
The + Result will be any GEOM_Object.
+ +TUI Command: + geompy.MakeRotation(Shape, Axis, + Angle)
+ +Arguments: + 1 shape + 1 vector for direction of rotation + 1 angle.
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/scale_transform.htm b/doc/salome/gui/GEOM/scale_transform.htm index 094686751..0c1c6338e 100755 --- a/doc/salome/gui/GEOM/scale_transform.htm +++ b/doc/salome/gui/GEOM/scale_transform.htm @@ -1,147 +1,152 @@ - - - - - -
To produce - a Scale Transform in the Main - Menu select Operations - > Transformation - - > Scale Transform
- -- -
This operation creates a scaled shape basing - on the initial shape. For this, you need to define the Shape - to be scaled, the Central Point - of scale and the Scale Factor.
- -The - Result will be a GEOM_Object.
- -TUI Command: - geompy.MakeScaleTransform(Shape, - CenterOfScale, Factor),
- -Arguments: - Name + 1 shape(s) + 1 vertex + 1 Scale Factor.
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Scale Transform in the Main + Menu select Operations - > Transformation + - > Scale Transform
+ ++ +
This operation creates a scaled shape basing + on the initial shape. For this, you need to define the Shape + to be scaled, the Central Point + of scale and the Scale Factor.
+ +The + Result will be a GEOM_Object.
+ +TUI Command: + geompy.MakeScaleTransform(Shape, + CenterOfScale, Factor),
+ +Arguments: + Name + 1 shape(s) + 1 vertex + 1 Scale Factor.
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/section.htm b/doc/salome/gui/GEOM/section.htm index e5681eef6..fd55db031 100755 --- a/doc/salome/gui/GEOM/section.htm +++ b/doc/salome/gui/GEOM/section.htm @@ -1,150 +1,156 @@ - - - - - -
To produce - a Section in the Main Menu select - Operations - > Boolean - > Section
- -- -
This - operation creates the section between 2 shapes.
- -- -
The - Result will be a GEOM_Object - (COMPOUND).
- -TUI Command: - geompy.MakeSection(s1, - s2)
- -Arguments: - Name + 2 shapes.
- -- -
- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Boolean - Operations.
- -- - - - + + + + + +
To produce + a Section operation in the Main + Menu select Operations - > Boolean + - > Section
+ ++ +
This + operation creates the section between 2 shapes.
+ ++ +
The + Result will be a GEOM_Object + (COMPOUND).
+ +TUI Command: + geompy.MakeSection(s1, + s2)
+ +Arguments: + Name + 2 shapes.
+ ++ +
+ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Boolean + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/selectcolor.png b/doc/salome/gui/GEOM/selectcolor.png index 70800b28a..f218bc460 100755 Binary files a/doc/salome/gui/GEOM/selectcolor.png and b/doc/salome/gui/GEOM/selectcolor.png differ diff --git a/doc/salome/gui/GEOM/sewing.htm b/doc/salome/gui/GEOM/sewing.htm index abac91a38..6851c44d4 100755 --- a/doc/salome/gui/GEOM/sewing.htm +++ b/doc/salome/gui/GEOM/sewing.htm @@ -1,143 +1,150 @@ - - - - - -
To produce - a Sewing operation in the Main - Menu select Repair - > Sewing.
- -- -
This - operation allows to sew several shapes.
- -- -
Result: GEOM_Object.
- -- -
TUI Command : - geompy.MakeSewing(ListOfShape, Precision), - where ListOfShape is list of shapes to be sewed, Precision is a precision - for sewing.
- -- -
- -
Arguments: - Name + 1 or more shapes + 1 value (sew precision).
- -Detect - button allows to display the number of free boundaries in your - shape:
- -- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To produce + a Sewing operation in the Main + Menu select Repair - > Sewing.
+ ++ +
This + operation allows to sew several shapes.
+ ++ +
The Result will + be a GEOM_Object.
+ ++ +
TUI Command : + geompy.MakeSewing(ListOfShape, Precision), + where ListOfShape is list of shapes to be sewed, Precision is a precision + for sewing.
+ ++ +
+ +
Arguments: + Name + 1 or more shapes + 1 value (sew precision).
+ +Detect + button allows to display the number of free boundaries in your + shape:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/shape_processing.htm b/doc/salome/gui/GEOM/shape_processing.htm index ba0c19f7f..9355a95b6 100755 --- a/doc/salome/gui/GEOM/shape_processing.htm +++ b/doc/salome/gui/GEOM/shape_processing.htm @@ -1,302 +1,388 @@ - - - - - -
To produce - a Shape Processing operation in - the Main Menu select Repair - > - Shape Processing.
- -- -
This operation processes a shape using various - operators.
- -- -
Result: GEOM_Object.
- -- -
TUI Command: - geompy.ProcessShape(Shape, Operators, - Parameters, Values), where Shape is a processed shape, Operators - is a list of names of operators ("FixShape", "SplitClosedFaces", - etc.), Parameters is a list of names of parameters (“FixShape.Tolerance3d”, - etc), Values is a list of values of parameters in the same order as the - Parameters list.
- -- -
Arguments: - 1 or more shapes.
- -
- 1 |
-
- SplitAngle – - this operator is intended for splitting faces based on conical surfaces, - surfaces of revolution and cylindrical surfaces by angle -SplitAngle.Angle – angle (in radians) defining - size of result segments. -SplitAngle.MaxTolerance – maximal possible - tolerance on result shape |
- 2 |
-
- SplitClosedFaces - – this operator is intended for dividing all closed faces in the shape - according to the number of points. -SplitClosedFaces.NbSplitPoints – number of - points for cutting each closed faces. |
- 3 |
-
- FixFaceSize - – this operator is intended for removing small faces (case of the spot - face and strip face) -FixFaceSize.Tolerance – work tolerance defining - which faces will be removed. |
- 4 |
-
- DropSmallEdges - – this operator is intended for removing small edges or merging with neigbour. - -DropSmallEdges.Tolerance3d – work tolerance - for detection and removing small edges. |
- 5 |
-
- BsplineRestriction - –this operator is intended for re-approximation BSplines curves and surfaces - or conversion of the curves and surfaces to BSplines with specified parameters. - -BSplineRestriction.SurfaceMode - mode of approximation - of surfaces if restriction is necessary -BSplineRestriction.Curve3dMode -mode of conversion - of any 3D curve to BSpline and approximation. -BSplineRestriction.Curve2dMode - mode of conversion - of any 2D curve to BSpline and approximation -BSplineRestriction.Tolerance3d – work tolerance - for definition of the possibility of the approximation of the surfaces - and 3D curves with specified parameters. -BSplineRestriction.Tolerance2d - work tolerance - for definition of the possibility of the approximation of the 2D curves - with specified parameters. -BSplineRestriction.Continuity3d – desired continuity - of the resultant surfaces and 3D curves. -BSplineRestriction.Continuity2d – desired continuity - of the resultant 2D curves. -BSplineRestriction.RequiredDegree - required - degree of the resultant BSplines -BSplineRestriction.RequiredNbSegments - required - maximum number of segments of resultant BSplines. |
- 6 |
-
- SplitContinuity - – this operator is intended for splitting shapes to achieve continuities - of curves and surfaces less than specified ones. -SplitContinuity.Tolerance3d - 3D tolerance - for correction of geometry. -SplitContinuity.SurfaceContinuity - required - continuity for surfaces. -SplitContinuity.CurveContinuity - required - continuity for curves. |
- 7 |
-
- ToBezier - this - operator is intended for conversion of the curves and surfaces of the - all types into Bezier curves and surfaces. -ToBezier.SurfaceMode - mode of conversion of - the surfaces. -ToBezier.Curve3dMode – mode for conversion - of the 3D curves. -ToBezier.Curve2dMode – mode for conversion - of the 2D curves. -ToBezier.MaxTolerance – max possible tolerance - on the resultant shape. |
- 8 |
-
- FixShape – this - operator is intended for correction of the invalid shapes -FixShape.Tolerance3d – work tolerance for detection - of the problems and correction of them. -FixShape.MaxTolerance3d - maximal possible - tolerance of the shape after correction. |
- 9 |
-
- SameParameter - – this operator is intended for fixing edges having not same parameter - 2D and 3D curves. -SameParameter.Tolerance3d – tolerance for detection - and fix problems. |
- -
- -
Dialog Box:
- -- -
- -
Example:
- -- -
Shape before applying Shape Processing (FixShape - operator).
- -- -
- -
The - same shape after applying Shape Processing.
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To produce + a Shape Processing operation in + the Main Menu select Repair - > + Shape Processing.
+ +This operation processes one or more shapes + using various operators.
+ ++ +
The + Result will be a GEOM_Object.
+ ++ +
TUI Command: + geompy.ProcessShape(Shape, Operators, + Parameters, Values), where Shape is a processed shape, Operators + is a list of operators ("FixShape", "SplitClosedFaces", + etc.), Parameters is a list of parameters (“FixShape.Tolerance3d”, etc), + Values is a list of values of parameters placed in the same order as in + the list of Parameters .
+ ++ +
In this dialog box you can select the object + that you need to process, define its name and operators applied to it + during processing.
+ ++ +
+ +
Operators and Parameters (TUI names are given in brackets)
+ ++ +
Fix + Shape (FixShape) - corrects invalid shapes.
3D Tolerance (FixShape.Tolerance3d) + - work tolerance for detection of the problems and correction of them.
Max 3D Tolerance (FixShape.MaxTolerance3d) + - maximal + possible tolerance of the shape after correction.
Fix Face Size (FixFaceSize) - removes + small faces, such as spots and strips.
Tolerance (FixFaceSize.Tolerance) - + defines minimum possible face size.
Drop Small Edges (DropSmallEdges) - + removes edges, which merge with neighbouring edges.
3D Tolerance (DropSmallEdges.Tolerance3d) + - defines minimum possible distance between two parallel edges.
Split Angle (SplitAngle) - splits faces + based on conical surfaces, surfaces of revolution and cylindrical surfaces + in segments using a certain angle .
Angle (SplitAngle.Angle) - the central + angle of the resulting segments (i.e. we obtain two segments if Angle=180, + four if Angle=90, etc).
Max. Tolerance (SplitAngle.MaxTolerance) + - maximum possible tolerance among the resulting segments.
Split Closed Faces + (SplitClosedFaces) - splits + closed faces in segments. The number of segments depends on the number + of splitting points.
Number of splitting points (SplitClosedFaces.NbSplitPoints) + - the number of splitting points.
Split Continuity (SplitContinuity) - splits shapes to reduce + continuities of curves and surfaces.
3D Tolerance + (SplitContinuity.Tolerance3d) - 3D tolerance for correction of geometry.
Surface Continuity (SplitContinuity.SurfaceContinuity) - required + continuity for surfaces.
Curve Continuity (SplitContinuity.CurveContinuity) + - required continuity for curves.
This and the previous parameters can + take the following values:
+ +Parametric Continuity +
+ +C0 + (Positional Continuity): curves are joined (the end positions of curves + or surfaces are coincidental. The curves or surfaces may still meet at + an angle, giving rise to a sharp corner or edge).
+ +C1 + (Tangential Continuity): first derivatives are equal (the end vectors + of curves or surfaces are parallel, ruling out sharp edges).
+ +C2 + (Curvature Continuity): first and second derivatives are equal (the end + vectors of curves or surfaces are of the same magnitude).
+ +CN + N-th derivatives are equal (both the direction and the magnitude of the + Nth derivatives of curves or surfaces (d/du C(u)) are the same at junction.
+ +Geometric Continuity
+ +G1: + first derivatives are proportional at junction
+ +The curve tangents thus have the same + direction, but not necessarily the same magnitude. i.e., C1'(1) = (a,b,c) + and C2'(0) = (k*a, k*b, k*c).
+ +G2: + first and second derivatives are proportional at junction
+ +As the names imply, geometric continuity + requires the geometry to be continuous, while parametric continuity requires + that the underlying parameterization was continuous as well.
+ +Parametric continuity of order n implies + geometric continuity of order n, but not vice-versa.
+ +Bspline + Restriction (BsplineRestriction) - converts curves and surfaces + to Bsplines and processes them with the following parameters:
Surface Mode + (BSplineRestriction.SurfaceMode) - approximation of surfaces if restriction + is necessary.
3D Curve Mode (BSplineRestriction.Curve3dMode) - conversion + of any 3D curve to BSpline and approximation.
2D Curve Mode (BSplineRestriction.Curve2dMode) - + conversion of any 2D curve to BSpline + and approximation.
3D + Tolerance (BSplineRestriction.Tolerance3d) - defines the possibility + of surfaces and 3D curves approximation with the specified parameters.
2D + Tolerance (BSplineRestriction.Tolerance2d) - defines the possibility + of surfaces and 2D curves approximation with the specified parameters.
Required + Degree (BSplineRestriction.RequiredDegree) - required degree of + the resulting BSplines.
Required + number of segments (BSplineRestriction.RequiredNbSegments) - required + maximum number of segments of resultant BSplines
3D + Continuity (BSplineRestriction.Continuity3d) - continuity of the + resulting surfaces and 3D curves.
2D + Continuity (BSplineRestriction.Continuity2d) - continuity of the + resulting 2D curves.
To Bezier (ToBezier) - converts curves + and surfaces of any type to Bezier curves and surfaces.
Surface Mode + (ToBezier.SurfaceMode) - if checked in, allows conversion of surfaces.
3D Curve Mode (ToBezier.Curve3dMode) - if checked in, allows + conversion of 2D curves.
2D Curve Mode (ToBezier.Curve2dMode) - if checked in, allows + conversion of 3D curves.
Max Tolerance (ToBezier.MaxTolerance) - defines + tolerance for detection and correction + of problems.
Same Parameter (SameParameter) – fixes + edges of 2D and 3D curves not having the same parameter.
3D Tolerance (SameParameter.Tolerance3d) + – defines tolerance for fixing + of edges.
+ +
Dialog Box:
+ ++ +
+ +
+ +
Example:
+ ++ +
Shape before applying Shape Processing (FixShape + operator).
+ ++ +
+ +
The + same shape after applying Shape Processing.
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/shell.htm b/doc/salome/gui/GEOM/shell.htm index df6d6ee37..ede227480 100755 --- a/doc/salome/gui/GEOM/shell.htm +++ b/doc/salome/gui/GEOM/shell.htm @@ -1,132 +1,137 @@ - - - - - -
To create - a Shell in the Main Menu select - New Entity - > Build - > Shell
- -- -
You - can create a Shell from a list of faces and (or) - shells.
- -The - Result will be a GEOM_Object - (SHELL).
- -- -
TUI Command: - geompy.MakeShell(ListOfShape) -
- -Arguments: - Name + List of faces having connected edges.
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- -
- - - - + + + + + +
To create + a Shell in the Main Menu select + New Entity - > Build - > Shell
+ ++ +
You + can create a Shell from a list of faces and (or) + shells.
+ +The + Result will be a GEOM_Object + (shell).
+ ++ +
TUI Command: + geompy.MakeShell(ListOfShape) +
+ +Arguments: + Name + List of faces having connected edges.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/sketcher.htm b/doc/salome/gui/GEOM/sketcher.htm index 37f343ff1..1bff414a8 100755 --- a/doc/salome/gui/GEOM/sketcher.htm +++ b/doc/salome/gui/GEOM/sketcher.htm @@ -1,216 +1,221 @@ - - - - - -
Sketcher allows to create curves of 2 types: line
- segment and arc. The
- curve is created from the current point (center of coordinates when the
- sketcher is started). The
- end of the curve is defined by means of "destination", which
- can be a destination point (for segment only) or destination direction
- coupled with length of a segment or angle and radius of an arc.
- -
Sketcher is able to create planar curves only. Therefore, it is necessary - to select a working plane before starting a sketch (by default, XOY plane - is used). Sketcher creates curves lying in the current working plane (New - Entity -> Basic -> Working Plane).
- -- -
This functionality is available from the main menu via New - Entity / Sketch.
- -- -
The Result of - the operation will be a GEOM_Object.
- -- -
TUI Command: - geompy.MakeSketcher(Command, WorkingPlane)
- -This algorithm creates - a sketcher (wire or face), following the textual description, passed through - the Command argument. The edges of the resulting wire or face will be - arcs of circles and/or linear segments.
- -Command - is a string, defining the sketcher by the coordinates of points in the - local working plane.
- -WorkingPlane - is a planar face of the working plane (a list of 9 doubles which are coordinates - of OZ and OX of the local working plane).
- -- -
Arguments: -
- -1. Element type (segment or arc).
- -2. Destination type (point or direction).
- -3. Destination point by means of:
- -absolute coordinates - X,Y;
relative coordinates - DX, DY (with respect to the current point);
selection of an existing - point.
4. Destination direction by means of:
- -angle between the new - segment and the previous one;
perpendicular to the - previous segment (same as previous, but angle is predefined and is equal - to 90 degrees);
tangent to the previous - segment;
vector components DX, - DY.
5. Parameters of an element (for segment : - length or target X or Y coordinate value, for arc : radius and angle).
- -- -
Dialog Box:
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Sketcher. -
- -- - - - + + + + + +
Sketcher allows to create curves of 2 types: line
+ segment and arc. The
+ curve is created from the current point (center of coordinates when the
+ sketcher is started). The
+ end of the curve is defined by means of "destination", which
+ can be a destination point (for segment only) or destination direction
+ coupled with length of a segment or angle and radius of an arc.
+ +
Sketcher is able to create planar curves only. Therefore, it is necessary + to select a working plane before starting a sketch (by default, XOY plane + is used). Sketcher creates curves lying in the current working plane (New + Entity -> Basic -> Working Plane).
+ ++ +
This functionality is available from the main menu via New + Entity / Sketch.
+ ++ +
The Result of + the operation will be a GEOM_Object.
+ ++ +
TUI Command: + geompy.MakeSketcher(Command, WorkingPlane)
+ +This algorithm creates + a sketcher (wire or face), following the textual description, passed through + the Command argument. The edges of the resulting wire or face will be + arcs of circles and/or linear segments.
+ +Command + is a string, defining the sketcher by the coordinates of points in the + local working plane.
+ +WorkingPlane + is a planar face of the working plane (a list of 9 doubles which are coordinates + of OZ and OX of the local working plane).
+ ++ +
Arguments: +
+ +1. Element type (segment or arc).
+ +2. Destination type (point or direction).
+ +3. Destination point by means of:
+ +absolute coordinates + X,Y;
relative coordinates + DX, DY (with respect to the current point);
selection of an existing + point.
4. Destination direction by means of:
+ +angle between the new + segment and the previous one;
perpendicular to the + previous segment (same as previous, but angle is predefined and is equal + to 90 degrees);
tangent to the previous + segment;
vector components DX, + DY.
5. Parameters of an element (for segment : + length or target X or Y coordinate value, for arc : radius and angle).
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Sketcher. +
+ ++ + + + diff --git a/doc/salome/gui/GEOM/sketcher_tui.htm b/doc/salome/gui/GEOM/sketcher_tui.htm index f191ae610..2294988a4 100755 --- a/doc/salome/gui/GEOM/sketcher_tui.htm +++ b/doc/salome/gui/GEOM/sketcher_tui.htm @@ -1,177 +1,182 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices
- -p1 = geompy.MakeVertex(70., - 0., 0.)
- -p2 = geompy.MakeVertex(70., - 70., 80.)
- -p3 = geompy.MakeVertex( - 0., 70., 0.)
- -- -
#create a vector from two points
- -vector_arc = geompy.MakeVector(p1, - p3)
- -- -
# create an arc from three points
- -arc = geompy.MakeArc(p1, - p2, p3)
- -- -
# create a wire
- -wire = geompy.MakeWire([vector_arc, - arc])
- -- -
# create a planar face
- -isPlanarWanted = 1
- -face = geompy.MakeFace(wire, - isPlanarWanted)
- -- -
# create a sketcher (face), following the textual description
- -sketcher1 = geompy.MakeSketcher("Sketcher:F - -100 -100:TT 250 -100:R 0:C 100 150:R 0:L 300:WF",
- -[100,0,0, - 1,1,1, -1,1,0])
- -- -
# create a sketcher (wire) on the given face
- -sketcher2 = geompy.MakeSketcherOnPlane("Sketcher:F - 10 -30:R 10:C 20 180:R 15:L 50:WW",
- -face)
- -- -
# add objects in the study
- -id_face = geompy.addToStudy(face,"Face")
- -id_sketcher1 = geompy.addToStudy(sketcher1,"Sketcher1")
- -id_sketcher2 = geompy.addToStudy(sketcher2,"Sketcher2")
- -- -
# display the first sketcher and the second sketcher with its planar - face
- -gg.createAndDisplayGO(id_face)
- -gg.setDisplayMode(id_face,1)
- -gg.setTransparency(id_face,0.5)
- -gg.createAndDisplayGO(id_sketcher1)
- -gg.createAndDisplayGO(id_sketcher2) -
- - - - + + + + + +import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices
+ +p1 = geompy.MakeVertex(70., + 0., 0.)
+ +p2 = geompy.MakeVertex(70., + 70., 80.)
+ +p3 = geompy.MakeVertex( + 0., 70., 0.)
+ ++ +
#create a vector from two points
+ +vector_arc = geompy.MakeVector(p1, + p3)
+ ++ +
# create an arc from three points
+ +arc = geompy.MakeArc(p1, + p2, p3)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vector_arc, + arc])
+ ++ +
# create a planar face
+ +isPlanarWanted = 1
+ +face = geompy.MakeFace(wire, + isPlanarWanted)
+ ++ +
# create a sketcher (face), following the textual description
+ +sketcher1 = geompy.MakeSketcher("Sketcher:F + -100 -100:TT 250 -100:R 0:C 100 150:R 0:L 300:WF",
+ +[100,0,0, + 1,1,1, -1,1,0])
+ ++ +
# create a sketcher (wire) on the given face
+ +sketcher2 = geompy.MakeSketcherOnPlane("Sketcher:F + 10 -30:R 10:C 20 180:R 15:L 50:WW",
+ +face)
+ ++ +
# add objects in the study
+ +id_face = geompy.addToStudy(face,"Face")
+ +id_sketcher1 = geompy.addToStudy(sketcher1,"Sketcher1")
+ +id_sketcher2 = geompy.addToStudy(sketcher2,"Sketcher2")
+ ++ +
# display the first sketcher and the second sketcher with its planar + face
+ +gg.createAndDisplayGO(id_face)
+ +gg.setDisplayMode(id_face,1)
+ +gg.setTransparency(id_face,0.5)
+ +gg.createAndDisplayGO(id_sketcher1)
+ +gg.createAndDisplayGO(id_sketcher2) +
+ + + + diff --git a/doc/salome/gui/GEOM/solid.htm b/doc/salome/gui/GEOM/solid.htm index f8f08688e..a46e8a241 100755 --- a/doc/salome/gui/GEOM/solid.htm +++ b/doc/salome/gui/GEOM/solid.htm @@ -1,143 +1,138 @@ - - - - - -To create - a Solid in the Main Menu select - New Entity - > Build - > Solid.
- -- -
You - can create a Solid from a list - of shells.
- -- -
The - Result will be a - GEOM_Object - (SOLID).
- -- -
TUI Command: - geompy.MakeSolid(ListOfShape), - where ListOfShape is a list of shells from which the solid is constructed.
- -Arguments: - Name + A closed shell or a list of shells.
- -- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- - - - + + + + + +
To create + a Solid in the Main Menu select + New Entity - > Build - > Solid.
+ ++ +
You + can create a Solid from a list + of shells.
+ ++ +
The + Result will be a + GEOM_Object + (SOLID).
+ ++ +
TUI Command: + geompy.MakeSolid(ListOfShape), + where ListOfShape is a list of shells from which the solid is constructed.
+ +Arguments: Name + A closed shell or + a list of shells.
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/sphere.htm b/doc/salome/gui/GEOM/sphere.htm index b5352be3d..b23ecdcab 100755 --- a/doc/salome/gui/GEOM/sphere.htm +++ b/doc/salome/gui/GEOM/sphere.htm @@ -1,161 +1,166 @@ - - - - - -
To create a Sphere - in the Main Menu select New Entity - > Primitives - > Sphere
- -- -
There are two algorithms for creation of a Sphere. -
- -The - Result of each operation will be a - GEOM_Object (SOLID).
- -- -
Firstly, you can define a Sphere - by the Center Point and the Radius.
- -TUI Command: geompy.MakeSphere(Point, - Radius)
- -Arguments: Name - + 1 vertex + 1 value (Radius).
- -- -
Secondly, - you can define a Sphere with - the center at the origin of coordinate system by the Radius.
- -TUI Command: geompy. - MakeSphereR(Radius)
- -Arguments: Name - + 1 value - (Radius from the origin).
- -- -
NB! The - is another way to create a Sphere, - which is currently accessible only via TUI commands.
- -You - can define the Sphere by the - coordinates of the Center Point and - its Radius (in this way you - don't need to create it in advance).
- -TUI - Command: geompy.MakeSphere(X, - Y, Z, Radius)
- -- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Primitives.
- -- - - - + + + + + +
To create a Sphere + in the Main Menu select New Entity - > Primitives - > Sphere
+ ++ +
There are two algorithms for creation of a Sphere. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Sphere + by the Center Point and the Radius.
+ +TUI Command: geompy.MakeSphere(Point, + Radius)
+ +Arguments: Name + + 1 vertex + 1 value (Radius).
+ ++ +
Secondly, + you can define a Sphere with + the center at the origin of coordinate system by the Radius.
+ +TUI Command: geompy. + MakeSphereR(Radius)
+ +Arguments: Name + + 1 value + (Radius from the origin).
+ ++ +
NB! The + is another way to create a Sphere, + which is currently accessible only via TUI commands.
+ +You + can define the Sphere by the + coordinates of the Center Point and + its Radius (in this way you + don't need to create it in advance).
+ +TUI + Command: geompy.MakeSphere(X, + Y, Z, Radius)
+ ++ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/suppress_faces.htm b/doc/salome/gui/GEOM/suppress_faces.htm index a67a8a697..1322bddf2 100755 --- a/doc/salome/gui/GEOM/suppress_faces.htm +++ b/doc/salome/gui/GEOM/suppress_faces.htm @@ -1,135 +1,143 @@ - - - - - -
To produce - a Suppress Faces operation in - the Main Menu select Repair - > Suppress - Faces.
- -- -
This operation suppresses a face of a shape. - This operation is available in OCC Viewer - only.
- -- -
Result: GEOM_Object - (ListOfGeomShapes).
- -TUI Command: - geompy.SuppressFaces(Shape, ListOfID), - where Shape is a shape to be processed, ListOfID is a list of faces ID's - to be removed.
- -Arguments: - Name + Faces which should be removed (you can select them in the 3D viewer).
- -- -
- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To produce + a Suppress Faces operation in + the Main Menu select Repair - > Suppress + Faces.
+ ++ +
This operation suppresses a face of a shape. + This operation is available in OCC Viewer + only.
+ ++ +
The + Result will be a GEOM_Object (ListOfGeomShapes)..
+ ++ +
TUI Command: geompy.SuppressFaces(Shape, + ListOfID), where Shape is a shape to be processed, ListOfID is + a list of faces ID's to be removed.
+ +Arguments: + Name + Faces which should be removed (you can select them in the 3D viewer).
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/suppress_holes.htm b/doc/salome/gui/GEOM/suppress_holes.htm index 3206a63ed..1ced853b9 100755 --- a/doc/salome/gui/GEOM/suppress_holes.htm +++ b/doc/salome/gui/GEOM/suppress_holes.htm @@ -1,149 +1,154 @@ - - - - - -
To Suppress Holes in the Main Menu select - Repair - > Suppress Holes.
- -- -
This operation removes holes on a selected shape. This - operation is available in OCC - Viewer only.
- -- -
Result: GEOM_Object.
- -- -
TUI Command: - geompy.SuppressHoles(Shape, ListOfWireID), - where Shape is a shape where holes must be removed, ListOfWireID is a - list of wire sub shapes ID’s. If it is empty, then all holes are removed.
- -- -
- -
Arguments: Name - + 1 shape + Wires which should be removed.
- -Remove all - holes checkbox allows to fill all holes of a definite shape.
- -Detect button - allows to display the number of free boundaries in your shape:
- -- -
- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- -
- - - - + + + + + +
To Suppress Holes in the Main Menu select + Repair - > Suppress Holes.
+ ++ +
This operation removes holes on a selected shape. This + operation is available in OCC + Viewer only.
+ ++ +
The Result will + be a GEOM_Object.
+ ++ +
TUI Command: + geompy.SuppressHoles(Shape, ListOfWireID), + where Shape is a shape where holes must be removed, ListOfWireID is a + list of wire sub shapes ID’s. If it is empty, then all holes are removed.
+ ++ +
+ +
Arguments: Name + + 1 shape + Wires which should be removed.
+ +Remove all + holes checkbox allows to fill all holes of a definite shape.
+ +Detect button + allows to display the number of free boundaries in your shape:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/suppress_internal_wires.htm b/doc/salome/gui/GEOM/suppress_internal_wires.htm index 463cd206a..53228dc22 100755 --- a/doc/salome/gui/GEOM/suppress_internal_wires.htm +++ b/doc/salome/gui/GEOM/suppress_internal_wires.htm @@ -1,159 +1,160 @@ - - - - - -
To Suppress Internal Wires in the Main - Menu select Repair - > Suppress Internal - Wires.
- -- -
This operation removes all internal wires or - specified internal wires from user specified faces. This operation is - available in OCC Viewer only. -
- -- -
Result: GEOM_Object.
- -- -
TUI Command: - geompy.SuppressInternalWires(Shape, - Wires), where Shape is a shape where wires are to be removed, Wires - is a list of wires ID’s to be removed; if the list is empty then all internal - wires are removed.
- -- -
- -
Arguments:
- -Name of the resulting - object
User specified face
User specified internal - wires (lying on this face except for its boundary), or, in case the Remove all internal wires box is checked, - all internal wires
- -
Dialog Box:
- -- -
- -
Example:
- -- -
- -
Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.
- -- - - - + + + + + +
To Suppress Internal Wires in the Main + Menu select Repair - > Suppress Internal + Wires.
+ ++ +
This operation removes all internal wires or + specified internal wires from user specified faces. This operation is + available in OCC Viewer only. +
+ ++ +
The + Result will be a GEOM_Object.
+ ++ +
TUI Command: + geompy.SuppressInternalWires(Shape, + Wires), where Shape is a shape where wires are to be removed, Wires + is a list of wires ID’s to be removed; if the list is empty then all internal + wires are removed.
+ ++ +
Arguments:
+ +Name of the resulting + object
User specified face
User specified internal + wires (lying on this face except for its boundary), or, in case the Remove all internal wires box is checked, + all internal wires
+ +
+ +
Example:
+ ++ +
+ +
Our + TUI Scripts provide you with useful + examples of the use of Repairing + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/transformation_operations.htm b/doc/salome/gui/GEOM/transformation_operations.htm index 2578a8271..dd15a9910 100755 --- a/doc/salome/gui/GEOM/transformation_operations.htm +++ b/doc/salome/gui/GEOM/transformation_operations.htm @@ -1,1070 +1,1075 @@ - - - - - -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(10, - 40, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 50)
- -p3 = geompy.MakeVertex(50, - 80, 0)
- -v = geompy.MakeVector(p1, - p2)
- -vt = geompy.MakeVector(p1, - p3)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# translate the given object along the vector, specified by its end - points
- -# (all three functions produce the same result)
- -translation1 = geompy.MakeTranslationTwoPoints(cylinder, - p1, p3)
- -translation2 = geompy.MakeTranslation(cylinder, - 40, 40, 0)
- -translation3 = geompy.MakeTranslationVector(cylinder, - vt)
- -- -
# add objects in the study
- -id_cylinder = geompy.addToStudy(cylinder, - "Cylinder")
- -id_translation1 = - geompy.addToStudy(translation1, "Translation1")
- -id_translation2 = - geompy.addToStudy(translation2, "Translation2")
- -id_translation3 = - geompy.addToStudy(translation3, "Translation3")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cylinder)
- -gg.setDisplayMode(id_cylinder,1)
- -gg.createAndDisplayGO(id_translation1)
- -gg.setDisplayMode(id_translation1,1)
- -gg.createAndDisplayGO(id_translation2)
- -gg.setDisplayMode(id_translation2,1)
- -gg.createAndDisplayGO(id_translation3)
- -gg.setDisplayMode(id_translation3,1) -
- -import geompy
- -import salome
- -import math
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(10, - 40, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 50)
- -p3 = geompy.MakeVertex(10, - 50,-20)
- -p4 = geompy.MakeVertex(10, - 50, 60)
- -v = geompy.MakeVector(p1, - p2)
- -vr = geompy.MakeVector(p3, - p4)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# rotate the given object around the given axis by the given angle
- -rotation = geompy.MakeRotation(cylinder, - vr, math.pi)
- -- -
# add objects in the study
- -id_vr = geompy.addToStudy(vr, - "Rotation axis")
- -id_cylinder = geompy.addToStudy(cylinder, - "Cylinder")
- -id_rotation = geompy.addToStudy(rotation, - "Rotation")
- -- -
# display the results
- -gg.createAndDisplayGO(id_vr)
- -gg.createAndDisplayGO(id_cylinder)
- -gg.setDisplayMode(id_cylinder,1)
- -gg.createAndDisplayGO(id_rotation)
- -gg.setDisplayMode(id_rotation,1) -
- -- -
import geompy
- -import salome
- -import math
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a vertex and a vector
- -p1 = geompy.MakeVertex(10, - 40, 0)
- -p2 = geompy.MakeVertex( - 0, 0, 50)
- -v = geompy.MakeVector(p1, - p2)
- -- -
# create a cylinder
- -height = 35
- -radius1 = 20
- -cylinder = geompy.MakeCylinder(p1, - v, radius1, height)
- -- -
# create local coordinate systems
- -cs1 = geompy.MakeMarker( - 0, 0, 0, 1,0,0, 0,1,0)
- -cs2 = geompy.MakeMarker(30,40,40, - 1,0,0, 0,1,0)
- -- -
# modify the location of the given object
- -position = geompy.MakePosition(cylinder, - cs1, cs2)
- -- -
# add objects in the study
- -id_cs1 = geompy.addToStudy(cs1, - "Coordinate system 1")
- -id_cs2 = geompy.addToStudy(cs2, - "Coordinate system 2")
- -id_cylinder = geompy.addToStudy(cylinder, - "Cylinder")
- -id_position = geompy.addToStudy(position, - "Position")
- -- -
# display the results
- -gg.createAndDisplayGO(id_cylinder)
- -gg.setDisplayMode(id_cylinder,1)
- -gg.createAndDisplayGO(id_position)
- -gg.setDisplayMode(id_position,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a box
- -box = geompy.MakeBoxDXDYDZ(200, - 200, 200)
- -- -
# create an object, symmetrical to the given one relatively the given - plane
- -p1 = geompy.MakeVertex( - 0, 25, 0)
- -p2 = geompy.MakeVertex( - 5, 25, 0)
- -p3 = geompy.MakeVertex( - 0,-30, 40)
- -plane = geompy.MakePlaneThreePnt(p1, - p2, p3, 1000.)
- -mirror1 = geompy.MakeMirrorByPlane(box, - plane)
- -- -
# create an object, symmetrical to the given one relatively the given - axis
- -p4 = geompy.MakeVertex( - 210, 210, -20)
- -p5 = geompy.MakeVertex( - 210, 210, 220)
- -axis = geompy.MakeVector(p4, - p5)
- -mirror2 = geompy.MakeMirrorByAxis(box, - axis)
- -- -
# create an object, symmetrical to the given one relatively the given - point
- -mirror3 = geompy.MakeMirrorByPoint(box, - p4)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box, - "Box")
- -id_plane = geompy.addToStudy(plane, - "Plane")
- -id_mirror1 = geompy.addToStudy(mirror1, - "Mirror plane")
- -id_axis = geompy.addToStudy(axis, - "Axis")
- -id_mirror2 = geompy.addToStudy(mirror2, - "Mirror axis")
- -id_p4 = geompy.addToStudy(p4, - "Point")
- -id_mirror3 = geompy.addToStudy(mirror3, - "Mirror point")
- -- -
# display the results
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_plane)
- -gg.createAndDisplayGO(id_mirror1)
- -gg.setDisplayMode(id_mirror1,1)
- -gg.createAndDisplayGO(id_axis)
- -gg.createAndDisplayGO(id_mirror2)
- -gg.setDisplayMode(id_mirror2,1)
- -gg.createAndDisplayGO(id_p4)
- -gg.createAndDisplayGO(id_mirror3)
- -gg.setDisplayMode(id_mirror3,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a box and a sphere
- -box = geompy.MakeBoxDXDYDZ(200, - 200, 200)
- -- -
# scale the given object by the factor
- -p0 = geompy.MakeVertex(100, - 100, 100)
- -factor = 0.5
- -scale = geompy.MakeScaleTransform(box, - p0, factor)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box, - "Box")
- -id_scale = geompy.addToStudy(scale, - "Scale")
- -- -
# display the results
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_scale)
- -gg.setDisplayMode(id_scale,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create a box and a sphere
- -box = geompy.MakeBox(20, - 20, 20, 200, 200, 200)
- -- -
# create a new object as offset of the given object
- -offset = geompy.MakeOffset(box, - 70.)
- -- -
# add objects in the study
- -id_box = geompy.addToStudy(box, - "Box")
- -id_offset = geompy.addToStudy(offset, - "Offset")
- -- -
# display the results
- -gg.createAndDisplayGO(id_box)
- -gg.setDisplayMode(id_box,1)
- -gg.createAndDisplayGO(id_offset) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices and vectors
- -p0 = - geompy.MakeVertex( 0., 0., - 0.)
- -px = - geompy.MakeVertex(20., 0., - 0.)
- -py = - geompy.MakeVertex( 0., 20., 0.)
- -pz = - geompy.MakeVertex( 0., 0., - 20.)
- -pxy = geompy.MakeVertex( - 50., 0., 0.)
- -pxyz = geompy.MakeVertex( - 50., 50., 50.)
- -vz = - geompy.MakeVector(p0, pz)
- -vxy = geompy.MakeVector(px, - py)
- -vtr1d = geompy.MakeVector(p0, - pxyz)
- -vtr2d = geompy.MakeVector(p0, - pxy)
- -- -
# create an arc
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create a planar face
- -face = geompy.MakeFace(wire, - 1)
- -- -
# create a prism
- -prism = geompy.MakePrismVecH(face, - vz, 20.0)
- -- -
# translate the given object along the given vector a given number of - times
- -tr1d = geompy.MakeMultiTranslation1D(prism, - vtr1d, 20, 4)
- -- -
# consequently apply two specified translations to the object a given - number of times
- -tr2d = geompy.MakeMultiTranslation2D(prism, - vtr1d, 20, 4, vtr2d, 80, 3)
- -- -
# add objects in the study
- -id_prism = geompy.addToStudy(prism,"Prism")
- -id_tr1d = geompy.addToStudy(tr1d,"Translation - 1D")
- -id_tr2d = geompy.addToStudy(tr2d,"Translation - 2D")
- -- -
# display the prism and the results of fillet operation
- -gg.createAndDisplayGO(id_prism)
- -gg.setDisplayMode(id_prism,1)
- -gg.createAndDisplayGO(id_tr1d)
- -gg.setDisplayMode(id_tr1d,1)
- -gg.createAndDisplayGO(id_tr2d)
- -gg.setDisplayMode(id_tr2d,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -- -
# create vertices and vectors
- -p0 = - geompy.MakeVertex( 0., 0., - 0.)
- -px = - geompy.MakeVertex(20., 0., - 0.)
- -py = - geompy.MakeVertex( 0., 20., 0.)
- -pz = - geompy.MakeVertex( 0., 0., - 20.)
- -pxyz = geompy.MakeVertex( - 50., 50., 10.)
- -vz = - geompy.MakeVector(p0, pz)
- -vxy = geompy.MakeVector(px, - py)
- -vrot1d = geompy.MakeVector(p0, - pxyz)
- -- -
# create an arc
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create a planar face
- -face = geompy.MakeFace(wire, - 1)
- -- -
# create a prism
- -prism = geompy.MakePrismVecH(face, - vz, 20.0)
- -- -
# rotate the given object around the given axis by the given angle a - given number of times
- -rot1d = geompy.MultiRotate1D(prism, - vrot1d, 4)
- -- -
# rotate the given object around the given axis by the given angle a - given number of times
- -# and multi-translate the result of each rotation
- -rot2d = geompy.MultiRotate2D(prism, - vrot1d, 60, 4, 50, 5)
- -- -
# add objects in the study
- -id_prism = geompy.addToStudy(prism,"Prism")
- -id_rot1d = geompy.addToStudy(rot1d,"Rotation - 1D")
- -id_rot2d = geompy.addToStudy(rot2d,"Rotation - 2D")
- -- -
# display the prism and the results of fillet operation
- -gg.createAndDisplayGO(id_prism)
- -gg.setDisplayMode(id_prism,1)
- -gg.createAndDisplayGO(id_rot1d)
- -gg.setDisplayMode(id_rot1d,1)
- -gg.createAndDisplayGO(id_rot2d)
- -gg.setDisplayMode(id_rot2d,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -radius = - 10.
- -ShapeTypeEdge = geompy.ShapeType["EDGE"]
- -- -
# create vertices and vectors
- -p0 = - geompy.MakeVertex( 0., - 0., - 0.)
- -px = - geompy.MakeVertex(100., 0., - 0.)
- -py = - geompy.MakeVertex( 0., - 100., 0.)
- -pz = - geompy.MakeVertex( 0., - 0., - 100.)
- -vz = - geompy.MakeVector(p0, pz)
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create a planar face
- -face = geompy.MakeFace(wire, - 1)
- -- -
# create a prism
- -prism = geompy.MakePrismVecH(face, - vz, 100.0)
- -- -
# get the list of IDs (IDList) for the fillet
- -prism_edges = geompy.SubShapeAllSorted(prism, - ShapeTypeEdge)
- -IDlist_e = []
- -IDlist_e.append(geompy.GetSubShapeID(prism, - prism_edges[0]))
- -IDlist_e.append(geompy.GetSubShapeID(prism, - prism_edges[1]))
- -IDlist_e.append(geompy.GetSubShapeID(prism, - prism_edges[2]))
- -- -
# make a fillet on the specified edges of the given shape
- -fillet = geompy.MakeFillet(prism, - radius, ShapeTypeEdge, IDlist_e)
- -- -
# make a fillet on all edges of the given shape
- -filletall = geompy.MakeFilletAll(prism, - radius)
- -- -
# add objects in the study
- -id_prism = geompy.addToStudy(prism,"Prism")
- -id_fillet = geompy.addToStudy(fillet,"Fillet")
- -id_filletall = geompy.addToStudy(filletall,"Fillet - all")
- -- -
# display the prism and the results of fillet operation
- -gg.createAndDisplayGO(id_prism)
- -gg.setDisplayMode(id_prism,1)
- -gg.createAndDisplayGO(id_fillet)
- -gg.setDisplayMode(id_fillet,1)
- -gg.createAndDisplayGO(id_filletall)
- -gg.setDisplayMode(id_filletall,1) -
- -- -
import geompy
- -import salome
- -gg = salome.ImportComponentGUI("GEOM")
- -d1 = 10.
- -d2 = 10.
- -ShapeTypeFace = geompy.ShapeType["FACE"]
- -- -
# create vertices and vectors
- -p0 = - geompy.MakeVertex( 0., - 0., - 0.)
- -px = - geompy.MakeVertex(100., 0., - 0.)
- -py = - geompy.MakeVertex( 0., - 100., 0.)
- -pz = - geompy.MakeVertex( 0., - 0., - 100.)
- -vz = - geompy.MakeVector(p0, pz)
- -vxy = geompy.MakeVector(px, - py)
- -- -
# create an arc
- -arc = geompy.MakeArc(py, - pz, px)
- -- -
# create a wire
- -wire = geompy.MakeWire([vxy, - arc])
- -- -
# create a planar face
- -face = geompy.MakeFace(wire, - 1)
- -- -
# create a prism
- -prism = geompy.MakePrismVecH(face, - vz, 100.0)
- -- -
# get the list of IDs (IDList) for the chamfer
- -prism_faces = geompy.SubShapeAllSorted(prism, - ShapeTypeFace)
- -f_ind_1 = geompy.GetSubShapeID(prism, - prism_faces[0])
- -f_ind_2 = geompy.GetSubShapeID(prism, - prism_faces[1])
- -IDlist_f = [f_ind_1, - f_ind_2]
- -- -
# perform a chamfer on the edges common to the specified faces
- -chamfer_e = geompy.MakeChamferEdge(prism, - d1, d2, f_ind_1, f_ind_2)
- -- -
# perform a chamfer on all edges of the specified faces
- -chamfer_f = geompy.MakeChamferFaces(prism, - d1, d2, IDlist_f)
- -chamfer_f1 = geompy.MakeChamfer(prism, - d1, d2, ShapeTypeFace, IDlist_f)
- -- -
# perform a symmetric chamfer on all edges of the given shape
- -chamfer_all = geompy.MakeChamferAll(prism, - d1)
- -- -
# add objects in the study
- -id_prism = geompy.addToStudy(prism,"Prism")
- -id_chamfer_e = geompy.addToStudy(chamfer_e,"Chamfer - edge")
- -id_chamfer_f = geompy.addToStudy(chamfer_f,"Chamfer - faces")
- -id_chamfer_f1 = geompy.addToStudy(chamfer_f1,"Chamfer - faces 1")
- -id_chamfer_all = geompy.addToStudy(chamfer_all,"Chamfer - all")
- -- -
# display the prism and the results of chamfer operation
- -gg.createAndDisplayGO(id_prism)
- -gg.setDisplayMode(id_prism,1)
- -gg.createAndDisplayGO(id_chamfer_e)
- -gg.setDisplayMode(id_chamfer_e,1)
- -gg.createAndDisplayGO(id_chamfer_f)
- -gg.setDisplayMode(id_chamfer_f,1)
- -gg.createAndDisplayGO(id_chamfer_f1)
- -gg.setDisplayMode(id_chamfer_f1,1)
- -gg.createAndDisplayGO(id_chamfer_all)
- -gg.setDisplayMode(id_chamfer_all,1) -
- -- -
- - - - + + + + + +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(10, + 40, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 50)
+ +p3 = geompy.MakeVertex(50, + 80, 0)
+ +v = geompy.MakeVector(p1, + p2)
+ +vt = geompy.MakeVector(p1, + p3)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# translate the given object along the vector, specified by its end + points
+ +# (all three functions produce the same result)
+ +translation1 = geompy.MakeTranslationTwoPoints(cylinder, + p1, p3)
+ +translation2 = geompy.MakeTranslation(cylinder, + 40, 40, 0)
+ +translation3 = geompy.MakeTranslationVector(cylinder, + vt)
+ ++ +
# add objects in the study
+ +id_cylinder = geompy.addToStudy(cylinder, + "Cylinder")
+ +id_translation1 = + geompy.addToStudy(translation1, "Translation1")
+ +id_translation2 = + geompy.addToStudy(translation2, "Translation2")
+ +id_translation3 = + geompy.addToStudy(translation3, "Translation3")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cylinder)
+ +gg.setDisplayMode(id_cylinder,1)
+ +gg.createAndDisplayGO(id_translation1)
+ +gg.setDisplayMode(id_translation1,1)
+ +gg.createAndDisplayGO(id_translation2)
+ +gg.setDisplayMode(id_translation2,1)
+ +gg.createAndDisplayGO(id_translation3)
+ +gg.setDisplayMode(id_translation3,1) +
+ +import geompy
+ +import salome
+ +import math
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(10, + 40, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 50)
+ +p3 = geompy.MakeVertex(10, + 50,-20)
+ +p4 = geompy.MakeVertex(10, + 50, 60)
+ +v = geompy.MakeVector(p1, + p2)
+ +vr = geompy.MakeVector(p3, + p4)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# rotate the given object around the given axis by the given angle
+ +rotation = geompy.MakeRotation(cylinder, + vr, math.pi)
+ ++ +
# add objects in the study
+ +id_vr = geompy.addToStudy(vr, + "Rotation axis")
+ +id_cylinder = geompy.addToStudy(cylinder, + "Cylinder")
+ +id_rotation = geompy.addToStudy(rotation, + "Rotation")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_vr)
+ +gg.createAndDisplayGO(id_cylinder)
+ +gg.setDisplayMode(id_cylinder,1)
+ +gg.createAndDisplayGO(id_rotation)
+ +gg.setDisplayMode(id_rotation,1) +
+ ++ +
import geompy
+ +import salome
+ +import math
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a vertex and a vector
+ +p1 = geompy.MakeVertex(10, + 40, 0)
+ +p2 = geompy.MakeVertex( + 0, 0, 50)
+ +v = geompy.MakeVector(p1, + p2)
+ ++ +
# create a cylinder
+ +height = 35
+ +radius1 = 20
+ +cylinder = geompy.MakeCylinder(p1, + v, radius1, height)
+ ++ +
# create local coordinate systems
+ +cs1 = geompy.MakeMarker( + 0, 0, 0, 1,0,0, 0,1,0)
+ +cs2 = geompy.MakeMarker(30,40,40, + 1,0,0, 0,1,0)
+ ++ +
# modify the location of the given object
+ +position = geompy.MakePosition(cylinder, + cs1, cs2)
+ ++ +
# add objects in the study
+ +id_cs1 = geompy.addToStudy(cs1, + "Coordinate system 1")
+ +id_cs2 = geompy.addToStudy(cs2, + "Coordinate system 2")
+ +id_cylinder = geompy.addToStudy(cylinder, + "Cylinder")
+ +id_position = geompy.addToStudy(position, + "Position")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_cylinder)
+ +gg.setDisplayMode(id_cylinder,1)
+ +gg.createAndDisplayGO(id_position)
+ +gg.setDisplayMode(id_position,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a box
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ ++ +
# create an object, symmetrical to the given one relatively the given + plane
+ +p1 = geompy.MakeVertex( + 0, 25, 0)
+ +p2 = geompy.MakeVertex( + 5, 25, 0)
+ +p3 = geompy.MakeVertex( + 0,-30, 40)
+ +plane = geompy.MakePlaneThreePnt(p1, + p2, p3, 1000.)
+ +mirror1 = geompy.MakeMirrorByPlane(box, + plane)
+ ++ +
# create an object, symmetrical to the given one relatively the given + axis
+ +p4 = geompy.MakeVertex( + 210, 210, -20)
+ +p5 = geompy.MakeVertex( + 210, 210, 220)
+ +axis = geompy.MakeVector(p4, + p5)
+ +mirror2 = geompy.MakeMirrorByAxis(box, + axis)
+ ++ +
# create an object, symmetrical to the given one relatively the given + point
+ +mirror3 = geompy.MakeMirrorByPoint(box, + p4)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_plane = geompy.addToStudy(plane, + "Plane")
+ +id_mirror1 = geompy.addToStudy(mirror1, + "Mirror plane")
+ +id_axis = geompy.addToStudy(axis, + "Axis")
+ +id_mirror2 = geompy.addToStudy(mirror2, + "Mirror axis")
+ +id_p4 = geompy.addToStudy(p4, + "Point")
+ +id_mirror3 = geompy.addToStudy(mirror3, + "Mirror point")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_plane)
+ +gg.createAndDisplayGO(id_mirror1)
+ +gg.setDisplayMode(id_mirror1,1)
+ +gg.createAndDisplayGO(id_axis)
+ +gg.createAndDisplayGO(id_mirror2)
+ +gg.setDisplayMode(id_mirror2,1)
+ +gg.createAndDisplayGO(id_p4)
+ +gg.createAndDisplayGO(id_mirror3)
+ +gg.setDisplayMode(id_mirror3,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a box and a sphere
+ +box = geompy.MakeBoxDXDYDZ(200, + 200, 200)
+ ++ +
# scale the given object by the factor
+ +p0 = geompy.MakeVertex(100, + 100, 100)
+ +factor = 0.5
+ +scale = geompy.MakeScaleTransform(box, + p0, factor)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_scale = geompy.addToStudy(scale, + "Scale")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_scale)
+ +gg.setDisplayMode(id_scale,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create a box and a sphere
+ +box = geompy.MakeBox(20, + 20, 20, 200, 200, 200)
+ ++ +
# create a new object as offset of the given object
+ +offset = geompy.MakeOffset(box, + 70.)
+ ++ +
# add objects in the study
+ +id_box = geompy.addToStudy(box, + "Box")
+ +id_offset = geompy.addToStudy(offset, + "Offset")
+ ++ +
# display the results
+ +gg.createAndDisplayGO(id_box)
+ +gg.setDisplayMode(id_box,1)
+ +gg.createAndDisplayGO(id_offset) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices and vectors
+ +p0 = + geompy.MakeVertex( 0., 0., + 0.)
+ +px = + geompy.MakeVertex(20., 0., + 0.)
+ +py = + geompy.MakeVertex( 0., 20., 0.)
+ +pz = + geompy.MakeVertex( 0., 0., + 20.)
+ +pxy = geompy.MakeVertex( + 50., 0., 0.)
+ +pxyz = geompy.MakeVertex( + 50., 50., 50.)
+ +vz = + geompy.MakeVector(p0, pz)
+ +vxy = geompy.MakeVector(px, + py)
+ +vtr1d = geompy.MakeVector(p0, + pxyz)
+ +vtr2d = geompy.MakeVector(p0, + pxy)
+ ++ +
# create an arc
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create a planar face
+ +face = geompy.MakeFace(wire, + 1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrismVecH(face, + vz, 20.0)
+ ++ +
# translate the given object along the given vector a given number of + times
+ +tr1d = geompy.MakeMultiTranslation1D(prism, + vtr1d, 20, 4)
+ ++ +
# consequently apply two specified translations to the object a given + number of times
+ +tr2d = geompy.MakeMultiTranslation2D(prism, + vtr1d, 20, 4, vtr2d, 80, 3)
+ ++ +
# add objects in the study
+ +id_prism = geompy.addToStudy(prism,"Prism")
+ +id_tr1d = geompy.addToStudy(tr1d,"Translation + 1D")
+ +id_tr2d = geompy.addToStudy(tr2d,"Translation + 2D")
+ ++ +
# display the prism and the results of fillet operation
+ +gg.createAndDisplayGO(id_prism)
+ +gg.setDisplayMode(id_prism,1)
+ +gg.createAndDisplayGO(id_tr1d)
+ +gg.setDisplayMode(id_tr1d,1)
+ +gg.createAndDisplayGO(id_tr2d)
+ +gg.setDisplayMode(id_tr2d,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ ++ +
# create vertices and vectors
+ +p0 = + geompy.MakeVertex( 0., 0., + 0.)
+ +px = + geompy.MakeVertex(20., 0., + 0.)
+ +py = + geompy.MakeVertex( 0., 20., 0.)
+ +pz = + geompy.MakeVertex( 0., 0., + 20.)
+ +pxyz = geompy.MakeVertex( + 50., 50., 10.)
+ +vz = + geompy.MakeVector(p0, pz)
+ +vxy = geompy.MakeVector(px, + py)
+ +vrot1d = geompy.MakeVector(p0, + pxyz)
+ ++ +
# create an arc
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create a planar face
+ +face = geompy.MakeFace(wire, + 1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrismVecH(face, + vz, 20.0)
+ ++ +
# rotate the given object around the given axis by the given angle a + given number of times
+ +rot1d = geompy.MultiRotate1D(prism, + vrot1d, 4)
+ ++ +
# rotate the given object around the given axis by the given angle a + given number of times
+ +# and multi-translate the result of each rotation
+ +rot2d = geompy.MultiRotate2D(prism, + vrot1d, 60, 4, 50, 5)
+ ++ +
# add objects in the study
+ +id_prism = geompy.addToStudy(prism,"Prism")
+ +id_rot1d = geompy.addToStudy(rot1d,"Rotation + 1D")
+ +id_rot2d = geompy.addToStudy(rot2d,"Rotation + 2D")
+ ++ +
# display the prism and the results of fillet operation
+ +gg.createAndDisplayGO(id_prism)
+ +gg.setDisplayMode(id_prism,1)
+ +gg.createAndDisplayGO(id_rot1d)
+ +gg.setDisplayMode(id_rot1d,1)
+ +gg.createAndDisplayGO(id_rot2d)
+ +gg.setDisplayMode(id_rot2d,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ +radius = + 10.
+ +ShapeTypeEdge = geompy.ShapeType["EDGE"]
+ ++ +
# create vertices and vectors
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +px = + geompy.MakeVertex(100., 0., + 0.)
+ +py = + geompy.MakeVertex( 0., + 100., 0.)
+ +pz = + geompy.MakeVertex( 0., + 0., + 100.)
+ +vz = + geompy.MakeVector(p0, pz)
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create a planar face
+ +face = geompy.MakeFace(wire, + 1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrismVecH(face, + vz, 100.0)
+ ++ +
# get the list of IDs (IDList) for the fillet
+ +prism_edges = geompy.SubShapeAllSorted(prism, + ShapeTypeEdge)
+ +IDlist_e = []
+ +IDlist_e.append(geompy.GetSubShapeID(prism, + prism_edges[0]))
+ +IDlist_e.append(geompy.GetSubShapeID(prism, + prism_edges[1]))
+ +IDlist_e.append(geompy.GetSubShapeID(prism, + prism_edges[2]))
+ ++ +
# make a fillet on the specified edges of the given shape
+ +fillet = geompy.MakeFillet(prism, + radius, ShapeTypeEdge, IDlist_e)
+ ++ +
# make a fillet on all edges of the given shape
+ +filletall = geompy.MakeFilletAll(prism, + radius)
+ ++ +
# add objects in the study
+ +id_prism = geompy.addToStudy(prism,"Prism")
+ +id_fillet = geompy.addToStudy(fillet,"Fillet")
+ +id_filletall = geompy.addToStudy(filletall,"Fillet + all")
+ ++ +
# display the prism and the results of fillet operation
+ +gg.createAndDisplayGO(id_prism)
+ +gg.setDisplayMode(id_prism,1)
+ +gg.createAndDisplayGO(id_fillet)
+ +gg.setDisplayMode(id_fillet,1)
+ +gg.createAndDisplayGO(id_filletall)
+ +gg.setDisplayMode(id_filletall,1) +
+ ++ +
import geompy
+ +import salome
+ +gg = salome.ImportComponentGUI("GEOM")
+ +d1 = 10.
+ +d2 = 10.
+ +ShapeTypeFace = geompy.ShapeType["FACE"]
+ ++ +
# create vertices and vectors
+ +p0 = + geompy.MakeVertex( 0., + 0., + 0.)
+ +px = + geompy.MakeVertex(100., 0., + 0.)
+ +py = + geompy.MakeVertex( 0., + 100., 0.)
+ +pz = + geompy.MakeVertex( 0., + 0., + 100.)
+ +vz = + geompy.MakeVector(p0, pz)
+ +vxy = geompy.MakeVector(px, + py)
+ ++ +
# create an arc
+ +arc = geompy.MakeArc(py, + pz, px)
+ ++ +
# create a wire
+ +wire = geompy.MakeWire([vxy, + arc])
+ ++ +
# create a planar face
+ +face = geompy.MakeFace(wire, + 1)
+ ++ +
# create a prism
+ +prism = geompy.MakePrismVecH(face, + vz, 100.0)
+ ++ +
# get the list of IDs (IDList) for the chamfer
+ +prism_faces = geompy.SubShapeAllSorted(prism, + ShapeTypeFace)
+ +f_ind_1 = geompy.GetSubShapeID(prism, + prism_faces[0])
+ +f_ind_2 = geompy.GetSubShapeID(prism, + prism_faces[1])
+ +IDlist_f = [f_ind_1, + f_ind_2]
+ ++ +
# perform a chamfer on the edges common to the specified faces
+ +chamfer_e = geompy.MakeChamferEdge(prism, + d1, d2, f_ind_1, f_ind_2)
+ ++ +
# perform a chamfer on all edges of the specified faces
+ +chamfer_f = geompy.MakeChamferFaces(prism, + d1, d2, IDlist_f)
+ +chamfer_f1 = geompy.MakeChamfer(prism, + d1, d2, ShapeTypeFace, IDlist_f)
+ ++ +
# perform a symmetric chamfer on all edges of the given shape
+ +chamfer_all = geompy.MakeChamferAll(prism, + d1)
+ ++ +
# add objects in the study
+ +id_prism = geompy.addToStudy(prism,"Prism")
+ +id_chamfer_e = geompy.addToStudy(chamfer_e,"Chamfer + edge")
+ +id_chamfer_f = geompy.addToStudy(chamfer_f,"Chamfer + faces")
+ +id_chamfer_f1 = geompy.addToStudy(chamfer_f1,"Chamfer + faces 1")
+ +id_chamfer_all = geompy.addToStudy(chamfer_all,"Chamfer + all")
+ ++ +
# display the prism and the results of chamfer operation
+ +gg.createAndDisplayGO(id_prism)
+ +gg.setDisplayMode(id_prism,1)
+ +gg.createAndDisplayGO(id_chamfer_e)
+ +gg.setDisplayMode(id_chamfer_e,1)
+ +gg.createAndDisplayGO(id_chamfer_f)
+ +gg.setDisplayMode(id_chamfer_f,1)
+ +gg.createAndDisplayGO(id_chamfer_f1)
+ +gg.setDisplayMode(id_chamfer_f1,1)
+ +gg.createAndDisplayGO(id_chamfer_all)
+ +gg.setDisplayMode(id_chamfer_all,1) +
+ ++ +
+ + + + diff --git a/doc/salome/gui/GEOM/translation.htm b/doc/salome/gui/GEOM/translation.htm index 83cc3bfff..8ab26d96a 100755 --- a/doc/salome/gui/GEOM/translation.htm +++ b/doc/salome/gui/GEOM/translation.htm @@ -1,187 +1,192 @@ - - - - - -
To produce - a Translation in the Main Menu - select Operations - > Transformation - - > Translation
- -- -
This Operation makes a translation of an Object. To translate a shape you need - to define the base shape and the coordinates of the vector of translation. - Create a copy checkbox allows - to keep the initial object, otherwise it will be removed.
- -The - Result of all operations will be any - GEOM_Object.
- -- -
Firstly you can define an Object - and the vector coordinates along the axes.
- -TUI Command: - geompy.MakeTranslation(Shape, DX, - DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are - components of translation vector.
- -Arguments: - Name + 1 shape + 3 values (coordinates).
- -- -
- -
Secondly you can define an Object - and the start and the end points of the vector
- -TUI Command: - geompy.MakeTranslationTwoPoints(Object, - Point1, Point2)
- -Arguments: - Name + 1 shape + 2 vertices
- -- -
- -
Finally you can define an Object and - the vector
- -TUI Command: - geompy.MakeTranslationVector(Object, Vector)
- -Arguments: - Name + 1 shape + 1 vector.
- -- -
- -
- -
Example:
- -- -
- -
Our TUI Scripts - provide you with useful examples of the use of Transformation - Operations.
- -- - - - + + + + + +
To produce + a Translation in the Main Menu + select Operations - > Transformation + - > Translation
+ ++ +
This Operation makes a translation of an Object. To translate a shape you need + to define the base shape and the coordinates of the vector of translation. + Create a copy checkbox allows + to keep the initial object, otherwise it will be removed.
+ +The + Result of all operations will be any + GEOM_Object.
+ ++ +
Firstly you can define an Object + and the vector coordinates along the axes.
+ +TUI Command: + geompy.MakeTranslation(Shape, DX, + DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are + components of translation vector.
+ +Arguments: + Name + 1 shape + 3 values (coordinates).
+ ++ +
+ +
Secondly you can define an Object + and the start and the end points of the vector
+ +TUI Command: + geompy.MakeTranslationTwoPoints(Object, + Point1, Point2)
+ +Arguments: + Name + 1 shape + 2 vertices
+ ++ +
+ +
Finally you can define an Object and + the vector
+ +TUI Command: + geompy.MakeTranslationVector(Object, Vector)
+ +Arguments: + Name + 1 shape + 1 vector.
+ ++ +
+ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of the use of Transformation + Operations.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/transparency.htm b/doc/salome/gui/GEOM/transparency.htm index d4db4339d..9c9c05cab 100755 --- a/doc/salome/gui/GEOM/transparency.htm +++ b/doc/salome/gui/GEOM/transparency.htm @@ -1,120 +1,126 @@ - - - - - -
You can change the transparency - of a shape in the range between 0 (absolutely opaque) and 1 (absolutely - transparent and thus invisible) in the following dialog box.
- -- -
- -
or - using a TUI Command: gg.setTransparency(ID, Double)
- -- -
Examples:
- -- -
Opaque 50% - Transparent
- -
- -
Our TUI Scripts - provide you with useful examples of Changing - Display Parameters.
- -- - - - + + + + + +
You can change the transparency + of a shape in the range between 0 (absolutely opaque) and 1 (absolutely + transparent and thus invisible) in the following dialog box.
+ ++ +
+ +
or + using a TUI Command: gg.setTransparency(ID, Double)
+ ++ +
Examples:
+ ++ +
Opaque 50% + Transparent
+ +
+ +
Our TUI Scripts + provide you with useful examples of Changing + Display Parameters.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/turus.htm b/doc/salome/gui/GEOM/turus.htm index b40aa5cc5..62b81e72d 100755 --- a/doc/salome/gui/GEOM/turus.htm +++ b/doc/salome/gui/GEOM/turus.htm @@ -1,147 +1,151 @@ - - - - - -
To create a Torus - in the Main Menu select New Entity - > Primitives - > Torus
- -- -
There are two algorithms for creation of a Torus. -
- -The - Result of each operation will be a - GEOM_Object (SOLID).
- -- -
Firstly, you can define a Torus - by the given Base Point, the normal - Vector and the Major and Minor - Radiuses.
- -TUI Command: geompy.MakeTorus(Point, - Vector, RadiusMajor, RadiusMinor) ,
- -Arguments: - Name + 1 vertex - + 1 vector (for direction) + 2 values (1 & 2 Radius).
- -- -
Secondly, you can define a Torus with the center at the origin of coordinates - by its Major and Minor Radiuses. -
- -TUI Command: geompy.MakeTorusRR(RadiusMajor, - RadiusMinor)
- -Arguments: - Name + 2 values (1 & 2 Radius from the origin).
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Primitives.
- -- - - - + + + + + +
To create a Torus + in the Main Menu select New Entity - > Primitives - > Torus
+ ++ +
There are two algorithms for creation of a Torus. +
+ +The + Result of each operation will be a + GEOM_Object (SOLID).
+ ++ +
Firstly, you can define a Torus + by the given Base Point, the normal + Vector and the Major and Minor + Radiuses.
+ +TUI Command: geompy.MakeTorus(Point, + Vector, RadiusMajor, RadiusMinor) ,
+ +Arguments: + Name + 1 vertex + + 1 vector (for direction) + 2 values (1 & 2 Radius).
+ ++ +
Secondly, you can define a Torus with the center at the origin of coordinates + by its Major and Minor Radiuses. +
+ +TUI Command: geompy.MakeTorusRR(RadiusMajor, + RadiusMinor)
+ +Arguments: + Name + 2 values (1 & 2 Radius from the origin).
+ ++ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Primitives.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/vector.htm b/doc/salome/gui/GEOM/vector.htm index 54eebb5f9..e6ab39507 100755 --- a/doc/salome/gui/GEOM/vector.htm +++ b/doc/salome/gui/GEOM/vector.htm @@ -1,151 +1,157 @@ - - - - - -
To - create a Vector in the Main - Menu select New Entity - > - Basic - > Vector
- -- -
There - are 2 algorithms to create a Vector in - the 3D space.
- -The - Result of each operation will be a - GEOM_Object (edge).
- -- -
Firstly, - you can define a Vector by its - Start and End Points
- -TUI Command: geompy.MakeVector(Point1, - Point2)
- -Arguments - : Name + 2 vertices.
- -- -
- -
Secondly, you can define a Vector - starting in the Origin of coordinates - by its End Point.
- -TUI Command: - geompy.MakeVectorDXDYDZ(DX, - DY, DZ)
- -Arguments - : Name + 3 values
- -- -
- -
- -
Our TUI Scripts provide you with useful examples - of creation of Basic - Geometric Objects.
- -- - - - + + + + + +
To + create a Vector in the Main + Menu select New Entity - > + Basic - > Vector
+ ++ +
There + are 2 algorithms to create a Vector in + the 3D space.
+ +The + Result of each operation will be a + GEOM_Object (edge).
+ ++ +
Firstly, + you can define a Vector by its + Start and End Points
+ +TUI Command: geompy.MakeVector(Point1, + Point2)
+ +Arguments + : Name + 2 vertices.
+ ++ +
+ +
Secondly, you can define a Vector + starting in the Origin of coordinates + by its End Point.
+ +TUI Command: + geompy.MakeVectorDXDYDZ(DX, + DY, DZ)
+ +Arguments + : Name + 3 values
+ ++ +
+ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Basic + Geometric Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/viewing_geometrical_objects.htm b/doc/salome/gui/GEOM/viewing_geometrical_objects.htm index b3f734767..48d640c53 100755 --- a/doc/salome/gui/GEOM/viewing_geometrical_objects.htm +++ b/doc/salome/gui/GEOM/viewing_geometrical_objects.htm @@ -1,155 +1,155 @@ - - - - - -
Newly created geometrical objects are automatically displayed in the - OCC 3D Viewer. -
- -- -
After the object has appeared in the Viewer, you can select it with - left mouse click to change its presentation parameters and access to other - useful options by right-clicking on the selected object.
- -- -
- -
Rename - allows - to change the name of the geometric object. -
Display - Mode - allows to select between - Wireframe and Shading presentation.
Color - - allows to change the filling color in the standard - Select Color menu.
Transparency - allows to change the - transparency of mesh elements.
Isos - - allows to change the number of isolines - displayed within a shape.
Erase - allows to hide the selected mesh from the
- viewer. TUI Command : sg.EraseOnly(ID)
Erase all -
- allows to hide all objects from the viewer. TUI Command: sg.EraseAll()
Display Only -allows to display only the selected
- mesh, hiding all other from the viewer. TUI Command: sg.DisplayOnly(ID)
Update - - refreshes the presentation of your mesh in the Object Browser, applying - all recent changes.
Dump view - - exports an object from the viewer in bmp, png, jpg or jpeg image format. -
Change background - - allows to redefine the background color. By default it is black.
- - - - + + + + + +
Newly created geometrical objects are automatically displayed in the + OCC 3D Viewer. +
+ ++ +
After the object has appeared in the Viewer, you can select it with + left mouse click to change its presentation parameters and access to other + useful options by right-clicking on the selected object.
+ ++ +
+ +
Rename - allows + to change the name of the geometric object. +
Display + Mode - allows to select between + Wireframe and Shading presentation.
Color + - allows to change the filling color in the standard + Select Color menu.
Transparency - allows to change the + transparency of mesh elements.
Isos + - allows to change the number of isolines + displayed within a shape.
Erase - allows to hide the selected mesh from the
+ viewer. TUI Command : sg.EraseOnly(ID)
Erase all -
+ allows to hide all objects from the viewer. TUI Command: sg.EraseAll()
Display Only -allows to display only the selected
+ mesh, hiding all other from the viewer. TUI Command: sg.DisplayOnly(ID)
Update + - refreshes the presentation of your mesh in the Object Browser, applying + all recent changes.
Dump view + - exports an object from the viewer in bmp, png, jpg or jpeg image format. +
Change background + - allows to redefine the background color. By default it is black.
+ + + + diff --git a/doc/salome/gui/GEOM/whcsh_home.htm b/doc/salome/gui/GEOM/whcsh_home.htm index 92ccd93b2..ad8f8d4c0 100755 --- a/doc/salome/gui/GEOM/whcsh_home.htm +++ b/doc/salome/gui/GEOM/whcsh_home.htm @@ -1,600 +1,600 @@ - - - - - + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whcshdata.htm b/doc/salome/gui/GEOM/whcshdata.htm index 9576ec08b..2f9ae70a0 100755 --- a/doc/salome/gui/GEOM/whcshdata.htm +++ b/doc/salome/gui/GEOM/whcshdata.htm @@ -1,87 +1,87 @@ - - -
"+gsNoTopics+"
" - else - sHTML=""+sErrorMsg+"
"; - - var resultDiv=getElement(gsResultDivID); - if(resultDiv) - resultDiv.innerHTML=sHTML; -} - -function ftsFindKeyword() -{ - var sKey=gsCW; - var bNeedLoad=false; - var aFtsContentsCon=null; - var s=0; - if(sKey==null) return; - if(!gsCheckKey||sKey!=gsCheckKey||gnIndexNum==0) - { - aFtsContentsCon=new Array(); - gnCheck=0; - gsCheckKey=sKey; - gnTopicCheck=0; - gaTopicCheckInfo=null; - } - else{ - s=gnIndexNum; - aFtsContentsCon=gaFtsContentsCon; - } - for(var i=gnCheck;i"+gsNoTopics+"
" + else + sHTML=""+sErrorMsg+"
"; + + var resultDiv=getElement(gsResultDivID); + if(resultDiv) + resultDiv.innerHTML=sHTML; +} + +function ftsFindKeyword() +{ + var sKey=gsCW; + var bNeedLoad=false; + var aFtsContentsCon=null; + var s=0; + if(sKey==null) return; + if(!gsCheckKey||sKey!=gsCheckKey||gnIndexNum==0) + { + aFtsContentsCon=new Array(); + gnCheck=0; + gsCheckKey=sKey; + gnTopicCheck=0; + gaTopicCheckInfo=null; + } + else{ + s=gnIndexNum; + aFtsContentsCon=gaFtsContentsCon; + } + for(var i=gnCheck;i0);
- return true;
-}
-
-function updateUsedK(aDataCon,aOriPos,aOldPos,bDown)
-{
- for(var i=0;i 0);
+ return true;
+}
+
+function updateUsedK(aDataCon,aOriPos,aOldPos,bDown)
+{
+ for(var i=0;i
";
- }
- else{
- for(var i=0;i
![]() |
- ![]() |
- ![]() |
-
![]() |
- ![]() |
- ![]() |
-
-
- Author: eHelp Corporation - |
- ![]() |
- |
- Powered by: WebHelp 5.50
- |
- ![]() |
-
Start Page | geom.htm | |
Skin Name | Default | |
Generating Time | 17:29 01/30/2006 | |
Language ID | 1033 | |
Compile Script | webhelp5_compile_script.xml | |
Compile Build Version | 13.10.606 | |
Product Name | WebHelp 5.50 | |
Authoring Tool Name | RoboHelp X5 |
Start Page | index.htm | |
Skin Name | ||
Generating Time | 12:40 05/22/2006 | |
Language ID | 1033 | |
Compile Script | webhelp5_compile_script.xml | |
Compile Build Version | 13.10.606 | |
Product Name | WebHelp 5.50 | |
Authoring Tool Name | RoboHelp X5 |
- |
+ |
"+_textToHtml(gsSearchFormTitle)+" | "; - if(gbNav6) - sButton=" |
"); - else - document.write(" |
"); + else + document.write(" |
"+getIntopicBar("left")+" | "; - if(nAligns&2) - sHTML+=""+getIntopicBar("center")+" | "; - if(nAligns&4) - sHTML+=""+getIntopicBar("right")+" | "; - sHTML+="
"+getIntopicBar("left")+" | "; + if(nAligns&2) + sHTML+=""+getIntopicBar("center")+" | "; + if(nAligns&4) + sHTML+=""+getIntopicBar("right")+" | "; + sHTML+="
To create - a Wire in the Main Menu select - New Entity - > Build - > Wire
- -- -
You can create a Wire from several - connected edges and wires by selecting them in the object browser or in - the viewer holding Shift button.
- -The - Result will - be a GEOM_Object (WIRE).
- -- -
TUI Command : - geompy.MakeWire(ListOfShape).
- -- -
Arguments: - Name + List of connected wires or edges..
- -- -
Dialog Box:
- -- -
- -
Example:
- -- -
- -
Our TUI Scripts provide you with useful examples - of creation of Advanced Geometric - Objects.
- -- - - - + + + + + +
To create + a Wire in the Main Menu select + New Entity - > Build - > Wire
+ ++ +
You can create a Wire from several + connected edges and wires by selecting them in the object browser or in + the viewer holding Shift button.
+ +The + Result will + be a GEOM_Object (WIRE).
+ ++ +
TUI Command : + geompy.MakeWire(ListOfShape).
+ ++ +
Arguments: + Name + List of connected wires or edges..
+ ++ +
Dialog Box:
+ ++ +
+ +
Example:
+ ++ +
+ +
Our TUI Scripts provide you with useful examples + of creation of Advanced Geometric + Objects.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/wireframe_and_shading.htm b/doc/salome/gui/GEOM/wireframe_and_shading.htm index e37da5e29..e5716ceb2 100755 --- a/doc/salome/gui/GEOM/wireframe_and_shading.htm +++ b/doc/salome/gui/GEOM/wireframe_and_shading.htm @@ -1,146 +1,150 @@ - - - - - -
This option is relevant for viewing 3D - objects. Wireframe mode means - that you can see only edges - of the object, while its shells remain transparent. Shading - mode means that the shells are filled with color.
- -- -
To change the display mode right-click on - this geometrical object in the viewer and from the pop-up menu select - Display mode --> Wireframe - or Shading.
- -- -
TUI - Command: gg.setDisplayMode(ID, Short)
- -- -
Examples:
- -- -
Wireframe
- -
Shading
- -- -
Our TUI Scripts provide you with useful examples - of Changing Display - Parameters.
- -- - - - + + + + + +
This option is relevant for viewing 3D + objects. Wireframe mode means + that you can see only edges + of the object, while its shells remain transparent. Shading + mode means that the shells are filled with color.
+ ++ +
To change the display mode right-click on + this geometrical object in the viewer and from the pop-up menu select + Display mode --> Wireframe + or Shading.
+ ++ +
TUI + Command: gg.setDisplayMode(ID, Short)
+ ++ +
Examples:
+ ++ +
Wireframe
+ +
Shading
+ ++ +
Our TUI Scripts provide you with useful examples + of Changing Display + Parameters.
+ ++ + + + diff --git a/doc/salome/gui/GEOM/working_plane.htm b/doc/salome/gui/GEOM/working_plane.htm index 8b8c33f30..2f5b6d645 100755 --- a/doc/salome/gui/GEOM/working_plane.htm +++ b/doc/salome/gui/GEOM/working_plane.htm @@ -1,131 +1,137 @@ - - - - - -
To create a Working Plane in - the Main Menu select New - Entity - > Basic - > Working Plane
- -- -
There are some algorithms to set the Working Plane and the Camera Position.
- -- -
Firstly, you can select a Plane - or a Planar Face to be your Working Plane
- -Arguments: - Name + 1 selection (face or planar face),
- -- -
Secondly, you can define a Working - Plane by two Vectors
- -Arguments: - Name + 2 - vectors,
- -- -
Finally, you can select one of three basic - projections of XYZ coordinate system to be your Working - Plane
- -- -
- -
- - - - + + + + + +
To create a Working Plane in + the Main Menu select New + Entity - > Basic - > Working Plane
+ ++ +
There are some algorithms to set the Working Plane and the Camera Position.
+ ++ +
Firstly, you can select a Plane + or a Planar Face to be your Working Plane
+ +Arguments: + Name + 1 selection (face or planar face),
+ ++ +
Secondly, you can define a Working + Plane by two Vectors
+ +Arguments: + Name + 2 + vectors,
+ ++ +
Finally, you can select one of three basic + projections of XYZ coordinate system to be your Working + Plane
+ ++ +
+ +
+ + + + diff --git a/doc/salome/gui/GEOM/working_with_groups.htm b/doc/salome/gui/GEOM/working_with_groups.htm index 0a549f722..59f91ccc1 100755 --- a/doc/salome/gui/GEOM/working_with_groups.htm +++ b/doc/salome/gui/GEOM/working_with_groups.htm @@ -1,264 +1,269 @@ - - - - - -
The Salome platform offers - such a useful functionality as creation and editing groups of subshapes - of a geometrical object which makes handling subshapes much easier. However - the functionality is available in the OCC viewer only.
- -- -
Create
- a group
- -
To create a group of subshapes of a geometrical - object in the main menu select New entity - > Group > Create.
- -The following menu will appear.
- -- -
- -
In this Menu:
- -- -
Shape - Type radio button define the type of elements for the group (points, - lines, planes or shapes).
Group - Name - here you can enter the name of the group, by default, it - is Group_n.
Then, using the button, select the Main
- Shape (a geometrical object on which the group will be created).
- You can select the elements of your group in two ways:
Clicking - Select Sub-Shapes button you can - select them manually in the 3D Viewer, and add to the group by clicking - the Add button (keep down the - Shift button on the keyboard to select several elements and add all them - together). The indexes of the selected elements will be displayed in the - list. To delete elements from the list, select them and click Remove - button.
Clicking - Select All button you can add - all object's elements of a certain type in the list of the elements of - the group. To delete elements from the list, select them and click Remove button.
Finally, - confirm your selection by clicking OK - (also closes the Menu) or Apply - (leaves the Menu open for creation of other groups), or skip it by clicking - Close button.
- -
The - Result of the operation will be a - GEOM_Object.
- -- -
TUI Command: - geompy.CreateGroup(MainShape, ShapeType), - where MainShape is a shape for which the group is created, ShapeType is - a type of shapes in the created group.
- -- -
Arguments: - 1 Shape + Type of subshape.
- -- -
Example:
- -- -
- -
- -
- -
Edit
- a group
- -
To Edit an - existing group in the main menu select New - entity > Group > Edit. This menu is designed in the same - way as the Create a group menu. -
- -- -
The - Result of the operation will be a - GEOM_Object.
- -- -
TUI Command: -
- -geompy.AddObject(Group, - SubShapeID), where Group is a group to which a sub shape has to - be added, SubShapeID is an ID of the sub shape to be added to the group
geompy.RemoveObject(Group, - SubShapeID), where Group is a group from which a sub shape has - to be removed, SubShapeID is an ID of the sub shape to be removed from - the group
geompy.GetObjectIDs(Group), - where Group is a group for which its object ID’s are returned.
Returns: - List of IDs.
- -- -
Arguments: - 1 Shape + its subshapes.
- -- -
Dialog Box:
- -- -
- -
Our TUI Scripts - provide you with useful examples of Working - with Groups.
- -- - - - + + + + + +
Creation and editing groups of subshapes of a geometrical object makes + handling subshapes much easier. This functionality is available in OCC + viewer only.
+ ++ +
Create
+ a group
+ +
To create a group of subshapes of a geometrical + object in the main menu select New entity + > Group > Create.
+ +The following menu will appear.
+ ++ +
+ +
In this Menu:
+ ++ +
Shape + Type radio button define the type of elements for the group (points, + lines, planes or shapes).
Group + Name - here you can enter the name of the group, by default, it + is Group_n.
Then, using the button, select the Main
+ Shape (a geometrical object on which the group will be created).
+ You can select the elements of your group in two ways:
Clicking + Select Sub-Shapes button you can + select them manually in the 3D Viewer, and add to the group by clicking + the Add button (keep down the + Shift button on the keyboard to select several elements and add all them + together). The indexes of the selected elements will be displayed in the + list. To delete elements from the list, select them and click Remove + button.
Clicking + Select All button you can add + all object's elements of a certain type in the list of the elements of + the group. To delete elements from the list, select them and click Remove button.
Finally, + confirm your selection by clicking OK + (also closes the Menu) or Apply + (leaves the Menu open for creation of other groups), or skip it by clicking + Close button.
+ +
The + Result of the operation will be a + GEOM_Object.
+ ++ +
TUI Command: + geompy.CreateGroup(MainShape, ShapeType), + where MainShape is a shape for which the group is created, ShapeType is + a type of shapes in the created group.
+ ++ +
Arguments: + 1 Shape + Type of subshape.
+ ++ +
Example:
+ ++ +
+ +
+ +
+ +
Edit
+ a group
+ +
To Edit an + existing group in the main menu select New + entity > Group > Edit. This menu is designed in the same + way as the Create a group menu. +
+ ++ +
The + Result of the operation will be a + GEOM_Object.
+ ++ +
TUI Command: +
+ +geompy.AddObject(Group, + SubShapeID), where Group is a group to which a sub shape has to + be added, SubShapeID is an ID of the sub shape to be added to the group
geompy.RemoveObject(Group, + SubShapeID), where Group is a group from which a sub shape has + to be removed, SubShapeID is an ID of the sub shape to be removed from + the group
geompy.GetObjectIDs(Group), + where Group is a group for which its object ID’s are returned.
Returns: + List of IDs.
+ ++ +
Arguments: + 1 Shape + its subshapes.
+ ++ +
Dialog Box:
+ ++ +
+ +
Our TUI Scripts + provide you with useful examples of Working + with Groups.
+ ++ + + + diff --git a/doc/salome/gui/Makefile.in b/doc/salome/gui/Makefile.in index a44228d6c..78cad82e0 100644 --- a/doc/salome/gui/Makefile.in +++ b/doc/salome/gui/Makefile.in @@ -1,11 +1,25 @@ -# Copyright (C) 2003 CEA/DEN, EDF R&D +# Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +# CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS # +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. # +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # # File : Makefile.in # Author : Vasily Rusyaev (Open Cascade NN) # Module : doc -# $Header: top_srcdir=@top_srcdir@ top_builddir=../../.. @@ -14,9 +28,11 @@ VPATH=.:@srcdir@ @COMMENCE@ -docs: +usr_docs: cp -fr $(srcdir)/GEOM ./ - -find $(PWD) -name CVS -exec rm -rf {} \; + -find $(PWD) -name CVS -prune -exec rm -rf {} \; + +docs: usr_docs clean: rm -fr `ls | grep -v "Makefile"` @@ -27,7 +43,7 @@ distclean: clean install: mkdir -p $(docdir)/gui cp -rf GEOM $(docdir)/gui - -find $(PWD) -name CVS -exec rm -rf {} \; + -find $(PWD) -name CVS -prune -exec rm -rf {} \; uninstall: rm -rf $(docdir)/gui/GEOM