From: abd Date: Wed, 14 Jun 2006 07:50:25 +0000 (+0000) Subject: Merging from BR_DEBUG_3_2_0b1 X-Git-Tag: LAST_STABLE_VERSION_21_09_2006_ON_3_2_0~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2e7e45df7c96bd8f070cdd6550dabfe74a889379;p=modules%2Fgeom.git Merging from BR_DEBUG_3_2_0b1 --- 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 @@ - - - - - - - - Geometry Module Documentation - - - -
  -
-
                   -   
- - - - - - - - - -
- - - -
- -
-
-
-

Geometry MODULE Documentation

-
-
- - - - - -
-
- -
-

Application-About.png -     

-
- -
- - - - -
-
-
-
-
- -
- -
GUI Documentation
- -
- -
- -

-
- -
- -
TUI Documentation
- -
- -
- -

-
-
-
-
-
-
- - diff --git a/doc/salome/Makefile.in b/doc/salome/Makefile.in index 2af65570b..d65e5cd8f 100644 --- a/doc/salome/Makefile.in +++ b/doc/salome/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=../.. @@ -13,33 +27,48 @@ srcdir=@srcdir@ VPATH=.:@srcdir@ SUBDIRS= tui gui +SUBDIRSGUI= gui +SUBDIRSTUI= tui @COMMENCE@ -docs: - @@SETX@; for d in $(SUBDIRS); do \ +usr_docs: + @@SETX@; for d in $(SUBDIRSGUI); do \ + (cd $$d && $(MAKE) $@) || exit 1; \ + done; \ + +docs: usr_docs + +dev_docs: + @@SETX@; for d in $(SUBDIRSTUI); do \ (cd $$d && $(MAKE) $@) || exit 1; \ done; \ - cp -f $(srcdir)/GEOM_index_v3.1.0.html GEOM_index_v3.1.0.html clean: @@SETX@; for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ + if test -d $$d/GEOM; then \ + (cd $$d && $(MAKE) $@) || exit 1; \ + fi; \ done distclean: clean @@SETX@; for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ + if test -d $$d/GEOM; then \ + (cd $$d && $(MAKE) $@) || exit 1; \ + fi; \ done install: $(MAKE) docs - (cd tui && $(MAKE) install); - (cd gui && $(MAKE) install); - cp -f GEOM_index_v3.1.0.html $(docdir) + @@SETX@; for d in $(SUBDIRS); do \ + if test -d $$d/GEOM; then \ + (cd $$d && $(MAKE) $@); \ + fi; \ + done uninstall: @@SETX@; for d in $(SUBDIRS); do \ - (cd $$d && $(MAKE) $@) || exit 1; \ + if test -d $$d/GEOM; then \ + (cd $$d && $(MAKE) $@) || exit 1; \ + fi; \ done; \ - rm -fr $(docdir)/GEOM_index_v3.1.0.html diff --git a/doc/salome/gui/GEOM/add_point_on_edge.htm b/doc/salome/gui/GEOM/add_point_on_edge.htm index 2134b248d..6d969d30a 100755 --- a/doc/salome/gui/GEOM/add_point_on_edge.htm +++ b/doc/salome/gui/GEOM/add_point_on_edge.htm @@ -1,165 +1,166 @@ - - - - - -Add Point on Edge - - - - - - - - - - - - -

Add Point on Edge

- -

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.

- -

 

- - - - + + + + + +Add Point on Edge + + + + + + + + + + + + + +

Add Point on Edge

+ +

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 @@ - - - - - -Arc - - - - - - - - - - - -

Arc

- -

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.

- -

 

- - - - + + + + + +Arc + + + + + + + + + + + + +

Arc

+ +

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 @@ - - - - - -Archimede - - - - - - - - - - - -

Archimede

- -

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. -

- -

 

- - - - + + + + + +Archimede + + + + + + + + + + + + +

Archimede

+ +

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 @@ - - - - - -Basic Geometrical Objects - - - - - - - - - - - -

Basic Geometrical Objects

- -

Creation of a Point

- -

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) -

- -

 

- -

Creation of a Line

- -

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) -

- -

 

- -

Creation of  a - Circle

- -

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) -

- -

 

- -

Creation of an Ellipse

- -

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) -

- -

 

- -

Creation of a Curve

- -

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) -

- -

 

- -

Creation of a Vector

- -

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) -

- -

 

- -

Creation of a Plane

- -

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) -

- - - - + + + + + +Basic Geometrical Objects + + + + + + + + + + + + +

Basic Geometrical Objects

+ +

Creation of a Point

+ +

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) +

+ +

 

+ +

Creation of a Line

+ +

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) +

+ +

 

+ +

Creation of  a + Circle

+ +

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) +

+ +

 

+ +

Creation of an Ellipse

+ +

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) +

+ +

 

+ +

Creation of a Curve

+ +

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) +

+ +

 

+ +

Creation of a Vector

+ +

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) +

+ +

 

+ +

Creation of a Plane

+ +

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 @@ - - - - - -Basic Operations - - - - - - - - - - - -

Basic Operations

- -

Partition

- -

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) -

- -

Archimede

- -

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) -

- -

 

- - - - + + + + + +Basic Operations + + + + + + + + + + + + +

Basic Operations

+ +

Partition

+ +

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) +

+ +

Archimede

+ +

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 @@ - - - - - -Building of blocks - - - - - - - - - - - -

Building of blocks

- -

 

- - - -

 

- -

 

- -

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 @@ - - - - - -Blocks Operations - - - - - - - - - - - -

Blocks Operations

- -

Multi Transformation

- -

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) -

- -

 

- -

Explode on Blocks

- -

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) -

- -

 

- -

Propagate

- -

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) -

- -

 

- - - - + + + + + +Blocks Operations + + + + + + + + + + + + +

Blocks Operations

+ +

Multi Transformation

+ +

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) +

+ +

 

+ +

Explode on Blocks

+ +

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) +

+ +

 

+ +

Propagate

+ +

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 @@ - - - - - -Boolean Operations - - - - - - - - - - - -

Boolean Operations

- -

Fuse

- -

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) -

- -

 

- -

Common

- -

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) -

- -

 

- -

Cut

- -

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) -

- -

 

- -

Section

- -

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) -

- -

 

- - - - + + + + + +Boolean Operations + + + + + + + + + + + + +

Boolean Operations

+ +

Fuse

+ +

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) +

+ +

 

+ +

Common

+ +

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) +

+ +

 

+ +

Cut

+ +

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) +

+ +

 

+ +

Section

+ +

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 @@ - - - - - -Box - - - - - - - - - - - -

Box

- -

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. -

- -

 

- - - - + + + + + +Box + + + + + + + + + + + + +

Box

+ +

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 @@ - - - - - -Building by Blocks - - - - - - - - - - - -

Building by Blocks

- -

Quadrangle Face

- -

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) -

- -

 

- -

Hexagonal Solid

- -

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) -

- -

 

- - - - + + + + + +Building by Blocks + + + + + + + + + + + + +

Building by Blocks

+ +

Quadrangle Face

+ +

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) +

+ +

 

+ +

Hexagonal Solid

+ +

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 @@ - - - - - -Chamfer - - - - - - - - - - - - -

Chamfer

- -

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.

- -

 

- -

 

- -

 

- -

 

- -

 

- - - - + + + + + +Chamfer + + + + + + + + + + + + + +

Chamfer

+ +

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 @@ - - - - - -Changing Display Parameters - - - - - - - - - - - -

Changing Display Parameters

- -

Changing Display Mode

- -

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) -

- -

 

- -

Changing Color

- -

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) -

- -

 

- -

 

- -

Changing Transparency

- -

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) -

- - - - + + + + + +Changing Display Parameters + + + + + + + + + + + + +

Viewing Geometrical Objects

+ +

Changing Display Mode

+ +

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) +

+ +

 

+ +

Changing Color

+ +

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) +

+ +

 

+ +

 

+ +

Changing Transparency

+ +

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 @@ - - - - - -Changing displaying parameters - - - - - - - - - - - -

Changing displaying parameters

- -

In GEOM you can set different - displaying parameters for visualization of geometrical objects in the - viewer:

- -

 

- - - -

 

- -

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.

- -

 

- -

 

- -

Wireframe/Shading

- -

 

- -

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:

- -

 

- -

 

- -

 

- -

 

- -

Color

- -

 

- -

Description: - Change the color of a shape.

- -

 

- -

TUI Command: - gg.setColor(ID, Short, Short, Short)

- -

 

- -

Example:

- -

 

- -

 

- -

 

- -

 

- -

 

- -

Transparency

- -

 

- -

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 @@ - - - - - -Check Free Boundaries - - - - - - - - - - - - -

Check Free Boundaries

- -

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.

- -

 

- - - - + + + + + +Check Free Boundaries + + + + + + + + + + + + + +

Check Free Boundaries

+ +

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 @@ - - - - - -Check Free Faces - - - - - - - - - - - - -

Check Free Faces

- -

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.

- -

 

- - - - + + + + + +Check Free Faces + + + + + + + + + + + + + +

Check Free Faces

+ +

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 @@ - - - - - -Circle - - - - - - - - - - - -

Circle

- -

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.

- -

 

- - - - + + + + + +Circle + + + + + + + + + + + + +

Circle

+ +

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 @@ - - - - - -Close Contour - - - - - - - - - - - -

Close Contour

- -

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:

- - - -

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.

- -

 

- - - - + + + + + +Close Contour + + + + + + + + + + + + +

Close Contour

+ +

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:

+ + + +

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 @@ - - - - - -Color - - - - - - - - - - - -

Color

- -

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.

- -

 

- - - - + + + + + +Color + + + + + + + + + + + + +

Color

+ +

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 @@ - - - - - -Common - - - - - - - - - - - - -

Common

- -

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. -

- -

 

- - - - + + + + + +Common + + + + + + + + + + + + + +

Common

+ +

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 @@ - - - - - -Complex Objects - - - - - - - - - - - -

Complex Objects

- -

Creation of a Prism

- -

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) -

- -

Creation of a Revolution

- -

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) -

- -

Creation of a Filling

- -

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) -

- -

 

- -

Creation of a Pipe

- -

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) -

- - - - + + + + + +Complex Objects + + + + + + + + + + + + +

Complex Objects

+ +

Creation of a Prism

+ +

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) +

+ +

Creation of a Revolution

+ +

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) +

+ +

Creation of a Filling

+ +

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) +

+ +

 

+ +

Creation of a Pipe

+ +

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 @@ - - - - - -Compound - - - - - - - - - - - -

Compound

- -

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.

- -

 

- -

 

- -

 

- -

 

- - - - + + + + + +Compound + + + + + + + + + + + + +

Compound

+ +

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 @@ - - - - - -Cone - - - - - - - - - - - - -

 Cone

- -

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.

- -

 

- - - - + + + + + +Cone + + + + + + + + + + + + +

 Cone

+ +

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 @@ - - -GEOM reference manual - - - - - - - - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/cshdat_webhelp.htm b/doc/salome/gui/GEOM/cshdat_webhelp.htm index 2d66f403c..6b2c6fc86 100755 --- a/doc/salome/gui/GEOM/cshdat_webhelp.htm +++ b/doc/salome/gui/GEOM/cshdat_webhelp.htm @@ -1,251 +1,251 @@ - - -GEOM reference manual - - - - - - - - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/curve.htm b/doc/salome/gui/GEOM/curve.htm index 1fa1a5aae..2f3b21c6d 100755 --- a/doc/salome/gui/GEOM/curve.htm +++ b/doc/salome/gui/GEOM/curve.htm @@ -1,162 +1,168 @@ - - - - - -Curve - - - - - - - - - - - -

 Curve

- -

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: -

- - - -

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.

- -

 

- -

 

- - - - + + + + + +Curve + + + + + + + + + + + + +

 Curve

+ +

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: +

+ + + +

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 @@ - - - - - -Cut - - - - - - - - - - - - -

Cut

- -

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. -

- -

 

- - - - + + + + + +Cut + + + + + + + + + + + + + +

Cut

+ +

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 @@ - - - - - -Cylinder - - - - - - - - - - - - -

Cylinder

- -

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.

- -

 

- - - - + + + + + +Cylinder + + + + + + + + + + + + + +

Cylinder

+ +

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 @@ - - - - - -Edge - - - - - - - - - - - -

Edge

- -

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.

- -

 

- - - - + + + + + +Edge + + + + + + + + + + + + +

Edge

+ +

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 @@ - - - - - - - - WebSearch - + + + + + + + + WebSearch + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/ellipse.htm b/doc/salome/gui/GEOM/ellipse.htm index f8b34dad2..e09a7562a 100755 --- a/doc/salome/gui/GEOM/ellipse.htm +++ b/doc/salome/gui/GEOM/ellipse.htm @@ -1,148 +1,153 @@ - - - - - -Ellipse - - - - - - - - - - - - -

Ellipse

- -

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.

- -

 

- - - - + + + + + +Ellipse + + + + + + + + + + + + + +

Ellipse

+ +

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 @@ - - - - - -Explode - - - - - - - - - - - - -

 Explode

- -

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:

- - - -

 

- -

Arguments: - 1 SHAPE + 1 type of SubShape.

- -

 

- -

 

- -

- -

 

- -

 

- - - - + + + + + +Explode + + + + + + + + + + + + + +

 Explode

+ +

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:

+ + + +

 

+ +

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 @@ - - - - - -Explode on Blocks - - - - - - - - - - - - -

Explode on Blocks

- -

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.

- -

 

- - - - + + + + + +Explode on Blocks + + + + + + + + + + + + + +

Explode on Blocks

+ +

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 @@ - - - - - -Extrusion - - - - - - - - - - - - -

 Extrusion

- -

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.

- -

 

- - - - + + + + + +Extrusion + + + + + + + + + + + + +

 Extrusion

+ +

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 @@ - - - - - -Face - - - - - - - - - - - -

 Face

- -

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.

- -

 

- - - - + + + + + +Face + + + + + + + + + + + + +

 Face

+ +

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 @@ - - - - - -Fillet - - - - - - - - - - - - -

Fillet

- -

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.

- -

 

- - - - + + + + + +Fillet + + + + + + + + + + + + + +

Fillet

+ +

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 @@ - - - - - -Filling - - - - - - - - - - - - -

 Filling - Surface with Curves

- -

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.

- -

 

- - - - + + + + + +Filling + + + + + + + + + + + + +

 Filling + Surface with Curves

+ +

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 @@ - - - - - -Fuse - - - - - - - - - - - - -

Fuse

- -

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.

- -

 

- - - - + + + + + +Fuse + + + + + + + + + + + + + +

Fuse

+ +

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 @@ - - - - GEOM reference manual - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/geom.log b/doc/salome/gui/GEOM/geom.log index 32566f512..c5689070b 100755 --- a/doc/salome/gui/GEOM/geom.log +++ b/doc/salome/gui/GEOM/geom.log @@ -1,657 +1,582 @@ -|SourceProjectName:GEOM.hpr -|DestinationProjectName:geom.htm -whhost.js -whmsg.js -whmozemu.js -whproxy.js -whstub.js -whutils.js -whver.js -whform.js -whphost.js -whstart.js -whtopic.js -whframes.js -whlang.js -whskin_info.htm -whskin_blank.htm -whskin_pickup.htm -whskin_homepage.htm -whskin_tw.htm -whnjs.htm -whthost.js -whtdhtml.htm -whihost.js -whibody.htm -whiform.htm -whfhost.js -whfbody.htm -whfform.htm -whghost.js -whgbody.htm -whgdhtml.htm -whgdef.htm -whproj.js -whproj.xml -whproj.htm -whxdata\whtoc.xml -whxdata\whidx.xml -whxdata\whfts.xml -whxdata\whglo.xml -whdata\whtoc.js -whdata\whtoc.htm -whdata\whtdata.js -whdata\whidx.js -whdata\whidx.htm -whdata\whidata.js -whdata\whfts.js -whdata\whfts.htm -whdata\whglo.js -whdata\whglo.htm -whdata\whgdata.js -whdata\whftdata.js -whdata\whfwdata.js -whres.xml -webhelp.jar -webhelp.cab -whgdata\whnvp30.htm -whgdata\whnvp31.htm -whgdata\whnvp32.htm -whgdata\whnvp33.htm -whgdata\whnvt30.htm -whgdata\whnvt31.htm -whgdata\whnvt32.htm -whgdata\whnvt33.htm -whgdata\whnvf30.htm -whgdata\whnvf31.htm -whgdata\whnvf32.htm -whgdata\whnvf33.htm -whgdata\whnvl31.htm -whgdata\whnvl32.htm -whgdata\whnvl33.htm -whgdata\whexpbar.gif -cshdat_webhelp.htm -whcsh_home.htm -whcshdata.htm -cshdat_robohelp.htm -wht_tab0.gif -wht_tab1.gif -wht_tab2.gif -wht_tab3.gif -wht_tab4.gif -wht_tab5.gif -wht_tab6.gif -wht_tab7.gif -wht_tab8.gif -wht_glo_h.gif -wht_glo_n.gif -wht_fts_h.gif -wht_fts_n.gif -wht_idx_h.gif -wht_idx_n.gif -wht_toc_h.gif -wht_toc_n.gif -wht_ws.gif -wht_ws_g.gif -wht_logo1.gif -wht_logo2.gif -wht_abgw.jpg -wht_abgi.jpg -wht_abge.jpg -wht_abtw.jpg -wht_abte.jpg -wht_abti.jpg -wht_spac.gif -wht_next.gif -wht_next_g.gif -wht_prev.gif -wht_prev_g.gif -wht_sync.gif -wht_hide.gif -wht_go.gif -whstart.ico -whestart.ico -whrstart.ico -whidhtml.htm -whfdhtml.htm -whskin_banner.htm -whtbar.js -whskin_pdhtml.htm -whskin_papplet.htm -whskin_plist.htm -whskin_tbars.htm -whskin_mbars.htm -wht_toc4.gif -wht_toc1.gif -wht_toc2.gif -wht_toc3.gif -whskin_frmset010.htm -whst_topics.xml -whskin_frmset01.htm -geom_hha.hhk -geom.hhc -geom.hhk -add_point_on_edge.htm -arc.htm -archimede.htm -basic_geometrical_objects.htm -basic_operations.htm -blocks.htm -blocks_operations.htm -boolean_operations.htm -box.htm -building_by_blocks.htm -chamfer.htm -changing_display_parameters.htm -changing_displaying_parameters.htm -check_free_boundaries.htm -check_free_faces.htm -circle.htm -close_contour.htm -color.htm -common.htm -complex_objects.htm -compound.htm -cone.htm -curve.htm -cut.htm -cylinder.htm -edge.htm -ellipse.htm -explode.htm -explode_on_blocks.htm -extrusion.htm -face.htm -files\introduction_to_geom.htm -files\salome2_sp3_basicgui_functions.htm -files\salome2_sp3_booleangui_functions.htm -files\salome2_sp3_buildgui_functions.htm -files\salome2_sp3_displaygui_functions.htm -files\salome2_sp3_generationgui_functions.htm -files\salome2_sp3_geomtoolsgui_functions.htm -files\salome2_sp3_measuregui_functions.htm -files\salome2_sp3_operationgui_functions.htm -files\salome2_sp3_primitivegui_functions.htm -files\salome2_sp3_repairgui_functions.htm -files\salome2_sp3_transformationgui_functions.htm -fillet.htm -filling.htm -fuse.htm -geometrical_objects.htm -glue_faces.htm -groups.htm -isos.htm -line.htm -local_coordinate_system.htm -measurement_tools.htm -mirror_image.htm -modify_the_location.htm -multi_rotation.htm -multi_transformation.htm -multi_translation.htm -newentity_blocks.htm -offset_surface.htm -partition.htm -pipe_creation.htm -plane.htm -point.htm -primitives.htm -propagate.htm -repairing_operations.htm -revolution.htm -rotation.htm -scale_transform.htm -section.htm -sewing.htm -shape_processing.htm -shell.htm -sketcher.htm -sketcher_tui.htm -solid.htm -sphere.htm -suppress_faces.htm -suppress_holes.htm -suppress_internal_wires.htm -transformation_operations.htm -translation.htm -transparency.htm -turus.htm -vector.htm -wire.htm -wireframe_and_shading.htm -working_plane.htm -working_with_groups.htm -ehelp.xml -geom.glo -default.css -pics\chamfer_all.png -pics\edgesn.png -pics\boxes.png -pics\mtrans1.png -pics\transformation3.png -pics\mtransf2.png -pics\export.png -image15.jpg -image204.jpg -image56.gif -image149.jpg -image127.jpg -image23.gif -image12.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif -files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif -files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif -pics\archimedesn1.png -pics\neo-basicprop.png -pics\mtrans2.png -pics\transformation4.png -pics\mtransf3.png -pics\plane1.png -image16.jpg -image57.gif -image35.gif -image128.jpg -image24.gif -image27.jpg -image13.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif -pics\suppress_faces1.png -pics\mirror_axissn1.png -pics\archimedesn2.png -pics\revolutionsn.png -pics\ellipsesn.png -pics\transformation10.png -pics\transformation5.png -pics\mtransf4.png -pics\plane2.png -image206.jpg -image25.gif -image129.jpg -image14.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif -pics\suppress_faces2.png -pics\multi_translation1dsn.png -pics\mirror_axissn2.png -pics\multi_transformationsn2d.png -pics\archimedesn3.png -pics\wiresn.png -pics\transformation11.png -pics\transformation6.png -pics\block1.png -pics\creategroup.png -pics\pipe.png -pics\torus1.png -pics\plane3.png -image59.gif -image37.gif -image15.gif -image18.jpg -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif -files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif -pics\multi_transformationsn1d.png -pics\fillingsn.png -pics\spheres.png -pics\polyline.png -pics\neo-obj1.png -pics\repair1.png -pics\transformation7.png -pics\block2.png -pics\torus2.png -image27.gif -image191.jpg -image180.jpg -image49.gif -image109.jpg -image16.gif -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif -files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif -files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif -image28.gif -selectcolor.png -pics\glue_faces1.png -pics\supp_int_wires1.png -pics\fusesn1.png -pics\transparencysn.png -pics\arcsn.png -pics\points.png -pics\neo-obj2.png -pics\neo-localcs1.png -pics\measures10.png -pics\repair2.png -pics\transformation8.png -pics\block3.png -image181.jpg -image170.jpg -image80.jpg -image17.gif -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif -files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif -image3.jpg -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif -pics\neo-isos.png -pics\glue_faces2.png -pics\supp_int_wires2.png -pics\sectionsn.png -pics\fusesn2.png -pics\toruses.png -pics\circles.png -pics\neo-materials.png -pics\neo-obj3.png -pics\neo-localcs2.png -pics\measures1.png -pics\repair3.png -pics\transformation9.png -pics\bool1.png -pics\partition1.png -pics\block4.png -pics\sphere1.png -image193.jpg -image29.gif -image171.jpg -image160.jpg -image81.jpg -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif -pics\chamfer_faces.png -pics\fillet_prism.png -pics\rotationsn1.png -pics\disp_mode1sn.png -pics\pipesn.png -pics\pipe_wire_edgesn.png -pics\cones.png -pics\planes1.png -pics\lines.png -pics\neo-obj4.png -pics\neo-localcs3.png -pics\repair4.png -pics\bool2.png -pics\partition2.png -pics\block5.png -pics\sphere2.png -pics\point1.png -pics\import.png -image172.jpg -image150.jpg -image82.jpg -image19.gif -pics\rotationsn2.png -pics\disp_mode2sn.png -pics\neo-detect2.png -pics\neo-section.png -pics\neo-obj5.png -pics\measures3.png -pics\repair5.png -pics\bool3.png -pics\chamfer1.png -pics\filling.png -pics\revolution.png -pics\arc.png -pics\ellipse.png -pics\circle1.png -image3.gif -image151.jpg -image94.jpg -image83.jpg -files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif -pics\isos_u12_v12sn.png -pics\free_boudaries1.png -pics\multi_rotation1d1.png -pics\multi_translation2dsn.png -pics\offsetsn.png -pics\compoundsn.png -pics\prisms_basessn.png -pics\cylinders.png -pics\vectors.png -pics\neo-obj6.png -pics\measures4.png -pics\repair6.png -pics\chamfer2.png -pics\cone1.png -pics\circle2.png -pics\point3.png -image185.jpg -image163.jpg -image130.jpg -image95.jpg -image84.jpg -files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif -pics\free_boudaries2.png -pics\multi_rotation2d1.png -pics\multi_rotation1d2.png -pics\mirror_pointsn1.png -pics\new-tolerance.png -pics\neo-obj7.png -pics\neo-point2.png -pics\measures5.png -pics\repair7.png -pics\chamfer3.png -pics\cone2.png -image197.jpg -image164.jpg -image96.jpg -image85.jpg -image52.jpg -image8.jpg -files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif -pics\chamfer_edge.png -pics\fillet_edge.png -pics\multi_rotation2d2.png -pics\scale_transformsn1.png -pics\mirror_pointsn2.png -pics\cutsn.png -pics\shellsn.png -pics\filling_compoundsn.png -pics\prismssn.png -pics\neo-mrot1.png -pics\repair8.png -pics\cylinder1.png -pics\vector1.png -image61.gif -image154.jpg -image121.jpg -image110.jpg -image97.jpg -image53.jpg -image9.jpg -image6.gif -files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif -pics\scale_transformsn2.png -pics\translationsn1.png -pics\facesn1.png -pics\neo-mrot2.png -pics\repair9.png -pics\cylinder2.png -pics\vector2.png -image188.jpg -image51.gif -image133.jpg -image122.jpg -image98.jpg -image76.jpg -image54.jpg -image7.gif -image10.jpg -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif -files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif -files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif -files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif -i_blue.jpg -image30.gif -pics\free_faces1.png -pics\fillet_all.png -pics\translationsn2.png -pics\partitionsn1.png -pics\colorsn.png -pics\facesn2.png -pics\interpol.png -pics\measures8.png -pics\fillet1.png -pics\archimede.png -pics\workplane4.png -image189.jpg -image52.gif -image167.jpg -image156.jpg -image41.gif -image145.jpg -image112.jpg -files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif -image8.gif -image11.jpg -files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif -files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif -files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif -files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif -image31.gif -pics\commonsn.png -pics\free_faces2.png -pics\mirror_planesn1.png -pics\block_explodesn.png -pics\partitionsn2.png -pics\solidsn.png -pics\facesn3.png -pics\distance.png -pics\neo-scetcher1.png -pics\neo-transparency.png -pics\measures9.png -pics\fillet2.png -pics\workplane5.png -image201.jpg -image53.gif -image168.jpg -image42.gif -image124.jpg -image113.jpg -image78.jpg -image20.gif -image67.jpg -image9.gif -image12.jpg -files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif -files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif -files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif -pics\mirror_planesn2.png -pics\neo-scetcher2.png -pics\transformation1.png -pics\fillet3.png -pics\box1.png -pics\workplane6.png -pics\curve.png -pics\line.png -image10.gif -image202.jpg -image147.jpg -image32.gif -image79.jpg -image21.gif -files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif -files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif -files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif -pics\multi_translation_initialsn.png -pics\plane_on_face.png -pics\bezier.png -pics\repair10.png -pics\transformation2.png -pics\mtransf1.png -pics\editgroup.png -pics\extrusion.png -pics\box2.png -image44.gif -image22.gif -image11.gif -files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif -files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif -files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif -files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif -salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif -ehlpdhtm.js -geom.ppf -default_ns.css -whxdata\whtdata0.xml -whxdata\whftdata0.xml -whxdata\whfwdata0.xml -whxdata\whgdata0.xml -whdata\whtdata0.htm -whdata\whftdata0.htm -whdata\whfwdata0.htm -whdata\whgdata0.htm -whgdata\whlstt0.htm -whgdata\whlstt1.htm -whgdata\whlstt2.htm -whgdata\whlstt3.htm -whgdata\whlstt4.htm -whgdata\whlstt5.htm -whgdata\whlstt6.htm -whgdata\whlstt7.htm -whgdata\whlstt8.htm -whgdata\whlstt9.htm -whgdata\whlstt10.htm -whgdata\whlstt11.htm -whgdata\whlstt12.htm -whgdata\whlstt13.htm -whgdata\whlstt14.htm -whgdata\whlstt15.htm -whgdata\whlstt16.htm -whgdata\whlstt17.htm -whgdata\whlsti0.htm -whgdata\whlstfl0.htm -whgdata\whlstfl1.htm -whgdata\whlstfl2.htm -whgdata\whlstfl3.htm -whgdata\whlstfl4.htm -whgdata\whlstfl5.htm -whgdata\whlstfl6.htm -whgdata\whlstfl7.htm -whgdata\whlstfl8.htm -whgdata\whlstfl9.htm -whgdata\whlstfl10.htm -whgdata\whlstfl11.htm -whgdata\whlstfl12.htm -whgdata\whlstfl13.htm -whgdata\whlstfl14.htm -whgdata\whlstfl15.htm -whgdata\whlstfl16.htm -whgdata\whlstfl17.htm -whgdata\whlstfl18.htm -whgdata\whlstfl19.htm -whgdata\whlstfl20.htm -whgdata\whlstfl21.htm -whgdata\whlstfl22.htm -whgdata\whlstfl23.htm -whgdata\whlstfl24.htm -whgdata\whlstfl25.htm -whgdata\whlstf0.htm -whgdata\whlstf1.htm -whgdata\whlstf2.htm -whgdata\whlstf3.htm -whgdata\whlstf4.htm -whgdata\whlstf5.htm -whgdata\whlstf6.htm -whgdata\whlstf7.htm -whgdata\whlstf8.htm -whgdata\whlstf9.htm -whgdata\whlstf10.htm -whgdata\whlstf11.htm -whgdata\whlstf12.htm -whgdata\whlstf13.htm -whgdata\whlstf14.htm -whgdata\whlstf15.htm -whgdata\whlstg0.htm -geom.htm -geom_csh.htm -geom_rhc.htm +|SourceProjectName:GEOM.hpr +|DestinationProjectName:index.htm +whhost.js +whmsg.js +whmozemu.js +whproxy.js +whstub.js +whutils.js +whver.js +whform.js +whphost.js +whstart.js +whtopic.js +whframes.js +whlang.js +whskin_info.htm +whskin_blank.htm +whskin_pickup.htm +whskin_homepage.htm +whskin_tw.htm +whnjs.htm +whthost.js +whtdhtml.htm +whihost.js +whibody.htm +whiform.htm +whfhost.js +whfbody.htm +whfform.htm +whghost.js +whgbody.htm +whgdhtml.htm +whgdef.htm +whproj.js +whproj.xml +whproj.htm +whxdata\whtoc.xml +whxdata\whidx.xml +whxdata\whfts.xml +whxdata\whglo.xml +whdata\whtoc.js +whdata\whtoc.htm +whdata\whtdata.js +whdata\whidx.js +whdata\whidx.htm +whdata\whidata.js +whdata\whfts.js +whdata\whfts.htm +whdata\whglo.js +whdata\whglo.htm +whdata\whgdata.js +whdata\whftdata.js +whdata\whfwdata.js +whres.xml +webhelp.jar +webhelp.cab +whgdata\whnvp30.htm +whgdata\whnvp31.htm +whgdata\whnvp32.htm +whgdata\whnvp33.htm +whgdata\whnvt30.htm +whgdata\whnvt31.htm +whgdata\whnvt32.htm +whgdata\whnvt33.htm +whgdata\whnvf30.htm +whgdata\whnvf31.htm +whgdata\whnvf32.htm +whgdata\whnvf33.htm +whgdata\whnvl31.htm +whgdata\whnvl32.htm +whgdata\whnvl33.htm +whgdata\whexpbar.gif +cshdat_webhelp.htm +whcsh_home.htm +whcshdata.htm +cshdat_robohelp.htm +whd_topic.xml +whd_nvp10.htm +whd_nvp20.htm +whd_tabs.htm +whd_dpns.htm +whd_tab0.gif +whd_tab1.gif +whd_tab2.gif +whd_tab3.gif +whd_tab4.gif +whd_tab5.gif +whd_tab6.gif +whd_tab7.gif +whd_tab8.gif +whd_toc1.gif +whd_toc2.gif +whd_toc3.gif +whd_toc4.gif +whd_show0.gif +whd_show1.gif +whd_show2.gif +whd_hide0.gif +whd_hide1.gif +whd_hide2.gif +whd_sync0.gif +whd_sync1.gif +whd_sync2.gif +whd_prev0.gif +whd_prev1.gif +whd_prev2.gif +whd_next0.gif +whd_next1.gif +whd_next2.gif +whd_wbsh0.gif +whd_wbsh1.gif +whd_wbsh2.gif +whidhtml.htm +whfdhtml.htm +index_hha.hhk +index.hhc +index.hhk +add_point_on_edge.htm +arc.htm +archimede.htm +basic_geometrical_objects.htm +basic_operations.htm +blocks_operations.htm +boolean_operations.htm +box.htm +building_by_blocks.htm +chamfer.htm +changing_display_parameters.htm +check_free_boundaries.htm +check_free_faces.htm +circle.htm +close_contour.htm +color.htm +common.htm +complex_objects.htm +compound.htm +cone.htm +curve.htm +cut.htm +cylinder.htm +edge.htm +ellipse.htm +explode.htm +explode_on_blocks.htm +extrusion.htm +face.htm +files\introduction_to_geom.htm +files\salome2_sp3_booleangui_functions.htm +files\salome2_sp3_geomtoolsgui_functions.htm +files\salome2_sp3_measuregui_functions.htm +fillet.htm +filling.htm +fuse.htm +geometrical_objects.htm +geometry.htm +glue_faces.htm +groups.htm +isos.htm +line.htm +local_coordinate_system.htm +measurement_tools.htm +mirror_image.htm +modify_the_location.htm +multi_rotation.htm +multi_transformation.htm +multi_translation.htm +newentity_blocks.htm +occ_viewer.htm +offset_surface.htm +partition.htm +pipe_creation.htm +plane.htm +point.htm +primitives.htm +propagate.htm +repairing_operations.htm +revolution.htm +rotation.htm +scale_transform.htm +section.htm +sewing.htm +shape_processing.htm +shell.htm +sketcher.htm +sketcher_tui.htm +solid.htm +sphere.htm +suppress_faces.htm +suppress_holes.htm +suppress_internal_wires.htm +transformation_operations.htm +translation.htm +transparency.htm +turus.htm +vector.htm +viewing_geometrical_objects.htm +wire.htm +wireframe_and_shading.htm +working_plane.htm +working_with_groups.htm +ehelp.xml +index.glo +default.css +pics\image86.gif +pics\image103.gif +pics\image97.gif +pics\chamfer_all.png +pics\edgesn.png +pics\boxes.png +pics\mtrans1.png +pics\transformation3.png +pics\mtransf2.png +image15.jpg +image204.jpg +image56.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif +pics\clipping.png +pics\image98.gif +pics\archimedesn1.png +pics\neo-basicprop.png +pics\mtrans2.png +pics\transformation4.png +pics\mtransf3.png +pics\plane1.png +image16.jpg +image57.gif +image35.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif +pics\image105.gif +pics\image99.gif +pics\image88.gif +pics\image77.gif +pics\suppress_faces1.png +pics\mirror_axissn1.png +pics\archimedesn2.png +pics\revolutionsn.png +pics\ellipsesn.png +pics\transformation10.png +pics\transformation5.png +pics\mtransf4.png +pics\plane2.png +image206.jpg +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif +image26.gif +image1.jpg +pics\image106.gif +pics\image89.gif +pics\suppress_faces2.png +pics\multi_translation1dsn.png +pics\mirror_axissn2.png +pics\multi_transformationsn2d.png +pics\archimedesn3.png +pics\wiresn.png +pics\transformation11.png +pics\transformation6.png +pics\block1.png +pics\pipe.png +pics\torus1.png +pics\plane3.png +image59.gif +image37.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif +pics\multi_transformationsn1d.png +pics\fillingsn.png +pics\spheres.png +pics\polyline.png +pics\neo-obj1.png +pics\repair1.png +pics\transformation7.png +pics\block2.png +pics\torus2.png +image27.gif +image180.jpg +image49.gif +image109.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif +image28.gif +selectcolor.png +pics\glue_faces1.png +pics\supp_int_wires1.png +pics\fusesn1.png +pics\transparencysn.png +pics\arcsn.png +pics\points.png +pics\neo-obj2.png +pics\neo-localcs1.png +pics\measures10.png +pics\repair2.png +pics\transformation8.png +pics\block3.png +image181.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif +image3.jpg +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif +image18.gif +image1.gif +pics\geomimport.png +pics\neo-isos.png +pics\glue_faces2.png +pics\supp_int_wires2.png +pics\sectionsn.png +pics\fusesn2.png +pics\toruses.png +pics\circles.png +pics\neo-materials.png +pics\neo-obj3.png +pics\neo-localcs2.png +pics\measures1.png +pics\repair3.png +pics\transformation9.png +pics\bool1.png +pics\partition1.png +pics\block4.png +pics\sphere1.png +image193.jpg +image29.gif +image160.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif +image2.gif +pics\chamfer_faces.png +pics\fillet_prism.png +pics\rotationsn1.png +pics\disp_mode1sn.png +pics\pipesn.png +pics\pipe_wire_edgesn.png +pics\cones.png +pics\planes1.png +pics\lines.png +pics\neo-obj4.png +pics\neo-localcs3.png +pics\repair4.png +pics\bool2.png +pics\partition2.png +pics\block5.png +pics\sphere2.png +pics\point1.png +pics\rotationsn2.png +pics\disp_mode2sn.png +pics\neo-detect2.png +pics\neo-section.png +pics\neo-obj5.png +pics\measures3.png +pics\repair5.png +pics\bool3.png +pics\chamfer1.png +pics\filling.png +pics\revolution.png +pics\arc.png +pics\ellipse.png +pics\circle1.png +image3.gif +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif +image4.gif +pics\isos_u12_v12sn.png +pics\free_boudaries1.png +pics\multi_rotation1d1.png +pics\multi_translation2dsn.png +pics\offsetsn.png +pics\compoundsn.png +pics\prisms_basessn.png +pics\cylinders.png +pics\vectors.png +pics\neo-obj6.png +pics\measures4.png +pics\repair6.png +pics\chamfer2.png +pics\cone1.png +pics\circle2.png +pics\point3.png +image185.jpg +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif +image5.gif +pics\free_boudaries2.png +pics\multi_rotation2d1.png +pics\multi_rotation1d2.png +pics\mirror_pointsn1.png +pics\new-tolerance.png +pics\neo-obj7.png +pics\neo-point2.png +pics\measures5.png +pics\repair7.png +pics\chamfer3.png +pics\cone2.png +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif +pics\image91.gif +pics\chamfer_edge.png +pics\fillet_edge.png +pics\multi_rotation2d2.png +pics\scale_transformsn1.png +pics\mirror_pointsn2.png +pics\cutsn.png +pics\shellsn.png +pics\filling_compoundsn.png +pics\prismssn.png +pics\neo-mrot1.png +pics\repair8.png +pics\cylinder1.png +pics\vector1.png +image61.gif +image154.jpg +image110.jpg +files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif +pics\scale_transformsn2.png +pics\translationsn1.png +pics\facesn1.png +pics\neo-mrot2.png +pics\repair9.png +pics\cylinder2.png +pics\vector2.png +image51.gif +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif +files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif +files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif +i_blue.jpg +image30.gif +pics\free_faces1.png +pics\fillet_all.png +pics\translationsn2.png +pics\partitionsn1.png +pics\colorsn.png +pics\facesn2.png +pics\interpol.png +pics\measures8.png +pics\fillet1.png +pics\archimede.png +pics\workplane4.png +image52.gif +image167.jpg +image156.jpg +image41.gif +image145.jpg +image112.jpg +files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif +files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif +pics\image100.gif +pics\geomcreategroup.png +pics\commonsn.png +pics\free_faces2.png +pics\mirror_planesn1.png +pics\block_explodesn.png +pics\partitionsn2.png +pics\solidsn.png +pics\facesn3.png +pics\distance.png +pics\neo-scetcher1.png +pics\neo-transparency.png +pics\measures9.png +pics\fillet2.png +pics\workplane5.png +image53.gif +image168.jpg +image42.gif +image113.jpg +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif +pics\image95.gif +pics\mirror_planesn2.png +pics\neo-scetcher2.png +pics\transformation1.png +pics\fillet3.png +pics\box1.png +pics\workplane6.png +pics\curve.png +pics\line.png +image10.gif +image32.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif +image33.gif +pics\image102.gif +pics\image96.gif +pics\geomexport.png +pics\multi_translation_initialsn.png +pics\plane_on_face.png +pics\bezier.png +pics\repair10.png +pics\transformation2.png +pics\mtransf1.png +pics\editgroup.png +pics\extrusion.png +pics\box2.png +image44.gif +files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif +files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif +files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif +salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif +ehlpdhtm.js +index.ppf +default_ns.css +whxdata\whtdata0.xml +whxdata\whftdata0.xml +whxdata\whfwdata0.xml +whxdata\whgdata0.xml +whdata\whtdata0.htm +whdata\whftdata0.htm +whdata\whfwdata0.htm +whdata\whgdata0.htm +whgdata\whlstt0.htm +whgdata\whlstt1.htm +whgdata\whlstt2.htm +whgdata\whlstt3.htm +whgdata\whlstt4.htm +whgdata\whlstt5.htm +whgdata\whlstt6.htm +whgdata\whlstt7.htm +whgdata\whlstt8.htm +whgdata\whlstt9.htm +whgdata\whlstt10.htm +whgdata\whlstt11.htm +whgdata\whlstt12.htm +whgdata\whlstt13.htm +whgdata\whlstt14.htm +whgdata\whlstt15.htm +whgdata\whlstt16.htm +whgdata\whlsti0.htm +whgdata\whlstfl0.htm +whgdata\whlstfl1.htm +whgdata\whlstfl2.htm +whgdata\whlstfl3.htm +whgdata\whlstfl4.htm +whgdata\whlstfl5.htm +whgdata\whlstfl6.htm +whgdata\whlstfl7.htm +whgdata\whlstfl8.htm +whgdata\whlstfl9.htm +whgdata\whlstfl10.htm +whgdata\whlstfl11.htm +whgdata\whlstfl12.htm +whgdata\whlstfl13.htm +whgdata\whlstfl14.htm +whgdata\whlstfl15.htm +whgdata\whlstfl16.htm +whgdata\whlstfl17.htm +whgdata\whlstfl18.htm +whgdata\whlstfl19.htm +whgdata\whlstfl20.htm +whgdata\whlstfl21.htm +whgdata\whlstfl22.htm +whgdata\whlstfl23.htm +whgdata\whlstfl24.htm +whgdata\whlstfl25.htm +whgdata\whlstfl26.htm +whgdata\whlstf0.htm +whgdata\whlstf1.htm +whgdata\whlstf2.htm +whgdata\whlstf3.htm +whgdata\whlstf4.htm +whgdata\whlstf5.htm +whgdata\whlstf6.htm +whgdata\whlstf7.htm +whgdata\whlstf8.htm +whgdata\whlstf9.htm +whgdata\whlstf10.htm +whgdata\whlstf11.htm +whgdata\whlstf12.htm +whgdata\whlstf13.htm +whgdata\whlstg0.htm +index.htm +index_csh.htm +index_rhc.htm diff --git a/doc/salome/gui/GEOM/geom_csh.htm b/doc/salome/gui/GEOM/geom_csh.htm deleted file mode 100755 index 24b1d19ff..000000000 --- a/doc/salome/gui/GEOM/geom_csh.htm +++ /dev/null @@ -1,106 +0,0 @@ - - -GEOM reference manual - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/geom_rhc.htm b/doc/salome/gui/GEOM/geom_rhc.htm deleted file mode 100755 index 3f33cfe19..000000000 --- a/doc/salome/gui/GEOM/geom_rhc.htm +++ /dev/null @@ -1,106 +0,0 @@ - - -GEOM reference manual - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/geometrical_objects.htm b/doc/salome/gui/GEOM/geometrical_objects.htm index 8fb80b9c2..68c303314 100755 --- a/doc/salome/gui/GEOM/geometrical_objects.htm +++ b/doc/salome/gui/GEOM/geometrical_objects.htm @@ -1,580 +1,585 @@ - - - - - -Geometrical Objects - - - - - - - - - - - -

Advanced Geometrical Objects

- -

Creation of an Edge

- -

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) -

- -

 

- -

Creation of a Wire

- -

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) -

- -

 

- -

 

- -

Creation of a Face

- -

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) -

- -

 

- -

Creation of a Shell

- -

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) -

- -

 

- -

Creation of a Solid

- -

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) -

- -

 

- -

Creation of a Compound

- -

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) -

- - - - + + + + + +Geometrical Objects + + + + + + + + + + + + +

Advanced Geometrical Objects

+ +

Creation of an Edge

+ +

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) +

+ +

 

+ +

Creation of a Wire

+ +

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) +

+ +

 

+ +

 

+ +

Creation of a Face

+ +

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) +

+ +

 

+ +

Creation of a Shell

+ +

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) +

+ +

 

+ +

Creation of a Solid

+ +

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) +

+ +

 

+ +

Creation of a Compound

+ +

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 - - - - - - - - - - - - -

Introduction to Geometry

- -

Geometry module - of SALOME is destined for:

- -

 

- - - -

 

- - --- - - - -
-
    - -
  • Creation of basic geometrical objects

  • - -
  • Construction of primitives

  • - -
  • Building shapes

  • - -
  • Generation of complex shapes

  • - -
  • Working with groups

  • - -
  • Geometrical repairing of objects

  • - -
  • Geometrical boolean operations

  • - -
  • Geometrical transformations

  • - -
  • Building by blocks

  • -
-

 

-

- -

 

- - - - + + + + + +geometry + + + + + + + + + + + + +

Introduction to Geometry

+ +

Geometry module + of SALOME is destined for:

+ +

 

+ + + +

 

+ + +++ + + + +
+
    + +
  • Creation of basic geometrical objects

  • + +
  • Construction of primitives

  • + +
  • Building shapes

  • + +
  • Generation of complex shapes

  • + +
  • Working with groups

  • + +
  • Geometrical repairing of objects

  • + +
  • Geometrical boolean operations

  • + +
  • Geometrical transformations

  • + +
  • Building by blocks

  • +
+

 

+

+ +

 

+ + + + 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 @@ - - - - - -Glue Faces - - - - - - - - - - - - -

Glue Faces

- -

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.

- -

 

- - - - + + + + + +Glue Faces + + + + + + + + + + + + + +

Glue Faces

+ +

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 @@ - - - - - -Groups - - - - - - - - - - - -

Groups

- -

Creation of a group

- -

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) -

- -

Adding an object to the group.

- -

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) -

- -

 

- -

Removing an object from the group

- -

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) -

- -

 

- -

 

- -

 

- -

 

- -

 

- -

 

- -

 

- - - - + + + + + +Groups + + + + + + + + + + + + +

Groups

+ +

Creation of a group

+ +

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) +

+ +

Adding an object to the group.

+ +

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) +

+ +

 

+ +

Removing an object from the group

+ +

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 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/index_csh.htm b/doc/salome/gui/GEOM/index_csh.htm index 6aeea9d3f..631f73da1 100755 --- a/doc/salome/gui/GEOM/index_csh.htm +++ b/doc/salome/gui/GEOM/index_csh.htm @@ -1,106 +1,106 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/index_rhc.htm b/doc/salome/gui/GEOM/index_rhc.htm index 431b5e60e..459833070 100755 --- a/doc/salome/gui/GEOM/index_rhc.htm +++ b/doc/salome/gui/GEOM/index_rhc.htm @@ -1,106 +1,106 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/isos.htm b/doc/salome/gui/GEOM/isos.htm index 15e54e35b..d2eae1bec 100755 --- a/doc/salome/gui/GEOM/isos.htm +++ b/doc/salome/gui/GEOM/isos.htm @@ -1,108 +1,113 @@ - - - - - -Isos - - - - - - - - - - - -

Isolines

- -

In this menu you can change the number of isolines - displayed within a shape.

- -

Arguments: - 2 values (number of isolines).

- -

 

- -

- -

 

- -

Example:

- -

 

- -

 

- -

 

- -

 

- - - - + + + + + +Isos + + + + + + + + + + + + +

Isolines

+ +

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 @@ - - - - - -Line - - - - - - - - - - - -

Line

- -

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.

- -

 

- - - - + + + + + +Line + + + + + + + + + + + + +

Line

+ +

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 @@ - - - - - -Local Coordinate System - - - - - - - - - - - - -

Local Coordinate - System

- -

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:

- -

- -

 

- -

 

- - - - + + + + + +Local Coordinate System + + + + + + + + + + + + + +

Local Coordinate + System

+ +

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 @@ - - - - - -Measurement Tools - - - - - - - - - - - -

Measurement Tools

- -

Point Coordinates

- -

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."

- -

Basic Properties

- -

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.

- -

Center of masses

- -

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)"

- -

Inertia

- -

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] -

- -

 

- -

Bounding Box

- -

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]

- -

 

- -

 

- -

Minimal Distance

- -

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

- -

 

- -

Tolerance

- -

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]

- -

 

- -

What Is

- -

import - geompy

- -

 

- -

# create a box

- -

box = geompy.MakeBoxDXDYDZ(100,30,100)

- -

Descr = geompy.WhatIs(box)

- -

print "\nBox - 100x30x100 description:"

- -

print Descr

- -

 

- -

Check Shape

- -

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"

- -

 

- -

 

- -

Check Compound of Blocks

- -

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"

- -

 

- -

 

- -

 

- - - - + + + + + +Measurement Tools + + + + + + + + + + + + +

Measurement Tools

+ +

Point Coordinates

+ +

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."

+ +

Basic Properties

+ +

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.

+ +

Center of masses

+ +

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)"

+ +

Inertia

+ +

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] +

+ +

 

+ +

Bounding Box

+ +

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]

+ +

 

+ +

 

+ +

Minimal Distance

+ +

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

+ +

 

+ +

Tolerance

+ +

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]

+ +

 

+ +

What Is

+ +

import + geompy

+ +

 

+ +

# create a box

+ +

box = geompy.MakeBoxDXDYDZ(100,30,100)

+ +

Descr = geompy.WhatIs(box)

+ +

print "\nBox + 100x30x100 description:"

+ +

print Descr

+ +

 

+ +

Check Shape

+ +

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"

+ +

 

+ +

 

+ +

Check Compound of Blocks

+ +

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 @@ - - - - - -Mirror Image - - - - - - - - - - - - -

Mirror Image

- -

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.

- -

 

- - - - + + + + + +Mirror Image + + + + + + + + + + + + + +

Mirror Image

+ +

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 @@ - - - - - -Modify the Location - - - - - - - - - - - - -

Modify the Location

- -

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.

- -

 

- - - - + + + + + +Modify the Location + + + + + + + + + + + + + +

Modify the Location

+ +

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 @@ - - - - - -Multi Rotation - - - - - - - - - - - -

 Multi - Rotation

- -

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.

- -

 

- - - - + + + + + +Multi Rotation + + + + + + + + + + + + +

 Multi + Rotation

+ +

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 @@ - - - - - -Multi Transformation - - - - - - - - - - - - -

Block Multi Transformation

- -

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.

- -

  

- -

 

- -

 

- - - - + + + + + +Multi Transformation + + + + + + + + + + + + + +

Block Multi Transformation

+ +

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 @@ - - - - - -Multi Translation - - - - - - - - - - - - -

Multi Translation

- -

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.

- -

 

- - - - + + + + + +Multi Translation + + + + + + + + + + + + + +

Multi Translation

+ +

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 @@ - - - - - -Blocks - - - - - - - - - - - - -

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.

- -

 

- - - -

 

- -

 

- -

Quadrangle - face

- -

 

- -

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:

- - - -

 

- -

Arguments: -

- - - -

 

- -

Dialog Box:

- - ---- - - - - -
-

-

-

- -

 

- -

 

- -

Example:

- -

 

- -

- -

 

- -

 

- -

Hexahedral - solid

- -

 

- -

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:

- - - -

 

- -

Arguments: -

- - - -

 

- -

Dialog Box:

- -

 

- - --- - - - -
-

 

-

- -

 

- -

Example:

- -

 

- -

     

- -

     

- -

Our TUI Scripts - provide you with useful examples of Building - by Blocks.

- -

 

- - - - + + + + + +Blocks + + + + + + + + + + + + + +

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.

+ +

 

+ + + +

 

+ +

 

+ +

Quadrangle + face

+ +

 

+ +

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:

+ + + +

 

+ +

Arguments: +

+ + + +

 

+ +

Dialog Box:

+ + ++++ + + + + +
+

+

+

+ +

 

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Hexahedral + solid

+ +

 

+ +

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:

+ + + +

 

+ +

Arguments: +

+ + + +

 

+ +

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_Viewer - - - - - - - - - - - - -

OCC 3D 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.  

- -

 

- -

- -

 

- - - -

 

- -

- -

 

- - - -

 

- - - - + + + + + +OCC_Viewer + + + + + + + + + + + + +

OCC 3D 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.  

+ +

 

+ +

+ +

 

+ + + +

 

+ +

+ +

 

+ + + +

 

+ + + + 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 @@ - - - - - -Offset Surface - - - - - - - - - - - - -

Offset Surface

- -

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.

- -

 

- - - - + + + + + +Offset Surface + + + + + + + + + + + + + +

Offset Surface

+ +

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 @@ - - - - - -Partition - - - - - - - - - - - -

 Partition

- -

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. -

- -

 

- - - - + + + + + +Partition + + + + + + + + + + + + +

 Partition

+ +

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 @@ - - - - - -Pipe Creation - - - - - - - - - - - -

Pipe Construction

- -

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.

- -

 

- -

 

- -

 

- - - - + + + + + +Pipe Creation + + + + + + + + + + + + +

Pipe Construction

+ +

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 @@ - - - - - -Plane - - - - - - - - - - - -

Plane

- -

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.

- -

 

- - - - + + + + + +Plane + + + + + + + + + + + + +

Plane

+ +

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 @@ - - - - - -Point - - - - - - - - - - - - -

Point

- -

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.

- - - - + + + + + +Point + + + + + + + + + + + + + +

Point

+ +

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 @@ - - - - - -Primitives - - - - - - - - - - - -

Primitives

- -

Creation of a Box

- -

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) -

- -

 

- -

Creation of a Cylinder

- -

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) -

- -

 

- -

Creation of a Sphere

- -

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) -

- -

 

- -

Creation of a Torus

- -

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) -

- -

Creation of a Cone

- -

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) -

- - - - + + + + + +Primitives + + + + + + + + + + + + +

Primitives

+ +

Creation of a Box

+ +

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) +

+ +

 

+ +

Creation of a Cylinder

+ +

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) +

+ +

 

+ +

Creation of a Sphere

+ +

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) +

+ +

 

+ +

Creation of a Torus

+ +

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) +

+ +

Creation of a Cone

+ +

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 @@ - - - - - -Propagate - - - - - - - - - - - - -

Propagate

- -

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.

- -

 

- - - - + + + + + +Propagate + + + + + + + + + + + + + +

Propagate

+ +

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 @@ - - - - - -Repairing Operations - - - - - - - - - - - -

Repairing Operations

- -

Shape Processing

- -

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) -

- -

 

- -

Suppress Faces

- -

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) -

- -

 

- -

Close Contour

- -

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) -

- -

 

- -

Suppress Internal Wires

- -

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) -

- -

 

- -

Suppress Holes

- -

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) -

- -

 

- -

Sewing

- -

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) -

- -

 

- -

Glue Faces

- -

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) -

- -

 

- -

Add Point on Edge

- -

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) -

- -

 

- -

Check Free Boundaries

- -

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) -

- -

 

- -

Check Free Faces

- -

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) -

- - - - + + + + + +Repairing Operations + + + + + + + + + + + + +

Repairing Operations

+ +

Shape Processing

+ +

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) +

+ +

 

+ +

Suppress Faces

+ +

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) +

+ +

 

+ +

Close Contour

+ +

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) +

+ +

 

+ +

Suppress Internal Wires

+ +

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) +

+ +

 

+ +

Suppress Holes

+ +

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) +

+ +

 

+ +

Sewing

+ +

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) +

+ +

 

+ +

Glue Faces

+ +

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) +

+ +

 

+ +

Add Point on Edge

+ +

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) +

+ +

 

+ +

Check Free Boundaries

+ +

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) +

+ +

 

+ +

Check Free Faces

+ +

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 @@ - - - - - -Revolution - - - - - - - - - - - - -

Revolution

- -

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.

- -

 

- - - - + + + + + +Revolution + + + + + + + + + + + + +

Revolution

+ +

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 @@ - - - - - -Rotation - - - - - - - - - - - - -

Rotation

- -

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.

- -

 

- - - - + + + + + +Rotation + + + + + + + + + + + + + +

Rotation

+ +

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 @@ - - - - - -Scale Transform - - - - - - - - - - - - -

 Scale - Transform

- -

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.

- -

 

- - - - + + + + + +Scale Transform + + + + + + + + + + + + + +

 Scale + Transform

+ +

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 @@ - - - - - -Section - - - - - - - - - - - - -

Section

- -

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.

- -

 

- - - - + + + + + +Section + + + + + + + + + + + + + +

Section

+ +

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 @@ - - - - - -Sewing - - - - - - - - - - - -

Sewing

- -

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.

- -

 

- - - - + + + + + +Sewing + + + + + + + + + + + + +

Sewing

+ +

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 @@ - - - - - -Shape Processing - - - - - - - - - - - -

Shape Processing

- -

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.

- -

 

- - - - + + + + + +Shape Processing + + + + + + + + + + + + + +

Shape Processing

+ +

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)

+ +

 

+ + + +

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.

+ + + +

 

+ +

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 @@ - - - - - -Shell - - - - - - - - - - - -

Shell

- -

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.

- -

 

- -

 

- - - - + + + + + +Shell + + + + + + + + + + + + +

Shell

+ +

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 - - - - - - - - - - - - -

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:

- - - -

4. Destination direction by means of:

- - - -

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 + + + + + + + + + + + + + +

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:

+ + + +

4. Destination direction by means of:

+ + + +

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 @@ - - - - - -Sketcher - - - - - - - - - - - -

Sketcher

- -

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) -

- - - - + + + + + +Sketcher + + + + + + + + + + + + +

Sketcher

+ +

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 @@ - - - - - -Solid - - - - - - - - - - - - -

 Solid

- -

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.

- -

 

- - - - + + + + + +Solid + + + + + + + + + + + + +

 Solid

+ +

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 @@ - - - - - -Sphere - - - - - - - - - - - -

 Sphere

- -

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.

- -

 

- - - - + + + + + +Sphere + + + + + + + + + + + + +

 Sphere

+ +

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 @@ - - - - - -Suppress Faces - - - - - - - - - - - -

Suppress Faces

- -

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.

- -

 

- - - - + + + + + +Suppress Faces + + + + + + + + + + + + +

Suppress Faces

+ +

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 @@ - - - - - -Suppress Holes - - - - - - - - - - - -

Suppress Holes

- -

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.

- -

 

- -

 

- - - - + + + + + +Suppress Holes + + + + + + + + + + + + +

Suppress Holes

+ +

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 @@ - - - - - -Suppress Internal Wires - - - - - - - - - - - -

Suppress Internal - Wires

- -

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:

- - - -

 

- -

Dialog Box:

- -

 

- -

- -

 

- -

Example:

- -

 

- -

   

- -

 

- -

Our - TUI Scripts provide you with useful - examples of the use of Repairing - Operations.

- -

 

- - - - + + + + + +Suppress Internal Wires + + + + + + + + + + + + +

Suppress Internal + Wires

+ +

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:

+ + + +

 

+ +

+ +

 

+ +

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 @@ - - - - - -Transformation Operations - - - - - - - - - - - -

Transformation Operations

- -

Translation

- -

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) -

- -

Rotation

- -

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) -

- -

 

- -

Modify Location

- -

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) -

- -

 

- -

Mirror Image

- -

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) -

- -

 

- -

Scale Transform

- -

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) -

- -

 

- -

Offset Surface

- -

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) -

- -

 

- -

Multi Translation

- -

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) -

- -

 

- -

Multi Rotation

- -

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) -

- -

 

- -

Fillet

- -

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) -

- -

 

- -

Chamfer

- -

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) -

- -

 

- -

 

- - - - + + + + + +Transformation Operations + + + + + + + + + + + + +

Transformation Operations

+ +

Translation

+ +

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) +

+ +

Rotation

+ +

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) +

+ +

 

+ +

Modify Location

+ +

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) +

+ +

 

+ +

Mirror Image

+ +

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) +

+ +

 

+ +

Scale Transform

+ +

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) +

+ +

 

+ +

Offset Surface

+ +

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) +

+ +

 

+ +

Multi Translation

+ +

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) +

+ +

 

+ +

Multi Rotation

+ +

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) +

+ +

 

+ +

Fillet

+ +

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) +

+ +

 

+ +

Chamfer

+ +

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 @@ - - - - - -Translation - - - - - - - - - - - - -

Translation

- -

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.

- -

 

- - - - + + + + + +Translation + + + + + + + + + + + + + +

Translation

+ +

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 @@ - - - - - -Transparency - - - - - - - - - - - -

Transparency

- -

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.

- -

 

- - - - + + + + + +Transparency + + + + + + + + + + + + +

Transparency

+ +

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 @@ - - - - - -Turus - - - - - - - - - - - -

Torus

- -

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.

- -

 

- - - - + + + + + +Turus + + + + + + + + + + + + +

Torus

+ +

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 @@ - - - - - -Vector - - - - - - - - - - - -

Vector

- -

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.

- -

 

- - - - + + + + + +Vector + + + + + + + + + + + + +

Vector

+ +

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 @@ - - - - - -Viewing Geometrical Objects - - - - - - - - - - - - -

Viewing Geometrical Objects

- -

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.

- -

 

- -

- -

 

- - - -

 

- - - - + + + + + +Viewing Geometrical Objects + + + + + + + + + + + + +

Viewing Geometrical Objects

+ +

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.

+ +

 

+ +

+ +

 

+ + + +

 

+ + + + 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 @@ - - -GEOM reference manual - - - - - - - - - - + + +Geometry Module Reference Manual + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/whd_dpns.htm b/doc/salome/gui/GEOM/whd_dpns.htm index 1bca23603..3983ccbdd 100755 --- a/doc/salome/gui/GEOM/whd_dpns.htm +++ b/doc/salome/gui/GEOM/whd_dpns.htm @@ -1,43 +1,43 @@ - - -Navigator Pane - - - - - - - - - - - - - + + +Navigator Pane + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whd_nvp10.htm b/doc/salome/gui/GEOM/whd_nvp10.htm index a57fe1e49..05b5f908c 100755 --- a/doc/salome/gui/GEOM/whd_nvp10.htm +++ b/doc/salome/gui/GEOM/whd_nvp10.htm @@ -1,15 +1,15 @@ - - -Navigation Pane - - - - - - - - - - - - + + +Navigation Pane + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/whd_nvp20.htm b/doc/salome/gui/GEOM/whd_nvp20.htm index c5754bc41..23c23dc4f 100755 --- a/doc/salome/gui/GEOM/whd_nvp20.htm +++ b/doc/salome/gui/GEOM/whd_nvp20.htm @@ -1,334 +1,334 @@ - - -navigation pane - - - - - - - - - - - - - - - - - + + +navigation pane + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/whd_tabs.htm b/doc/salome/gui/GEOM/whd_tabs.htm index 1568f573d..e8c498c88 100755 --- a/doc/salome/gui/GEOM/whd_tabs.htm +++ b/doc/salome/gui/GEOM/whd_tabs.htm @@ -1,533 +1,533 @@ - - -WebHelp Tabs Frame in Navigation Pane - - - - - - - - - - + + +WebHelp Tabs Frame in Navigation Pane + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whd_toc4.gif b/doc/salome/gui/GEOM/whd_toc4.gif index 3f9a03686..354aa6ece 100755 Binary files a/doc/salome/gui/GEOM/whd_toc4.gif and b/doc/salome/gui/GEOM/whd_toc4.gif differ diff --git a/doc/salome/gui/GEOM/whd_topic.xml b/doc/salome/gui/GEOM/whd_topic.xml index a1b0320fb..b1946d757 100755 --- a/doc/salome/gui/GEOM/whd_topic.xml +++ b/doc/salome/gui/GEOM/whd_topic.xml @@ -1,85 +1,85 @@ - - - - - - - - - - -"]]> - - - - -"]]> - - - - -"; -OutputInTopicNavBarDataWebSearch.form();]]> - - - - - - - - - - -"]]> - - - + + + + + + + + + + +"]]> + + + + +"]]> + + + + +"; +OutputInTopicNavBarDataWebSearch.form();]]> + + + + + + + + + + +"]]> + + + diff --git a/doc/salome/gui/GEOM/whestart.ico b/doc/salome/gui/GEOM/whestart.ico deleted file mode 100755 index 110f18356..000000000 Binary files a/doc/salome/gui/GEOM/whestart.ico and /dev/null differ diff --git a/doc/salome/gui/GEOM/whfbody.htm b/doc/salome/gui/GEOM/whfbody.htm index 86d8e63db..ea648e4b3 100755 --- a/doc/salome/gui/GEOM/whfbody.htm +++ b/doc/salome/gui/GEOM/whfbody.htm @@ -1,37 +1,37 @@ - - -Search Result - - - - - - - - - - - - - - - - - + + +Search Result + + + + + + + + + + + + + + + + + diff --git a/doc/salome/gui/GEOM/whfdhtml.htm b/doc/salome/gui/GEOM/whfdhtml.htm index 236beec73..c2e65bea1 100755 --- a/doc/salome/gui/GEOM/whfdhtml.htm +++ b/doc/salome/gui/GEOM/whfdhtml.htm @@ -1,30 +1,30 @@ - - -Search Frame - - - - - - - - - + + +Search Frame + + + + + + + + + diff --git a/doc/salome/gui/GEOM/whfform.htm b/doc/salome/gui/GEOM/whfform.htm index f592a738d..e01bedde6 100755 --- a/doc/salome/gui/GEOM/whfform.htm +++ b/doc/salome/gui/GEOM/whfform.htm @@ -1,136 +1,136 @@ - - -Search Form - - - - - - - - - - - - - + + +Search Form + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whfhost.js b/doc/salome/gui/GEOM/whfhost.js index 167acc459..c3c7144fa 100755 --- a/doc/salome/gui/GEOM/whfhost.js +++ b/doc/salome/gui/GEOM/whfhost.js @@ -1,945 +1,945 @@ -// WebHelp 5.10.003 -var gsSK2=null; -var gsSK=null; -var gsFtsBreakChars="\t\r\n\"\\ .,!@#$%^&*()~'`:;<>?/{}[]|+-=\x85\x92\x93\x94\x95\x96\x97\x99\xA9\xAE\xB7"; -var gnCLF=0; -var gsHelpCannotSearch="Cannot search for that phrase."; -var gsNoTopics="No Topics Found."; -var gsLoadingDivID="LoadingDiv"; -var gsLoadingMsg="Loading data, please wait..."; -var gsSearchMsg="Searching..."; -var gsResultDivID="ResultDiv"; -var gaaFCD=new Array(); -var gaaFTCD=new Array(); -var goCF=null; -var goCTF=null; -var gaTI=null; -var gnCurrentOp=0; -var gbNot=false; -var gbReady=false; -var gnLoadFts=1; -var gnCacheLimits=5; -var gaCCD=new Array(); -var gbXML=false; -var gaData=new Array(); -var gsBgColor="#ffffff"; -var gsBgImage=""; -var gsMargin="0pt"; -var gsIndent="0pt"; -var gsCheckKey=null; -var gnIndexNum=0; -var gaFtsContentsCon=null; -var gaTopicCheckInfo=null; -var gnTopicCheck=0; -var goFont=null; -var goErrFont=null; -var goHoverFont=null; -var gsABgColor="#cccccc"; -var gbWhFHost=false; -var gbFirst=false; - -function setBackground(sBgImage) -{ - gsBgImage=sBgImage; -} - -function setBackgroundcolor(sBgColor) -{ - gsBgColor=sBgColor; -} - -function setFont(sType,sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration) -{ - var vFont=new whFont(sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration); - if(sType=="Normal") - goFont=vFont; - else if(sType=="Error") - goErrFont=vFont; - else if(sType=="Hover") - goHoverFont=vFont; -} - -function setActiveBgColor(sBgColor) -{ - gsABgColor=sBgColor; -} - -function setMargin(sMargin) -{ - gsMargin=sMargin; -} - -function setIndent(sIndent) -{ - gsIndent=sIndent; -} - -function updateCache(oCF) -{ - var len=gaCCD.length; - if(len0&&sURL) - { - var topic=new Object(); - topic.sTopicTitle=name; - topic.sTopicURL=sURL; - aTopics[aTopics.length]=topic; - } - } - oChild=oChild.nextSibling; - } - putFtsTData(aTopics); - } - } - else if(gnLoadFts==2) - { - var node=xmlDoc.lastChild; - if(node) - { - var oChild=node.firstChild; - var aFtsContents=new Array(); - while(oChild) - { - if(oChild.nodeName=="key") - { - var name=oChild.getAttribute("name"); - if(name&&name.length>0) - { - var item=new Object(); - item.sItemName=name; - aFtsContents[aFtsContents.length]=item; - var oChildChild=oChild.firstChild; - while(oChildChild) - { - if(oChildChild.nodeName=="#text") - { - var sIDs=oChildChild.nodeValue; - if(sIDs) - { - var nBPos=0; - do - { - var nPos=sIDs.indexOf(",",nBPos); - var sID=null; - if(nPos!=-1) - sID=sIDs.substring(nBPos,nPos); - else - sID=sIDs.substring(nBPos); - - if(sID) - { - var id=parseInt(sID); - if(!isNaN(id)) - { - if(!item.aTopics) - item.aTopics=new Array(); - item.aTopics[item.aTopics.length]=id; - } - } - nBPos=nPos+1; - }while(nBPos!=0&&nBPos0) - { - document.body.background=gsBgImage; - } - if(gsBgColor&&gsBgColor.length>0) - { - document.body.bgColor=gsBgColor; - } - writeResultDiv(); - loadFts(); - var oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null) - SendMessage(oMsg); -} - -function writeResultDiv() -{ - var sHTML="
"; - document.body.insertAdjacentHTML("beforeEnd",sHTML); -} - -function loadFts() -{ - if(!gbReady) - { - var oResMsg=new whMessage(WH_MSG_GETPROJINFO,this,1,null); - if(SendMessage(oResMsg)&&oResMsg.oParam) - { - gbReady=true; - var oProj=oResMsg.oParam; - var aProj=oProj.aProj; - gbXML=oProj.bXML; - if(aProj.length>0) - { - var sLangId=aProj[0].sLangId; - for(var i=0;i=0)&&(gsFtsBreakChars.charAt(nSep)=="|"))){ - gnCurrentOp=0; - gbNot=false; - }else if((sCW=="and")||((nSep>=0)&&(gsFtsBreakChars.charAt(nSep)=="&"))){ - gnCurrentOp=1; - gbNot=false; - }else if((sCW=="not")|| - ((nSep>=0)&&(gsFtsBreakChars.charAt(nSep)=="~"))){ - gbNot=!gbNot; - }else if(sCW!=""&&!IsStopWord(sCW,gaFtsStop)){ - var sCurrentStem=GetStem(sCW); - gsCW=sCurrentStem; - ftsFindKeyword(); - return; - } - findOneKey(); - } - else{ - displayTopics(); - checkAgain(); - } -} - -function checkAgain() -{ - gsCheckKey = ""; - gnIndexNum = 0; - gsSK=gsSK2; - gsSK2=null; - if(gsSK!=null) - setTimeout("findFTSKey();",1); -} - -function displayTopics() -{ - var sHTML=""; - var sLine=""; - for(var i=0;i"+_textToHtml(gaTI[i].sTopicTitle)+""; - if(i>>4<<4==i) - { - sHTML+=sLine; - sLine=""; - } - } - if(sLine.length>0) - sHTML+=sLine; - - if(sHTML.length==0) - sHTML="

"+gsNoTopics+"

" - else - sHTML="
"+sHTML+"
"; - - var resultDiv=getElement(gsResultDivID); - if(resultDiv) - resultDiv.innerHTML=sHTML; -} - -function displayMsg(sErrorMsg) -{ - var 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=aTI.length) - { - aLS=gaTI; - aSS=aTI; - } - else - { - aLS=aTI; - aSS=gaTI; - } - var s=0; - for(var i=0;i=0) - { - var nM; - var bFound=false; - do{ - nM=(nB+nE)>>1; - if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)>0) - nE=nM-1; - else if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)<0) - nB=nM+1; - else - { - bFound=true; - break; - } - }while(nB<=nE); - if(bFound) - insertItemIntoArray(aTI,nM,oTI); - else - { - if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)<0) - insertItemIntoArray(aTI,nM+1,oTI); - else - insertItemIntoArray(aTI,nM,oTI); - } - } - else - aTI[0]=oTI; -} - -function mergeTopics(aTI1,aTI2) -{ - var i1=0; - var i2=0; - var len1=aTI1.length; - var len2=aTI2.length; - var aTopicNew=new Array(); - var i=0; - while(i1>1; - if(compare(keys[nM].sItemName,sKey)>0) - nE=nM-1; - else if(compare(keys[nM].sItemName,sKey)<0) - nB=nM+1; - else{ - bFound=true; - break; - } - }while(nB<=nE); - if(bFound) - { - if(keys[nM].aTopics) - { - for(var i=0;i>1; - if(aFTCD[nM].nBegin>nTopicId) - nE=nM-1; - else if(aFTCD[nM].nEnd