From: mzn Date: Wed, 10 Oct 2007 13:32:42 +0000 (+0000) Subject: Porting GUI documentation on Doxygen tool. X-Git-Tag: V4_1_0a2~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cef16fb369835556e1530ee0996c18e82a97958e;p=modules%2Fgeom.git Porting GUI documentation on Doxygen tool. --- diff --git a/doc/salome/gui/GEOM/add_point_on_edge.htm b/doc/salome/gui/GEOM/add_point_on_edge.htm deleted file mode 100755 index 6d969d30a..000000000 --- a/doc/salome/gui/GEOM/add_point_on_edge.htm +++ /dev/null @@ -1,166 +0,0 @@ - - - - - -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 deleted file mode 100755 index cdf4570ad..000000000 --- a/doc/salome/gui/GEOM/arc.htm +++ /dev/null @@ -1,268 +0,0 @@ - - - - - -Arc - - - - - - - - - - - - - -

Arc

- -

To create an Arc in the Main - Menu select New Entity - > - Basic - > Arc

- -

 

- -

There are 2 algorithms to create an Arc - in the 3D space.

- -

The Result - of each operation will be a GEOM_Object - (edge).

- -

 

- -

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

- -

TUI - Command: geompy.MakeArc(Point1, - Point2, Point3)

- -

Arguments: - Name + 3 vertices.

- -

 

- -

- -

 

- -

Secondly, - you can define an Arc by Center, Start and End - points. The arc is built from the Start - point to the End point. The radius - of the arc is defined by the distance between the Center - point and the Start point. The - End point defines the angle of - the arc. If the distance between the Center - point and the End point is not - equal to the radius, the arc will be built anyway.

- -

Reverse - radio button allows to change the direction of the arc.

- -

TUI Command: - geompy.MakeArcCenter(Center Point, Start - Point, End Point, boolean Sense)

- -

Arguments: Name + 3 vertices + Boolean.

- -

 

- -

- -

 

- -

Example:

- -

 

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

Arc by three points lying on it.

-

Arc by Start, End and Center.

-

 

-

Reversed arc.

-

-

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

Start Point

-

 

-

 

-

Center Point

-

 

-

End Point

-

 

-

 

-

- -

 

- -

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 deleted file mode 100755 index 238672ecb..000000000 --- a/doc/salome/gui/GEOM/archimede.htm +++ /dev/null @@ -1,140 +0,0 @@ - - - - - -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 deleted file mode 100755 index 3b5e35b60..000000000 --- a/doc/salome/gui/GEOM/basic_geometrical_objects.htm +++ /dev/null @@ -1,661 +0,0 @@ - - - - - -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 deleted file mode 100755 index 49bd3918d..000000000 --- a/doc/salome/gui/GEOM/basic_operations.htm +++ /dev/null @@ -1,248 +0,0 @@ - - - - - -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_operations.htm b/doc/salome/gui/GEOM/blocks_operations.htm deleted file mode 100755 index f3068888d..000000000 --- a/doc/salome/gui/GEOM/blocks_operations.htm +++ /dev/null @@ -1,288 +0,0 @@ - - - - - -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.GetSubShapeID(box, - top_face)

- -

yz_face_ind = geompy.GetSubShapeID(box, - yz_face)

- -

xz_face_ind = geompy.GetSubShapeID(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 - of the given compound, by criteria: min_nb_faces <= nb. of faces <= - max_nb_faces

- -

min_nb_faces = 6

- -

max_nb_faces = 6

- -

make_block_explode - = geompy.MakeBlockExplode(compound, min_nb_faces, max_nb_faces)

- -

 

- -

# add objects in the - study

- -

id_compound = geompy.addToStudy(compound, - "Compound")

- -

id_make_block_explode - = geompy.addToStudyInFather(compound, 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

- -

box = geompy.MakeBoxDXDYDZ(200, - 200, 200)

- -

 

- -

# build all possible - propagation groups

- -

listChains = geompy.Propagate(check_box)

- -

 

- -

# add objects in the - study

- -

geompy.addToStudy(check_box, - "Box")

- -

ii = 1

- -

for chain in listChains:

- -

    geompy.addToStudyInFather(check_box, - chain, "propagation chain " + `ii`)

- -

    ii - = ii + 1

- -

    pass

- -

 

- -

salome.sg.updateObjBrowser(1) -

- - - - diff --git a/doc/salome/gui/GEOM/boolean_operations.htm b/doc/salome/gui/GEOM/boolean_operations.htm deleted file mode 100755 index b0410a81e..000000000 --- a/doc/salome/gui/GEOM/boolean_operations.htm +++ /dev/null @@ -1,353 +0,0 @@ - - - - - -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 deleted file mode 100755 index 491c86028..000000000 --- a/doc/salome/gui/GEOM/box.htm +++ /dev/null @@ -1,178 +0,0 @@ - - - - - -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). The edges of the box will be 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 deleted file mode 100755 index 7a80374ee..000000000 --- a/doc/salome/gui/GEOM/building_by_blocks.htm +++ /dev/null @@ -1,355 +0,0 @@ - - - - - -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

- -

p0  = - geompy.MakeVertex(  0., -   0., -   0.)

- -

p1  = - geompy.MakeVertex(  0., -   0., -  40.)

- -

p2  = - geompy.MakeVertex( 70., -15.,   0.)

- -

p3  = - geompy.MakeVertex( 70., -15.,  70.)

- -

 

- -

p4  = - geompy.MakeVertex(  0., -  70.,   0.)

- -

p5  = - geompy.MakeVertex(  0., -  70.,  40.)

- -

p6  = - geompy.MakeVertex( 70.,  70., -   0.)

- -

p7  = - geompy.MakeVertex( 70.,  70., -  70.)

- -

 

- -

p8  = - geompy.MakeVertex(  0., - -50.,   0.)

- -

p9  = - geompy.MakeVertex(  0., - -50.,  40.)

- -

p10 = geompy.MakeVertex( - 70., -35.,   0.)

- -

p11 = geompy.MakeVertex( - 70., -35.,  70.)

- -

 

- -

# create faces

- -

qface1 = geompy.MakeQuad4Vertices(p0, - p1, p2, p3)

- -

qface2 = geompy.MakeQuad4Vertices(p4, - p5, p6, p7)

- -

qface3 = geompy.MakeQuad4Vertices(p0, - p1, p4, p5)

- -

qface4 = geompy.MakeQuad4Vertices(p2, - p3, p6, p7)

- -

qface5 = geompy.MakeQuad4Vertices(p0, - p2, p4, p6)

- -

qface6 = geompy.MakeQuad4Vertices(p1, - p3, p5, p7)

- -

 

- -

qface7 = geompy.MakeQuad4Vertices(p8, - p9, p10, p11)

- -

 

- -

# create a hexahedral - solid between two given faces

- -

solid1 = geompy.MakeHexa2Faces(qface1, - qface7)

- -

 

- -

# create a hexahedral - solid, bounded by six given faces

- -

solid2 = geompy.MakeHexa(qface1, - qface2, qface3, qface4, qface5, qface6)

- -

 

- -

# add objects in the - study

- -

geompy.addToStudy(qface1,"qface1")

- -

geompy.addToStudy(qface2,"qface2")

- -

geompy.addToStudy(qface3,"qface3")

- -

geompy.addToStudy(qface4,"qface4")

- -

geompy.addToStudy(qface5,"qface5")

- -

geompy.addToStudy(qface6,"qface6")

- -

geompy.addToStudy(qface7,"qface7")

- -

 

- -

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 deleted file mode 100755 index 34174349c..000000000 --- a/doc/salome/gui/GEOM/chamfer.htm +++ /dev/null @@ -1,197 +0,0 @@ - - - - - -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/change_orientation.htm b/doc/salome/gui/GEOM/change_orientation.htm deleted file mode 100755 index a6ae12d4d..000000000 --- a/doc/salome/gui/GEOM/change_orientation.htm +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -Change Orientation - - - - - - - - - - - - -

Change Orientation

- -

To Change Orientation in the Main Menu - select Repair - > Change Orientation.

- -

This operation reverses the normals of faces - composing the selected shell.

- -

 

- -

TUI Command : geompy.ChangeOrientation(shape)

- -

Arguments: Name + 1 shape (shell)

- -

Uncheck - Create a copy checkbox if you don't - wish to leave the initial object in the project (Result name field will be locked).

- -

 

- -

- -

 

- -

Example: -

- -

 

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

-

-

Inward orientation.

-

Outward orientation

- -

 

- -

 

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/changing_display_parameters.htm b/doc/salome/gui/GEOM/changing_display_parameters.htm deleted file mode 100755 index 604eea0ab..000000000 --- a/doc/salome/gui/GEOM/changing_display_parameters.htm +++ /dev/null @@ -1,183 +0,0 @@ - - - - - -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/check_free_boundaries.htm b/doc/salome/gui/GEOM/check_free_boundaries.htm deleted file mode 100755 index b6e127486..000000000 --- a/doc/salome/gui/GEOM/check_free_boundaries.htm +++ /dev/null @@ -1,150 +0,0 @@ - - - - - -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 deleted file mode 100755 index b704b6b75..000000000 --- a/doc/salome/gui/GEOM/check_free_faces.htm +++ /dev/null @@ -1,150 +0,0 @@ - - - - - -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 deleted file mode 100755 index 96568f5e0..000000000 --- a/doc/salome/gui/GEOM/circle.htm +++ /dev/null @@ -1,156 +0,0 @@ - - - - - -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 deleted file mode 100755 index e8accf8a6..000000000 --- a/doc/salome/gui/GEOM/close_contour.htm +++ /dev/null @@ -1,153 +0,0 @@ - - - - - -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 deleted file mode 100755 index 9732c7c03..000000000 --- a/doc/salome/gui/GEOM/color.htm +++ /dev/null @@ -1,111 +0,0 @@ - - - - - -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 deleted file mode 100755 index 25b4226c7..000000000 --- a/doc/salome/gui/GEOM/common.htm +++ /dev/null @@ -1,147 +0,0 @@ - - - - - -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 deleted file mode 100755 index 72c395e02..000000000 --- a/doc/salome/gui/GEOM/complex_objects.htm +++ /dev/null @@ -1,489 +0,0 @@ - - - - - -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 deleted file mode 100755 index 11465b4c7..000000000 --- a/doc/salome/gui/GEOM/compound.htm +++ /dev/null @@ -1,138 +0,0 @@ - - - - - -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 deleted file mode 100755 index 8e0fec793..000000000 --- a/doc/salome/gui/GEOM/cone.htm +++ /dev/null @@ -1,166 +0,0 @@ - - - - - -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 deleted file mode 100755 index 6ac8b7890..000000000 --- a/doc/salome/gui/GEOM/cshdat_robohelp.htm +++ /dev/null @@ -1,258 +0,0 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/cshdat_webhelp.htm b/doc/salome/gui/GEOM/cshdat_webhelp.htm deleted file mode 100755 index 6b2c6fc86..000000000 --- a/doc/salome/gui/GEOM/cshdat_webhelp.htm +++ /dev/null @@ -1,251 +0,0 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/curve.htm b/doc/salome/gui/GEOM/curve.htm deleted file mode 100755 index 2f3b21c6d..000000000 --- a/doc/salome/gui/GEOM/curve.htm +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -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 deleted file mode 100755 index ea377fa9f..000000000 --- a/doc/salome/gui/GEOM/cut.htm +++ /dev/null @@ -1,144 +0,0 @@ - - - - - -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 deleted file mode 100755 index d2b7695f4..000000000 --- a/doc/salome/gui/GEOM/cylinder.htm +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -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 deleted file mode 100755 index 1f8d6d772..000000000 --- a/doc/salome/gui/GEOM/default.css +++ /dev/null @@ -1,101 +0,0 @@ -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 deleted file mode 100755 index 46e8b0018..000000000 --- a/doc/salome/gui/GEOM/default_ns.css +++ /dev/null @@ -1,118 +0,0 @@ -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/doxyfile.in b/doc/salome/gui/GEOM/doxyfile.in new file mode 100755 index 000000000..75b0c99aa --- /dev/null +++ b/doc/salome/gui/GEOM/doxyfile.in @@ -0,0 +1,49 @@ +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = "Geometry Module Reference Manual v.@VERSION@" +OUTPUT_DIRECTORY = ./ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +TAB_SIZE = 5 + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES + +#--------------------------------------------------------------------------- +#Input related options +#--------------------------------------------------------------------------- +INPUT = @srcdir@/input +FILE_PATTERNS = *.doc +IMAGE_PATH = @srcdir@/images + +#--------------------------------------------------------------------------- +#HTML related options +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = ./ +HTML_HEADER = @srcdir@/static/header.html +HTML_FOOTER = @srcdir@/static/footer.html +#HTML_STYLESHEET = @srcdir@/static/doxygen.css +TOC_EXPAND = YES +DISABLE_INDEX = NO +GENERATE_TREEVIEW = YES +TREEVIEW_WIDTH = 300 + +#--------------------------------------------------------------------------- +#LaTeX related option +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO + +#--------------------------------------------------------------------------- +#RTF related options +#--------------------------------------------------------------------------- +GENERATE_RTF = NO + +#--------------------------------------------------------------------------- +#External reference options +#--------------------------------------------------------------------------- +TAGFILES = geompy_doc.tag=./geompy_doc \ No newline at end of file diff --git a/doc/salome/gui/GEOM/doxyfile_py.in b/doc/salome/gui/GEOM/doxyfile_py.in new file mode 100755 index 000000000..41a0b2fc4 --- /dev/null +++ b/doc/salome/gui/GEOM/doxyfile_py.in @@ -0,0 +1,137 @@ +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- +PROJECT_NAME = "Geometry Module Reference Manual v.@VERSION@" +OUTPUT_DIRECTORY = ./ +CREATE_SUBDIRS = NO +OUTPUT_LANGUAGE = English +USE_WINDOWS_ENCODING = NO +BRIEF_MEMBER_DESC = YES +REPEAT_BRIEF = NO +ALWAYS_DETAILED_SEC = YES +INLINE_INHERITED_MEMB = YES +FULL_PATH_NAMES = NO +SHORT_NAMES = NO +JAVADOC_AUTOBRIEF = YES +MULTILINE_CPP_IS_BRIEF = NO +DETAILS_AT_TOP = NO +INHERIT_DOCS = YES +SEPARATE_MEMBER_PAGES = NO +TAB_SIZE = 5 +OPTIMIZE_OUTPUT_FOR_C = YES +OPTIMIZE_OUTPUT_JAVA = YES +BUILTIN_STL_SUPPORT = NO +DISTRIBUTE_GROUP_DOC = NO +SUBGROUPING = YES + +#--------------------------------------------------------------------------- +# Build related options +#--------------------------------------------------------------------------- +EXTRACT_ALL = YES +EXTRACT_PRIVATE = YES +EXTRACT_STATIC = YES +EXTRACT_LOCAL_CLASSES = YES +EXTRACT_LOCAL_METHODS = NO +HIDE_UNDOC_MEMBERS = NO +HIDE_UNDOC_CLASSES = NO +HIDE_FRIEND_COMPOUNDS = NO +HIDE_IN_BODY_DOCS = NO +INTERNAL_DOCS = YES +CASE_SENSE_NAMES = YES +HIDE_SCOPE_NAMES = NO +SHOW_INCLUDE_FILES = YES +INLINE_INFO = YES +SORT_MEMBER_DOCS = NO +SORT_BRIEF_DOCS = NO +SORT_BY_SCOPE_NAME = NO +GENERATE_TODOLIST = YES +GENERATE_TESTLIST = YES +GENERATE_BUGLIST = YES +GENERATE_DEPRECATEDLIST= YES +MAX_INITIALIZER_LINES = 25 +SHOW_USED_FILES = NO +SHOW_DIRECTORIES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- +SOURCE_BROWSER = NO +INLINE_SOURCES = NO +STRIP_CODE_COMMENTS = YES +REFERENCED_BY_RELATION = NO +REFERENCES_RELATION = YES +USE_HTAGS = NO +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- +QUIET = NO +WARNINGS = YES +WARN_IF_UNDOCUMENTED = YES +WARN_IF_DOC_ERROR = YES +WARN_NO_PARAMDOC = NO +EXCLUDE_SYMLINKS = NO +EXAMPLE_RECURSIVE = NO + +#--------------------------------------------------------------------------- +#Input related options +#--------------------------------------------------------------------------- +INPUT = @top_srcdir@/src/GEOM_SWIG +FILE_PATTERNS = geompyDC.py +IMAGE_PATH = @srcdir@/images +RECURSIVE = NO + +#--------------------------------------------------------------------------- +#HTML related options +#--------------------------------------------------------------------------- +GENERATE_HTML = YES +HTML_OUTPUT = ./geompy_doc +HTML_HEADER = @srcdir@/static/header.html +HTML_FOOTER = @srcdir@/static/footer.html +#HTML_STYLESHEET = @srcdir@/static/doxygen.css +TOC_EXPAND = YES +DISABLE_INDEX = YES +GENERATE_TREEVIEW = NO + +#--------------------------------------------------------------------------- +#LaTeX related option +#--------------------------------------------------------------------------- +GENERATE_LATEX = NO + +#--------------------------------------------------------------------------- +#RTF related options +#--------------------------------------------------------------------------- +GENERATE_RTF = NO + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- +CLASS_DIAGRAMS = YES +HIDE_UNDOC_RELATIONS = NO +HAVE_DOT = YES +CLASS_GRAPH = YES +COLLABORATION_GRAPH = NO +GROUP_GRAPHS = NO +UML_LOOK = NO +TEMPLATE_RELATIONS = YES +INCLUDE_GRAPH = YES +INCLUDED_BY_GRAPH = NO +CALL_GRAPH = NO +GRAPHICAL_HIERARCHY = YES +DIRECTORY_GRAPH = YES +DOT_IMAGE_FORMAT = jpg +DOT_PATH = +DOTFILE_DIRS = +MAX_DOT_GRAPH_WIDTH = 1024 +MAX_DOT_GRAPH_HEIGHT = 1200 +MAX_DOT_GRAPH_DEPTH = 0 +DOT_TRANSPARENT = NO +DOT_MULTI_TARGETS = NO +GENERATE_LEGEND = NO +DOT_CLEANUP = YES + +#--------------------------------------------------------------------------- +#External reference options +#--------------------------------------------------------------------------- +GENERATE_TAGFILE = geompy_doc.tag diff --git a/doc/salome/gui/GEOM/edge.htm b/doc/salome/gui/GEOM/edge.htm deleted file mode 100755 index 75696858f..000000000 --- a/doc/salome/gui/GEOM/edge.htm +++ /dev/null @@ -1,135 +0,0 @@ - - - - - -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 deleted file mode 100755 index 5fbcc543d..000000000 --- a/doc/salome/gui/GEOM/ehelp.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - WebSearch - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/ehlpdhtm.js b/doc/salome/gui/GEOM/ehlpdhtm.js deleted file mode 100755 index 7bcb24993..000000000 --- a/doc/salome/gui/GEOM/ehlpdhtm.js +++ /dev/null @@ -1,4239 +0,0 @@ -// eHelp® Corporation Dynamic HTML JavaScript -// Copyright© 1998-2003 eHelp® Corporation.All rights reserved. -// Version=4.82 - -// Warning:Do not modify this file.It is generated by RoboHELP® and changes will be overwritten. - -//// Segment Begin -- (JavaScript 1.0) - -/// Section Begin - General and relative topics(JavaScript 1.0) - -//{{HH_SYMBOL_SECTION -var HH_ChmFilename = ""; -var HH_WindowName = ""; -var HH_GlossaryFont = ""; -var HH_Glossary = ""; -var HH_Avenue = ""; -var HH_ActiveX = false; -//}}HH_SYMBOL_SECTION - -//Begin to support previous generic parameters -//Get the information about the browser. -var gstrBsAgent = navigator.userAgent.toLowerCase(); -var gnBsVer = parseInt(navigator.appVersion); - -var gbBsOpera = (gstrBsAgent.indexOf('opera') != -1); -var gbBsKonqueror = (gstrBsAgent.indexOf('konqueror') != -1); -var gbBsSafari = (gstrBsAgent.indexOf('safari') != -1); -var gbBsIE = (gstrBsAgent.indexOf('msie') != -1) && !gbBsOpera && !gbBsKonqueror && !gbBsSafari; -var gbBsNS = (gstrBsAgent.indexOf('mozilla') != -1) && ((gstrBsAgent.indexOf('spoofer') == -1) && (gstrBsAgent.indexOf('compatible') == -1)) && !gbBsOpera && !gbBsKonqueror && !gbBsSafari; - -var gbBsMac = (gstrBsAgent.indexOf('mac') != -1); -var gbBsWindows = ((gstrBsAgent.indexOf('win') != -1) || (gstrBsAgent.indexOf('16bit') != -1)); -var gbBsSunOS = (gstrBsAgent.indexOf("sunos") != -1); - -var gbBsIE3Before = ((gbBsIE) && (gnBsVer <= 2)); -var gbBsNS3Before = ((gbBsNS) && (gnBsVer <= 3)); - -var gbBsNS2 = ((gbBsNS) && (gnBsVer <= 2)); -var gbBsNS3 = ((gbBsNS) && (gnBsVer == 3)); -var gbBsIE300301 = ((gbBsIE) && (gnBsVer == 2) && ((gstrBsAgent.indexOf("3.00") != -1)||(gstrBsAgent.indexOf("3.0a") != -1)||(gstrBsAgent.indexOf("3.0b")!=-1)||(gstrBsAgent.indexOf("3.01")!=-1))); -var gbBsIE302 = ((gbBsIE) && (gnBsVer == 2) && (gstrBsAgent.indexOf("3.02") != -1)); - -var gbBsNS4 = ((gbBsNS) && (gnBsVer >= 4)); -var gbBsNS6 = ((gbBsNS) && (gnBsVer >= 5)); -var gbBsNS7 = false; - -var gbBsIE4 = ((gbBsIE) && (gnBsVer >= 4)); -var gbBsIE5 = false; -var gbBsIE55 = false; - -var gbBsOpera6 = false; -var gbBsOpera7 = false; - -var gbBsKonqueror3 = false; - - - -gbBsIE = (navigator.appName.indexOf("Microsoft") != -1) && !gbBsOpera && !gbBsKonqueror && !gbBsSafari;; -if (gbBsIE) -{ - if (parseInt(navigator.appVersion) >= 4) { - gbBsIE4 = true; - if (gbBsIE4) { - var nPos = gstrBsAgent.indexOf("msie"); - var strIEversion = gstrBsAgent.substring(nPos + 5); - var nVersion = parseFloat(strIEversion); - if (nVersion >= 5) - gbBsIE5 = true; - if (nVersion >= 5.5) - gbBsIE55 = true; - } - } -} -if (gbBsNS6) -{ - var nPos=gstrBsAgent.indexOf("gecko"); - if(nPos!=-1) - { - var nPos2=gstrBsAgent.indexOf("/", nPos); - if(nPos2!=-1) - { - var nVersion=parseFloat(gstrBsAgent.substring(nPos2+1)); - if (nVersion>=20020823) - gbBsNS7=true; - } - } -} -if (gbBsOpera) -{ - var nPos = gstrBsAgent.indexOf("opera"); - if(nPos!=-1) - { - var nVersion = parseFloat(gstrBsAgent.substring(nPos+6)); - if (nVersion >= 6) - { - gbBsOpera6=true; - if (nVersion >=7) - gbBsOpera7=true; - } - } -} -if (gbBsKonqueror) -{ - var nPos = gstrBsAgent.indexOf("konqueror"); - if(nPos!=-1) - { - var nVersion = parseFloat(gstrBsAgent.substring(nPos+10)); - if (nVersion >= 3) - { - gbBsKonqueror3=true; - } - } -} - -function insertAdjacentHTML(obj, where, htmlStr) -{ - if (gbBsIE || gbBsOpera7) - { - obj.insertAdjacentHTML(where, htmlStr); - } - else if (gbBsNS6 || gbBsSafari) - { - var r = obj.ownerDocument.createRange(); - r.setStartBefore(obj); - var parsedHTML = r.createContextualFragment(htmlStr); - - switch (where){ - case 'beforeBegin': - obj.parentNode.insertBefore(parsedHTML,obj); - break; - case 'afterBegin': - obj.insertBefore(parsedHTML,obj.firstChild); - break; - case 'beforeEnd': - obj.appendChild(parsedHTML); - break; - case 'afterEnd': - if (obj.nextSibling){ - obj.parentNode.insertBefore(parsedHTML,obj.nextSibling); - } else { - obj.parentNode.appendChild(parsedHTML); - } - break; - } - } -} - -// Utilities functions. -function BsscHasExtJs() -{ - if( gbBsIE3Before || gbBsNS3Before) - return false; - return true; -} - -// Register event handler -var gBsOnLoads = new Array(); // An array holds all the onload event handler. -var gBsOnClicks = new Array(); // An array holds all the onClick event handler. -var gBsOnUnLoads = new Array(); // An array holds all the OnUnLoad event handler. -var gBsOnMouseOvers = new Array(); // An array holds all the OnMouseOver event handler. -var gBsOnMouseOuts = new Array(); // An array holds all the OnMouseOut event handler. - -var gbOrignalOnMouseDown = null; - -function BsscRegisterOnLoad(funcHandler) -{ - var nLength = gBsOnLoads.length; - gBsOnLoads[nLength] = funcHandler; -} - -function BsscRegisterOnClick(funcHandler) -{ - var nLength = gBsOnClicks.length; - gBsOnClicks[nLength] = funcHandler; -} - -function BsscRegisterOnUnLoad(funcHandler) -{ - var nLength = gBsOnUnLoads.length; - gBsOnUnLoads[nLength] = funcHandler; -} - -function BsscRegisterOnMouseOver(funcHandler) -{ - var nLength = gBsOnMouseOvers.length; - gBsOnMouseOvers[nLength] = funcHandler; -} - -function BsscRegisterOnMouseOut(funcHandler) -{ - var nLength = gBsOnMouseOuts.length; - gBsOnMouseOuts[nLength] = funcHandler; -} - -function BsGeneralOnLoad() -{ - if (!gbBsIE4 && !gbBsNS4) - return; - - // Make everything visible in navigator - if (gbBsNS4 && !gbBsNS6) { - // Make some special effects items visible - for (var iLayer = 0; iLayer < document.layers.length; iLayer++) { - document.layers[iLayer].visibility = "show"; - document.layers[iLayer].left = 0; - } - } -} - -// If resize the netscape browser, need to reload it. -function BsReDo() -{ - if (innerWidth != origWidth || innerHeight != origHeight) - location.reload(); -} -// End of the local functions. - -// The following functions are used by the html files. -function BSSCOnLoad() -{ - if( !BsscHasExtJs() ) - return; - for (var nElement = gBsOnLoads.length - 1; nElement >= 0; nElement--) - gBsOnLoads[nElement](); -} - -function BSSCOnClick() -{ - if (!BsscHasExtJs()) return; - - for (var nElement = gBsOnClicks.length - 1; nElement >= 0; nElement--) - gBsOnClicks[nElement](); -} - -function BSSCOnUnload() -{ - if (!BsscHasExtJs()) return; - for (var nElement = gBsOnUnLoads.length - 1; nElement >= 0; nElement--) - gBsOnUnLoads[nElement](); -} - -function BSSCOnMouseOver() -{ - if (!BsscHasExtJs()) return; - for (var nElement = gBsOnMouseOvers.length - 1; nElement >= 0; nElement--) - gBsOnMouseOvers[nElement](); -} - -function BSSCOnMouseOut() -{ - if (!BsscHasExtJs()) return; - for (var nElement = gBsOnMouseOuts.length - 1; nElement >= 0; nElement--) - { - gBsOnMouseOuts[nElement](); - } -} -// End of invocation of the event handle functions. - -// Add the GereralOnLoad to the onload array. -if (typeof(BsscRegisterOnLoad) != "undefined") -{ - BsscRegisterOnLoad(BsGeneralOnLoad); -} -if (gbBsNS4&&!gbBsNS6) { - origWidth = innerWidth; - origHeight = innerHeight; - onresize = BsReDo; -} -//End to support previous generic parameters - -//Begin to support previous HHActiveX invoking -function BsHHActivateComponents() -{ - if( HH_ActiveX && (HH_ChmFilename != "") && ((self == top) || (self == top.frames[0]))) - { - var objBody = getElementsByTag(document,"BODY")[0]; - if( typeof(objBody) == "object" ) - { - insertAdjacentHTML(objBody, "beforeEnd", ''); - if (HHComponentActivator.object) - HHComponentActivator.Activate(HH_ChmFilename, HH_WindowName, HH_GlossaryFont, HH_Glossary, HH_Avenue); - } - } -} - -function BsHHActivXOnLoad() -{ - if( gbBsIE4 ) - BsHHActivateComponents(); -} - -if( typeof(BsscRegisterOnLoad) != "undefined" ) -{ - BsscRegisterOnLoad(BsHHActivXOnLoad); -} -//End to support previous HHActiveX invoking - -//Begin to support previous relative topics -//If webHelp needs Related Topics DHTMLcode, it's supposed to add it here -var gbPopupMenuTimeoutExpired = false; -var gbInPopupMenu = false; -var gbPopupMenuTopicList = null; -var gOlddocumentClick = null; - -////////////////////////////////////////////////////////////////////////////////////////// -// -// Popup Menu code -// -////////////////////////////////////////////////////////////////////////////////////////// - -var g_bIsPopupMenuInit = false; -function _WritePopupMenuLayer() -{ - if (!g_bIsPopupMenuInit) - { - if (gbBsNS4&&!gbBsNS6) { -//Do not try to write ininle styles for NS! NS can not handle it and will not stop downloading the html page... - document.write("
"); - } else{ - document.write(""); - if (!(gbBsNS4&&!gbBsNS6)) { - document.write(""); - } - } - g_bIsPopupMenuInit = true; - } -} - -//Seek for the bsscright frame -function _SeekFrameByName( cRoot, strName ) -{ - if( cRoot == null ) return null; - if( cRoot.frames == null ) return null; - if( cRoot.frames[strName] != null ) return cRoot.frames[strName]; - for (var i=0; i'; - } else { - strMenu += '' + gbPopupMenuTopicList[fn_arguments[i]].strTitle + ''; - } - strMenu += ''; - - if (isNaN(fn_arguments[i]) || (gbPopupMenuTopicList == null)) { - i += 2; - } else { - i += 1; - } - } - strMenu += ""; - - if (gbBsMac) { - // totally hack. because ie5 in mac need something. is one of them. mac is mad. - strMenu +="
"; - } - - var layerPopup = null; - var stylePopup = null; - var nEventX = 0; - var nEventY = 0; - var nWindowWidth = 0; - if (gbBsIE4 || gbBsOpera7) { - - layerPopup = getElement("PopupMenu"); - layerPopup.innerHTML = strMenu; - stylePopup = layerPopup.style; - - _BSPSGetClientSize(); - - // Get the position of the item causing the event (relative to its parent) - nEventX = window.event.clientX; - nEventY = window.event.clientY; - - if (nEventY + layerPopup.scrollHeight + 10 < gBsClientHeight) { - nEventY += document.body.scrollTop + 10; - } else { - nEventY = (document.body.scrollTop + gBsClientHeight) - layerPopup.scrollHeight - 20; - } - stylePopup.top = nEventY; - - var nPopupWidth = layerPopup.scrollWidth; - if (gbBsMac) { - nPopupWidth = 80; // we have no idea how to get the dynamic width of the popup. - } - if (nEventX + nPopupWidth + 20 > gBsClientWidth) { - if (gBsClientWidth - nPopupWidth < 5) { - stylePopup.left = 5; - } else { - stylePopup.left = gBsClientWidth - nPopupWidth - 5; - } - } else { - stylePopup.left = nEventX + document.body.scrollLeft + 20; - } - - stylePopup.visibility = "visible"; - if (!gOlddocumentClick && document.onclick) - gOlddocumentClick = document.onclick; - document.onclick = PopupMenu_HandleClick; - - } else if (gbBsNS6 || gbBsKonqueror3||gbBsSafari) { - layerPopup = getElement("PopupMenu"); - layerPopup.style.visibility = "hidden"; - - if (gbBsNS6) - { - var e = fn_arguments[0]; - nEventX = e.pageX; - nEventY = e.pageY; - } - else - { - nEventX = window.event.clientX; - nEventY = window.event.clientY; - } - _BSPSGetClientSize(); - layerPopup.innerHTML = strMenu; - - if (nEventY + layerPopup.offsetHeight + 20 < window.pageYOffset + gBsClientHeight) { - nEventY += 20; - } else { - nEventY = gBsClientHeight + window.pageYOffset - layerPopup.offsetHeight - 20; - } - - if (nEventX + layerPopup.offsetWidth + 20 > gBsClientWidth + window.pageXOffset) { - if (gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth < 20) { - nEventX = 5; - } else { - nEventX = gBsClientWidth + window.pageXOffset - layerPopup.offsetWidth - 20; - } - } else { - nEventX += 20; - } - layerPopup.style.top = nEventY; - layerPopup.style.left = nEventX; - // set again to avoid the stupid frash in netscape 6. - layerPopup.innerHTML = strMenu; - layerPopup.style.visibility = "visible"; - //window.captureEvents(Event.MOUSEDOWN); - if (!gOlddocumentClick && document.onclick) - gOlddocumentClick = document.onclick; - window.onclick = PopupMenu_HandleClick; - } - else if (gbBsNS4) { - layerPopup = document.layers.PopupMenu; - layerPopup.visibility = "hide"; - stylePopup = layerPopup.document; - stylePopup.write(strMenu); - stylePopup.close(); - var e = fn_arguments[0]; - nEventX = e.pageX; - nEventY = e.pageY; - _BSPSGetClientSize(); - if (nEventY + layerPopup.clip.height + 20 < window.pageYOffset + gBsClientHeight) { - nEventY += 20; - } else { - nEventY = gBsClientHeight + window.pageYOffset- layerPopup.clip.height - 20; - } - layerPopup.top = nEventY; - - if (nEventX + layerPopup.clip.width + 20 > gBsClientWidth + window.pageXOffset) { - if (gBsClientWidth + window.pageXOffset - layerPopup.clip.width < 20) { - nEventX = 5; - } else { - nEventX = gBsClientWidth + window.pageXOffset - layerPopup.clip.width - 20; - } - } else { - nEventX += 20; - } - - layerPopup.left = nEventX; - - layerPopup.visibility = "show"; - - window.captureEvents(Event.MOUSEDOWN); - if (!gOlddocumentClick && document.onmousedown) - gOlddocumentClick = document.onmousedown; - window.onmousedown = PopupMenu_HandleClick; - } - - window.gbInPopupMenu = true; - window.gbPopupMenuTimeoutExpired = false; - setTimeout("PopupMenu_Timeout();", 100); - return false; -} - -function PopupMenu_Timeout() -{ - window.gbPopupMenuTimeoutExpired = true; -} - -function PopupMenu_Over(e) -{ - if (gbBsIE4||gbBsOpera7) - e.srcElement.className = "PopupOver"; - else if (gbBsNS6) - e.target.parentNode.className = "PopupOver"; - return; -} - -function PopupMenu_Out(e) -{ - if (gbBsIE4||gbBsOpera7) - e.srcElement.className = "PopupNotOver"; - else if (gbBsNS6) - e.target.parentNode.className = "PopupNotOver"; - return; -} - -function PopupMenu_HandleClick(e) -{ - if (window.gbPopupMenuTimeoutExpired) { - window.gbInPopupMenu = false; - if (gbBsNS4 && !gbBsNS6) { - window.releaseEvents(Event.MOUSEDOWN); - } - - var layerPopup = null; - if (gbBsNS4&&!gbBsNS6) { - layerPopup = document.layers.PopupMenu; - layerPopup.visibility = "hide"; - } else { - layerPopup = getElement("PopupMenu"); - layerPopup.style.visibility = "hidden"; - } - - if (gOlddocumentClick) - { - if (gbBsNS4 && !gbBsNS6) - document.onmousedown = gOlddocumentClick; - else - document.onclick = gOlddocumentClick; - } - } - return; -} - -function BSSCPopup_ClickMac() -{ - if ((!DHTMLPopupSupport()) && (gbBsIE4 || gbBsOpera7)) - { - var bClickOnAnchor = false; - var el; - if ((window.event != null) && - (window.event.srcElement != null)) - { - el = window.event.srcElement; - while (el != null) - { - if ((el.tagName == "A") || (el.tagName == "AREA")) { - bClickOnAnchor = true; - break; - } - if (el.tagName == "BODY") { - break; - } - el = getParentNode(el); - } - } - if (BSSCPopup_IsPopup()) - { - if (!bClickOnAnchor) { - parent.window.gPopupWindow = null; - self.close(); - } - } - else - { - bClosePopupWindow = true; - if ((bClickOnAnchor) && - (el.href) && - ((el.href.indexOf("javascript:BSSCPopup") != -1) || (el.href.indexOf("javascript:null") != -1) || (el.href.indexOf("javascript:void(0)") != -1))) - { - bClosePopupWindow = false; - } - if (bClosePopupWindow) - { - if (window.gPopupWindow != null && !window.gPopupWindow.closed ) - { - window.gPopupWindow.close(); - } - } - } - } -} - -function BsPopupOnClick() -{ - if (!gbBsIE4 && !gbBsOpera7) - return; - - BSSCPopup_ClickMac(); -} - -function _BSSCOnError(message) -{ - if(-1 != message.indexOf("denied") - || -1 != message.indexOf("Object required")) - return true; -} - -//End to support previous relative topics - -/// Section End - General and relative topics (JavaScript 1.0) - -/// Section Begin - Popup (JavaScript 1.0) -//Begin to support previous popup functions - -//variables used to isolate the browser type -var gBsStyVisShow = null; -var gBsStyVisHide = null; -var gBsClientWidth = 640; -var gBsClientHeight = 480; - -// here is the varible for judge popup windows size. these parameter is for IE5.0, it may need adjust for others. -var gBRateH_W = 0.618; // 1.618 Golden cut. -var gBMaxXOfParent = 0.8; -var gBMaxYOfParent = 0.8; -var gBscrollHeight = 16; -var gBscrollWidth = 16; -var gBpermitXDelta = 3; -var gBpermitYDelta = 3; - - -var arrayPopupURL = new Array(); -var arrayAbsPopupURL = new Array(); - -var arrayDirty = new Array(); - -function setAbsPopupURL(nIndex, strURL) -{ - arrayAbsPopupURL[nIndex] = strURL; -} - -function getAbsPopupURL(nIndex) -{ - if (nIndex == -1 || arrayAbsPopupURL.length <= nIndex) return null; - else - return arrayAbsPopupURL[nIndex]; -} - -function getPopupURL(nIndex) -{ - if (nIndex == -1 || arrayPopupURL.length <= nIndex) return null; - else - return arrayPopupURL[nIndex]; -} - -function getPopupID(nIndex) -{ - return gstrPopupID + nIndex; -} - -function getPopupShadowID(nIndex) -{ - return gstrPopupShadowID + nIndex; -} - -function getPopupTopicID(nIndex) -{ - return gstrPopupTopicID + nIndex; -} - -function getPopupIFrameID(nIndex) -{ - return gstrPopupIFrameID + nIndex; -} - -function getPopupIFrameName(nIndex) -{ - return gstrPopupIFrameName + nIndex; -} - - -function getPopupTopicStyle(nIndex) -{ - return getElement(getPopupTopicID(nIndex)).style; -} - -function getPopupShadowStyle(nIndex) -{ - return getElement(getPopupShadowID(nIndex)).style; -} - -function getPopupIFrame(nIndex) -{ - if (gbBsNS6) - return eval("window.frames['" + getPopupIFrameName(nIndex) + "']"); - else - return eval("document.frames['" + getPopupIFrameName(nIndex) + "']"); -} - -function getPopupDivStyle(nIndex) -{ - return getElement(getPopupID(nIndex)).style; -} - -function getPopupIFrameStyle(nIndex) -{ - return getElement(getPopupIFrameID(nIndex)).style; -} - - -function findDiv(strURL) -{ - for (var i = 0; i < arrayPopupURL.length; i ++ ) { - if (arrayPopupURL[i] == strURL) { - return i; - } - } - return -1; -} - -var gnToken = -1; -function takeToken() -{ - gnToken ++; - if (gnToken > 10000) gnToken = 0; - return gnToken; -} - -function IsValidToken(nToken) -{ - return (gnToken == nToken); -} - -function addDiv(strURL) -{ - for (var i = 0; i < arrayPopupURL.length; i ++) { - if (arrayPopupURL[i] == null) { - arrayPopupURL[i] = strURL; - return i; - } - } - arrayPopupURL[i] = strURL; - arrayDirty[i] = true; - return i; -} - -function setDirty() -{ - for (var i = 0; i < arrayPopupURL.length; i ++ ) - arrayDirty[i] = true; -} - -function IsDirty(nIndex) -{ - if (nIndex == -1) - return true; - else - if (arrayDirty.length > nIndex) - return arrayDirty[nIndex]; - else - return true; -} - -function hideAll() -{ - for (var i = 0; i < arrayPopupURL.length; i ++ ) - { - getPopupDivStyle(i).visibility = gBsStyVisHide; - getPopupIFrameStyle(i).visibility = gBsStyVisHide; - } -} - -function getCurrentPopupIFrame() -{ - for (var i = 0; i < arrayPopupURL.length; i ++) - if (getPopupDivStyle(i).visibility == gBsStyVisShow) - return getPopupIFrame(i); - return null; -} - -function setClear(nIndex) -{ - if (nIndex != -1) - arrayDirty[nIndex] = false; -} - -function _BSSCCreatePopupDiv(strURL) -{ - var nIndex = findDiv(strURL); - if (nIndex == -1 ) { - nIndex = addDiv(strURL); - BsPopup_CreateDiv(nIndex); - } - else { - if (IsDirty(nIndex)) { - if("object" == typeof(getPopupIFrame(nIndex).document)) - getPopupIFrame(nIndex).document.location.href = strURL; - } - } - return nIndex; -} - -//Here is the browser type -function _BSPSGetBrowserInfo() -{ - if (gbBsNS4&&!gbBsNS6) - { - gBsStyVisShow = "show"; - gBsStyVisHide = "hide"; - } - else - { - gBsStyVisShow = "visible"; - gBsStyVisHide = "hidden"; - } -} - -_BSPSGetBrowserInfo(); - -//Get client size info -function _BSPSGetClientSize() -{ - if (gbBsNS4||gbBsKonqueror3||gbBsSafari) - { - gBsClientWidth = innerWidth; - gBsClientHeight = innerHeight; - } - else if (gbBsIE4 || gbBsOpera7) - { - gBsClientWidth = document.body.clientWidth; - gBsClientHeight = document.body.clientHeight; - } -} - -var gstrPopupID = 'BSSCPopup'; -var gstrPopupShadowID = 'BSSCPopupShadow'; -var gstrPopupTopicID = 'BSSCPopupTopic'; -var gstrPopupIFrameID = 'BSSCPopupIFrame'; -var gstrPopupIFrameName = 'BSSCPopupIFrameName'; - -var gstrPopupSecondWindowName = 'BSSCPopup'; - -var gPopupWindow = null; -var gnPopupClickX = 0; -var gnPopupClickY = 0; - -var gnPopupScreenClickX = 0; -var gnPopupScreenClickY = 0; - -var gbPopupTimeoutExpired = false; - -function DHTMLPopupSupport() -{ - if (((gbBsIE4) && (!gbBsMac))||gbBsOpera7|| gbBsNS7) { - return true; - } - return false; -} - -function BSSCPopup_IsPopup() -{ - if (DHTMLPopupSupport() && (this.name.indexOf(gstrPopupIFrameName) != -1)) { - return true; - } else if ((gbBsNS4 || gbBsIE4 || gbBsOpera7) && (this.name.indexOf(gstrPopupID) != -1)) { - return true; - } else { - return false; - } -} - -// If there is a hyperlink in a popup window, display the hyperlink in -// the original window. (bsscright) -if (BSSCPopup_IsPopup() && !gbBsIE4 && !gbBsOpera7) { - document.write(""); -} - -// Local functions. -function BsPopup_CreateDiv(nIndex) -{ - if(!DHTMLPopupSupport()) - return; - // DO NOT SET Width and height for the div, otherwize it will make IE4 popup do not work when view the topic alone. - var strPopupDiv = ""; - - var objBody = getElementsByTag(document, "BODY")[0]; - if( typeof(objBody) != "object" ) - return; - - insertAdjacentHTML(objBody, "beforeEnd", strPopupDiv); -} - -function handleLoadNS() -{ - if (this.id) - { - var nIndex = parseInt(this.id.substring(gstrPopupIFrameID.length)); - BSSCPopup_PostWork(nIndex); - } -} - -function BSSCPopup_PostWork(nIndex) -{ - getPopupDivStyle(nIndex).visibility = gBsStyVisShow; - getPopupIFrameStyle(nIndex).visibility =gBsStyVisShow; - - setClear(nIndex); - window.gbPopupTimeoutExpired = true; - - BSSCPopup_ChangeTargettoParent(getPopupIFrame(nIndex).document); - if (gbBsNS6) - getPopupIFrame(nIndex).document.body.addEventListener("click",BSSCPopupClicked,false); - else - getPopupIFrame(nIndex).document.body.onclick = BSSCPopupClicked; - - if (!gbOrignalOnMouseDown && document.onmousedown) - gbOrignalOnMouseDown = document.onmousedown; - - if (gbBsNS6) - document.addEventListener("mousedown", BSSCPopupParentClicked,false); - else - document.onmousedown = BSSCPopupParentClicked; -} - -function BSSCPopup_Timeout(nIndex, nToken) -{ - if (!IsValidToken(nToken)) return; - - if (gbBsNS6||((getPopupIFrame(nIndex).document.readyState == "complete") && - (getPopupIFrame(nIndex).document.body != null))) { - BSSCPopup_PostWork(nIndex); - } else { - setTimeout("BSSCPopup_Timeout(" + nIndex + "," + nToken + ")", 100); - } -} - -// VH 08/10/00 -// do not change target to parent if the href is using javascript -function BSSCPopup_ChangeTargettoParent(tagsObject) -{ - var collA = getElementsByTag(tagsObject, "A"); - BSSCPopup_ChangeTargettoParent2(collA); - - var collIMG = getElementsByTag(tagsObject,"IMG"); - BSSCPopup_ChangeTargettoParent2(collIMG); -} - -function BSSCPopup_ChangeTargettoParent2(colls) -{ - if (colls != null) { - for (var j = 0; j < colls.length; j ++ ) - { - var strtemp = colls[j].href; - if (strtemp) - { - strtemp = strtemp.toLowerCase(); - if (strtemp.indexOf("javascript:") == -1) - if (colls[j].target == "") - colls[j].target = "_parent"; - } - } - } -} - -function BSPSPopupTopicWinHelp(strURL) -{ - _BSSCPopup(strURL); - return; -} - -function _BSSCPopup(strURL, width, height) -{ - var cuswidth = 0; - var cusheight = 0; - if ("undefined" != typeof(width) && "undefined" != typeof(height)) { - cuswidth = width; - cusheight= height; - } - - if (DHTMLPopupSupport()) { - var nToken = takeToken(); // take token first. - var nIndex = _BSSCCreatePopupDiv(strURL); - window.gbPopupTimeoutExpired = false; - var ntWidth = gBsClientWidth; - var ntHeight = gBsClientHeight; - _BSPSGetClientSize(); - if (ntWidth != gBsClientWidth || ntHeight != gBsClientHeight) { - setDirty(); - } - - if (IsDirty(nIndex)) { - if (gbBsMac) { - setTimeout("BSSCPopup_AfterLoad(" + nIndex + "," + nToken + "," + cuswidth + "," + cusheight +")", 400); - } else { - setTimeout("BSSCPopup_AfterLoad(" + nIndex + "," + nToken + "," + cuswidth + "," + cusheight + ")", 100); - } - } - else { - MoveDivAndShow(nIndex ,nToken, cuswidth, cusheight); - } - } else { - _BSSCPopup2(strURL, cuswidth, cusheight); - } - return; -} - -if (gbBsIE55) -{ - var ehlpdhtm_fOldBefureUnload = window.onbeforeunload; - var gnBsUnload=0; - window.onbeforeunload = window_BUnload; -} - -function window_BUnload() -{ - gnBsUnload++; - if (gnBsUnload>1) - return; - for (var i = 0; i < arrayPopupURL.length; i ++) - removeThis(document.all(getPopupID(i))); - arrayPopupURL.length = 0; - if (ehlpdhtm_fOldBefureUnload) - ehlpdhtm_fOldBefureUnload(); -} - -function _BSSCPopup2(strURL, width, height) -{ - if (gbBsOpera6&&gbBsMac) - { - var wmTemp = window.open(document.location.href, gstrPopupSecondWindowName); - wmTemp.close(); - setTimeout("_BSSCPopup3(\""+strURL+"\","+width+","+height+");",100); - } - else - _BSSCPopup3(strURL, width, height); -} - -function _BSSCPopup3(strURL, width, height) -{ - if (window.name == gstrPopupSecondWindowName) { - window.location = strURL; - } else { - if (!gbBsMac || !gbBsNS4) { - BSSCHidePopupWindow(); - } - var nX = 0; - var nY = 0; - var nHeight = 300; - var nWidth = 400; - if (width > 0 && height > 0) { - nHeight = height; - nWidth = width; - } - _BSPSGetClientSize(); - - nX = window.gnPopupScreenClickX; - nY = window.gnPopupScreenClickY; - - if (nY + nHeight + 40 > screen.availHeight) { - nY = screen.availHeight - nHeight - 40; - } - if (nX + nWidth + 40 > screen.availWidth) { - nX = screen.availWidth - nWidth - 40; - } - - // Launch a separate window - var strParam="titlebar=no,toolbar=no,status=no,location=no,menubar=no,resizable=yes,scrollbars=yes"; - if (gbBsNS) { - if (gbBsNS6) { - strParam += ",Height=" + nHeight + ",Width=" + nWidth; - strParam += ",screenX=" + nX + ",screenY=" + nY; - strParam += ",dependent=yes"; - } - else { - strParam += ",OuterHeight=" + nHeight + ",OuterWidth=" + nWidth; - strParam += ",screenX=" + nX + ",screenY=" + nY; - strParam += ",dependent=yes"; - } - } - else { - strParam += ",height=" + nHeight + ",width=" + nWidth; - strParam += ",left=" + nX + ",top=" + nY; - } - if (gbBsSafari) - { - if (window.gPopupWindow) - window.gPopupWindow.close(); - window.gPopupWindow = window.open(strURL, "", strParam); - window.gPopupWindow.name = gstrPopupSecondWindowName; - window.gPopupWindow.moveTo(nX, nY); - widnow.gPopupWindow.document.location.reload(); - } - else - { - var wmTemp=null; - if (gbBsKonqueror3) - { - if (window.gPopupWindow) - window.gPopupWindow.close(); - } - if (gbBsOpera&&gbBsMac) - { - wmTemp= window.open(document.location.href, "Temp", strParam); - } - window.gPopupWindow = window.open(strURL, gstrPopupSecondWindowName, strParam); - if (!gbBsIE) - window.gPopupWindow.focus(); - - if (wmTemp) - wmTemp.close(); - } - - if (gbBsNS4) - setEventHandle(); - else if (gbBsIE4 || gbBsOpera7||gbBsKonqueror3) - setTimeout("setPopupFocus();", 100); - } - return; -} - -function setEventHandle() -{ - window.gPopupWindow.captureEvents(Event.CLICK | Event.BLUR); - window.gPopupWindow.onclick = NonIEPopup_HandleClick; - window.gPopupWindow.onblur = NonIEPopup_HandleBlur; -} - -function setPopupFocus() -{ - window.gPopupWindow.focus(); -} - -function NonIEPopup_HandleBlur(e) -{ - window.gPopupWindow.focus(); -} - -function NonIEPopup_HandleClick(e) -{ - // Because navigator will give the event to the handler before the hyperlink, let's - // first route the event to see if we are clicking on a Popup menu in a popup. - document.routeEvent(e); - - // If a popup menu is active then don't do anything with the click - if (window.gPopupWindow.gbInPopupMenu) { - window.gPopupWindow.captureEvents(Event.CLICK); - window.gPopupWindow.onclick = NonIEPopup_HandleClick; - return false; - } - - // Close the popup window - if(e.target.href) - { - if(e.target.href.indexOf("javascript:")==-1) - { - if (e.target.target=="") - window.location.href = e.target.href; - else - window.open(e.target.href, e.target.target); - this.close(); - } - } - else - this.close(); - return false; -} - -function BSSCPopup_AfterLoad(nIndex, nToken, cuswidth, cusheight) -{ - if (!window.getPopupIFrame(nIndex).document) { - _BSSCPopup2(getPopupURL(nIndex), cuswidth, cusheight); - return; - } - - if (!IsValidToken(nToken)) return; - - if (gbBsNS6) - { - setAbsPopupURL(nIndex, window.getPopupIFrame(nIndex).document.location.href); // change URL to abs url. - BSSCPopup_ResizeAfterLoad(nIndex, nToken, cuswidth, cusheight); - return; - } - - if ((window.getPopupIFrame(nIndex).document.readyState == "complete") && - (window.getPopupIFrame(nIndex).document.body != null)) { - if (window.getPopupIFrame(nIndex).document.location.href.indexOf("about:blank") != -1) { // add this check. IE will use about:blank" as the default vaule for Iframe. - window.getPopupIFrame(nIndex).document.location = getPopupURL(nIndex); - setTimeout("BSSCPopup_AfterLoad(" + nIndex + "," + nToken + "," + cuswidth + "," + cusheight + ")", 200); - } - else - { - setAbsPopupURL(nIndex, window.getPopupIFrame(nIndex).document.location.href); // change URL to abs url. - BSSCPopup_ResizeAfterLoad(nIndex, nToken, cuswidth, cusheight); - } - } else { - setTimeout("BSSCPopup_AfterLoad(" + nIndex + "," + nToken + "," + cuswidth + "," + cusheight + ")", 200); - } -} - -function BSSCPopup_ResizeAfterLoad(nIndex, nToken, cuswidth, cusheight) -{ - if (window.gbPopupTimeoutExpired) return; - - if (!IsValidToken(nToken)) return; - - getPopupDivStyle(nIndex).visibility = gBsStyVisHide; - getPopupIFrameStyle(nIndex).visibility = gBsStyVisHide; - - // Determine the width and height for the window - _BSPSGetClientSize(); - - var size = new BSSCSize(0, 0); - - if (cuswidth <= 0 || cusheight <= 0) - BSSCGetContentSize(window.getPopupIFrame(nIndex), size); - else { - size.x = cuswidth; - size.y = cusheight; - } - - // Determine the width and height for the window - var nWidth = size.x; - var nHeight = size.y; - - // for small popup size, we should allow any size. - // The popup size should be ok if bigger than 0 - if (nWidth < 0 || nHeight < 0) return; // there must be something terribly wrong. - - getPopupDivStyle(nIndex).width = nWidth; - getPopupDivStyle(nIndex).height = nHeight; - - getPopupShadowStyle(nIndex).width = nWidth; - getPopupShadowStyle(nIndex).height = nHeight; - getPopupTopicStyle(nIndex).width = nWidth; - getPopupTopicStyle(nIndex).height = nHeight; - if (gbBsIE55) - { - getPopupShadowStyle(nIndex).width = nWidth + 2; - getPopupShadowStyle(nIndex).height = nHeight + 2; - getPopupTopicStyle(nIndex).width = nWidth + 2; - getPopupTopicStyle(nIndex).height = nHeight + 2; - } - - getPopupIFrameStyle(nIndex).width = nWidth; - getPopupIFrameStyle(nIndex).height = nHeight; - if (gbBsIE55 || gbBsNS6) - { - getPopupIFrameStyle(nIndex).top = 0; - getPopupIFrameStyle(nIndex).left = 0; - } - - var strURL = getPopupURL(nIndex); - if (strURL.indexOf("#") != -1&&gbBsNS6) - getPopupIFrame(nIndex).location.reload(); - else if (strURL.indexOf("#") != -1||gbBsNS6) - getPopupIFrame(nIndex).location.href = strURL; // reload again, this will fix the bookmark misunderstand in IE5. - - MoveDivAndShow(nIndex, nToken, cuswidth, cusheight); -} - -function getScrollLeft() -{ - if (document.body.scrollLeft) - return document.body.scrollLeft; - else if (window.pageXOffset) - return window.pageXOffset; - else - return 0; -} - -function getScrollTop() -{ - if (document.body.scrollTop) - return document.body.scrollTop; - else if (window.pageYOffset) - return window.pageYOffset; - else - return 0; -} - - -function MoveDivAndShow(nIndex, nToken, cuswidth, cusheight) -{ - if (window.getPopupIFrame(nIndex).document.location.href != getAbsPopupURL(nIndex)) { // if redirect, reload again. - window.getPopupIFrame(nIndex).document.location = getPopupURL(nIndex); - setTimeout("BSSCPopup_AfterLoad(" + nIndex + "," + nToken + "," + cuswidth + "," + cusheight + ")", 200); - return; - } - - // Determine the position of the window - var nClickX = window.gnPopupClickX; - var nClickY = window.gnPopupClickY; - var nTop = 0; - var nLeft = 0; - - var nWidth = parseInt(getPopupDivStyle(nIndex).width); - var nHeight = parseInt(getPopupDivStyle(nIndex).height); - - if (nClickY + nHeight + 20 < gBsClientHeight + getScrollTop()) { - nTop = nClickY + 10; - } else { - nTop = (getScrollTop() + gBsClientHeight) - nHeight - 20; - } - if (nClickX + nWidth < gBsClientWidth + getScrollLeft()) { - nLeft = nClickX; - } else { - nLeft = (getScrollLeft() + gBsClientWidth) - nWidth - 8; - } - - if (nTop < getScrollTop()) nTop = getScrollTop() + 1; - if (nLeft< getScrollLeft()) nLeft = getScrollLeft() + 1; - - getPopupDivStyle(nIndex).left = nLeft; - getPopupDivStyle(nIndex).top = nTop; - - // Set the location of the background blocks - getPopupShadowStyle(nIndex).left = 6; - getPopupShadowStyle(nIndex).top = 6; - if (gbBsIE55) - { - getPopupShadowStyle(nIndex).left = 4; - getPopupShadowStyle(nIndex).top = 4; - } - - if (gbBsMac&&gbBsIE4) { - // Total hack on the iMac to get the IFrame to position properly - getPopupIFrameStyle(nIndex).pixelLeft = 100; - getPopupIFrameStyle(nIndex).pixelLeft = 0; - // Explicitly call BSSCOnLoad because the Mac doesn't seem to do it - getPopupIFrame(nIndex).window.BSSCOnLoad(); - } - - if (gbBsNS6&&IsDirty(nIndex)) - getElement(getPopupIFrameID(nIndex)).addEventListener("load", handleLoadNS, false); - else - BSSCPopup_Timeout(nIndex , nToken ); - return; -} - -function BSSCSize(x, y) -{ - this.x = x; - this.y = y; -} - -function BSSCGetContentSize(thisWindow, size) -{ - if (!gbBsIE4 && !gbBsOpera7 && !gbBsNS4) - return; - - if ((gbBsMac&&gbBsIE4)||gbBsNS4||gbBsOpera7) { - size.x = 320; - size.y = 180; - return; - } - - // Resize the width until it is wide enough to handle the content - // The trick is to start wide and determine when the scrollHeight changes - // because then we know a scrollbar is necessary. We can then go back - // to the next widest size (for no scrollbar) - - var ClientRate = gBsClientHeight / gBsClientWidth; - - - var GoldenSize = new BSSCSize(0,0); - GoldenSize.x = gBsClientWidth * gBMaxXOfParent; - GoldenSize.y = gBsClientHeight *gBMaxYOfParent ; - - if (ClientRate > gBRateH_W) { - GoldenSize.y = GoldenSize.x * gBRateH_W; - } - else { - GoldenSize.x = GoldenSize.y / gBRateH_W; - } - - // Try to using parent specified max x. - var x = 0; - var maxgoldx = GoldenSize.x; - var maxx = gBsClientWidth * gBMaxXOfParent; - - // This double resize causes the document to re-render (and we need it to) - if (!gbBsIE5) - thisWindow.moveTo(10000,10000); // this is used to fix the flash on IE4. - - thisWindow.resizeTo(1, 1); - thisWindow.resizeTo(1, 1); - thisWindow.resizeTo(maxgoldx, thisWindow.document.body.scrollHeight + gBscrollHeight); - thisWindow.resizeTo(maxgoldx, thisWindow.document.body.scrollHeight + gBscrollHeight); - - var miny = thisWindow.document.body.scrollHeight + gBscrollHeight; - - if (miny > GoldenSize.y) // the popup does not fix in the parent wanted golden area. so try to expand itself as large as it can - { - thisWindow.resizeTo(maxx , thisWindow.document.body.scrollHeight + gBscrollHeight); - thisWindow.resizeTo(maxx , thisWindow.document.body.scrollHeight + gBscrollHeight); - - miny = thisWindow.document.body.scrollHeight + gBscrollHeight; - maxy = gBsClientHeight * gBMaxYOfParent; - - if (miny > maxy) { // the popup must have a scroll, OK let it be. - miny = maxy; - size.x = maxx; - size.y = maxy; - thisWindow.document.body.scroll = 'yes'; // At this time we do want to show scroll any more. so it will looks better a little. - } - else { // popup still can fit in the parent area by someway. now we choose the same h/w rate as parent. - size.y = miny; - - // downsize from maxx , now I try to using binary divide. - x = maxx; - deltax = -maxx/2; - //j = 0; - while (true) { - x = x + deltax; - thisWindow.resizeTo(x, miny); - thisWindow.resizeTo(x, miny); - diffy = thisWindow.document.body.scrollHeight + gBscrollHeight - x * ClientRate; - if (diffy > gBpermitYDelta ) // it is higher than wanted, so x need to be wide a little bitter - deltax = Math.abs(deltax) /2; - else if (diffy < -gBpermitYDelta) // it is shorter than wanted, so x need to be narrow a little bitter - deltax = -Math.abs(deltax) /2; - else - // the y is close enough to wanted. - break; - if (Math.abs(deltax) < gBpermitXDelta) // the next change is too slight and it can be ignore. - break; - } - size.x = thisWindow.document.body.scrollWidth; //+ gBscrollWidth; - size.y = thisWindow.document.body.scrollHeight;// + gBscrollHeight; - thisWindow.document.body.scroll = 'no'; - } - } - else { - if (thisWindow.document.body.scrollWidth > maxgoldx) { - size.x = maxx; - size.y = miny; - thisWindow.document.body.scroll = 'yes'; - } - else { - // downsize from maxgoldx , now I try to using binary divide. - x = maxgoldx; - deltax = -maxgoldx/2; - while (true) { - x = x + deltax; - thisWindow.resizeTo(x, miny); - thisWindow.resizeTo(x, miny); - diffy = thisWindow.document.body.scrollHeight + gBscrollHeight - x * gBRateH_W; - if (diffy > gBpermitYDelta ) // it is higher than wanted, so x need to be wide a little bitter - deltax = Math.abs(deltax) /2; - else if (diffy < -gBpermitYDelta) // it is shorter than wanted, so x need to be narrow a little bitter - deltax = -Math.abs(deltax) /2; - else - // the y is close enough to wanted. - break; - if (Math.abs(deltax) < gBpermitXDelta) // the next change is too slight and it can be ignore. - break; - } - size.x = thisWindow.document.body.scrollWidth; //+ gBscrollWidth; - size.y = thisWindow.document.body.scrollHeight ; - thisWindow.document.body.scroll = 'no'; // At this time we do not want to show scroll any more. so it will looks better a little. - thisWindow.resizeTo(size.x, size.y); - if (thisWindow.document.body.scrollWidth > size.x) - { - size.x = thisWindow.document.body.scrollWidth; - } - if (thisWindow.document.body.scrollHeight > size.y) - { - size.y = thisWindow.document.body.scrollHeight; - } - } - } - thisWindow.resizeTo(size.x, size.y); - thisWindow.resizeTo(size.x, size.y); - return; -} - -function BSSCPopupParentClicked() -{ - if (!window.gbPopupTimeoutExpired) { - return false; - } - - document.onmousedown = gbOrignalOnMouseDown; - - // Simply hide the popup - hideAll(); - - window.gbPopupTimeoutExpired = false; - - return true; -} - -function isInsideHyperLink(obj) -{ - if (obj&&obj!=getParentNode(obj)) - { - if (obj.tagName=="A"||obj.tagName=="IMG") - return true; - else - return isInsideHyperLink(getParentNode(obj)); - } - else - return false; -} - -function BSSCPopupClicked(e) -{ - if (!window.gbPopupTimeoutExpired) { - return false; - } - - var popupIFrame = getCurrentPopupIFrame(); - if (popupIFrame == null) { - return true; - } - - if (gbBsIE4 && (!((popupIFrame.window.event != null) && - (popupIFrame.window.event.srcElement != null) && - isInsideHyperLink(popupIFrame.window.event.srcElement)))) { - document.onmousedown = gbOrignalOnMouseDown; - - // Simply hide the popup - hideAll(); - window.gbPopupTimeoutExpired = false; - return true; - } - else if (gbBsNS6 && (!((e != null) && - (e.target!= null) && isInsideHyperLink(e.target)))) - { - document.addEventListener("mousedown", gbOrignalOnMouseDown,false); - // Simply hide the popup - hideAll(); - window.gbPopupTimeoutExpired = false; - return true; - } -} - -//trace the mouse over's position for hotspot -function BSPSPopupOnMouseOver(event) -{ - if (gbBsIE4 || gbBsOpera7||gbBsKonqueror3) { - window.gnPopupClickX = event.clientX + getScrollLeft(); - window.gnPopupClickY = event.clientY + getScrollTop(); - window.gnPopupScreenClickX = event.screenX; - window.gnPopupScreenClickY = event.screenY; - } else if (gbBsSafari) { - window.gnPopupClickX = event.clientX + getScrollLeft(); - window.gnPopupClickY = event.clientY + getScrollTop(); - window.gnPopupScreenClickX = event.screenX + window.screenX; - window.gnPopupScreenClickY = event.screenY + window.screenY; - } else if (gbBsNS4) { - window.gnPopupClickX = event.pageX - window.pageXOffset; - window.gnPopupClickY = event.pageY - window.pageYOffset; - window.gnPopupScreenClickX = event.screenX - window.pageXOffset; - window.gnPopupScreenClickY = event.screenY - window.pageYOffset; - } -} - -function BSSCHidePopupWindow() -{ - if (window.gPopupWindow != null) { - if (gbBsNS4) { - if ((typeof window.gPopupWindow != "undefined") && (!window.gPopupWindow.closed)) { - window.gPopupWindow.close(); - window.gPopupWindow = null; - } - } - } - return; -} - -// Add the PopupOnClick to the onclick array. -if (typeof(BsscRegisterOnClick) != "undefined") -{ - BsscRegisterOnClick(BsPopupOnClick); -} -//End to support previous popup functions - -/// Section End - Popup (JavaScript 1.0) - -/// Section Begin - Embedded Stub (JavaScript 1.0) - -function BSSCCreatePopupDiv() -{ - return; -} - -function WritePopupMenuLayer() -{ - if (BsscHasExtJs()) {_WritePopupMenuLayer();} -} - -function BSSCPopup(strURL, width, height) -{ - var re = new RegExp("'", 'g'); - strURL = strURL.replace(re, "%27"); - - if (BsscHasExtJs()) { - _BSSCPopup(strURL, width, height); - }else{ - //Create a temporary window first to ensure the real popup comes up on top - var wndTemp = null; - if (!gbBsNS3) { - wndTemp = window.open("", "temp", "titlebar=no,toolbar=no,status=no,location=no,menubar=no,resizable=yes,scrollbars=yes,height=3,width=4"); - } - // Create the real popup window - var wndPopup = window.open(strURL, "BSSCPopup", "titlebar=no,toolbar=no,status=no,location=no,menubar=no,resizable=yes,scrollbars=yes,height=300,width=400"); - // Close the temporary - if (!gbBsNS3) { - wndTemp.close(); - } else { - wndPopup.focus(); - } - } -} - -var gbWndTemp = null, gbWndPopupLinks = null; -var gbstrParaTotal = ""; - -function PopupMenu_Invoke() -{ - if (typeof(wfRelatedTopic) == 'function' && typeof(IsFlashSupported) == 'function') - { - if (Number(gsSkinVersion) > 2 && IsFlashSupported()) - { - return wfRelatedTopic(PopupMenu_Invoke.arguments); - } - } - if (BsscHasExtJs()) { - return _PopupMenu_Invoke(PopupMenu_Invoke.arguments); - } - if (gbBsNS3Before || gbBsIE3Before ) { - var argLen = PopupMenu_Invoke.arguments.length; - if (argLen < 5) { - window.document.location.href = PopupMenu_Invoke.arguments[3]; - return false; - } - gbWndTemp = null; - gbWndPopupLinks = null; - gbstrParaTotal = ""; - for (var i = 0; i < (argLen - 2) / 2; i++) { - var strParaLine = ""; - if (gbBsNS2){ - strParaLine += "" - strParaLine += PopupMenu_Invoke.arguments[2 * i + 2]; - strParaLine += ""; - } else { - strParaLine += ""); - if (gbBsNS2) { - gbWndPopupLinks.document.write(""); - } else { - //YJ: IE301,302 and NS3.x works fine - gbWndPopupLinks.document.write("<"); - gbWndPopupLinks.document.write("script>"); - gbWndPopupLinks.document.write("function gotoUrl(aUrl) {opener.window.location=aUrl; close();}"); - gbWndPopupLinks.document.write("<"); - gbWndPopupLinks.document.write("/script>"); - } - gbWndPopupLinks.document.write(""); - gbWndPopupLinks.document.write(gbstrParaTotal); - gbWndPopupLinks.document.write(""); - gbWndPopupLinks.document.close(); - - // Close the temporary - if (!gbBsNS3 && gbWndTemp != null) { - gbWndTemp.close(); - }else { - gbWndPopupLinks.focus(); - } - - return true; - } - return false; -} - -/// Section End - Embedded Stub (JavaScript 1.0) - -//// Segment End -- (JavaScript 1.0) - -//// Segment Begin -- (JavaScript 1.2) -/// Section Begin - kadov DHTM (JavaScript 1.2) - -//Begin to support extended and dropdown text effects. -function kadovIsParagraph(el) -{ - return( el.tagName == "P" || el.tagName.indexOf("H") == 0 ) ? true : false; -} - -function kadovInitEachChild(el) -{ - for(var i=0; i "") ) - child.style.setAttribute( "x-on-pageload", "" ); - } - - var href = child.getAttribute("href") - if( href != null && href > "" && href.indexOf( "BSSCPopup" ) >= 0 ) - kadovFilePopupInit(child.id); // Init for Popup - else if( child.className == "dropspot" || child.className == "expandspot" || - child.className == "glossterm" ) - kadovTextPopupInit(child.id);// Init for Expanding/Glossary or DropDown text - else if( child.className == "trigger") - kadovInitTrigger(child.id);// Init for Trigger - else - { - kadovInitEffects(child.id);// Init for DHTML effects - CEngine.SetOneTargetInitialState( child.id ); - } - } - - if( (child.tagName == "IMG") && (child.getAttribute("dynsrc") > "") ) - child.start = "mouseover";// to start a AVI file. fileopen doesn't work - - kadovInitEachChild(child); - } -} - -function kadovRetrieveTextInner(el) -{ - var x = ""; - if( (!el) || (el.tagName == "!") || (el.tagName == "SCRIPT" )) - return x; - - if( kadovIsParagraph(el) ) - { - var strNewID = " "; - if( el.id != "" ) - strNewID += "id=" + el.id + "_NewSpan "; - x = "" + el.innerHTML + ""; - } - else - { - for(var i=0; i 0 ) - if( (nTagClose - nTagOpen) != nDistance ) - return strRawHTML; - - var strCleanOnce = strRawHTML.substring(0, nTagOpen) + strRawHTML.substr(nTagClose + strTagClose.length) ; - return kadovRetrieveCleanHTML( strCleanOnce, strTagOpen, strTagClose ); -} - -function kadovAdjustObjectTag(strRawHTML, nStartPos) -{// adjust object tag for related topics HTML control, because innerHTML misses out the item settings - - //Is there any DTC? - var strDTCTagOpen = ''; - var nDTCTagOpen = strRawHTML.indexOf( strDTCTagOpen, nStartPos ); - if( nDTCTagOpen < 0 ) - return strRawHTML; - var nDTCTagClose = strRawHTML.indexOf( strDTCTagClose, nDTCTagOpen ); - if( nDTCTagClose < nDTCTagOpen) - return strRawHTML; // no Design Time Controls; - - //Is the DTC HTML Help Control? - var strRTObjTagOpen = 'classid=clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11'; - var strRTObjTagClose = ''; - var nRTObjTagOpen = strRawHTML.indexOf( strRTObjTagOpen, nDTCTagOpen ); - if( nRTObjTagOpen < nDTCTagOpen ) - return strRawHTML; - var nRTObjTagClose = strRawHTML.indexOf( strRTObjTagClose, nRTObjTagOpen ); - if( nRTObjTagClose < nRTObjTagOpen ) - return strRawHTML; // is not a HTML help control - - // Is it a related Topics html help control? - var strRTObjLabel = ''; - } - - // to insert the reconstructed item params into runtime object tag - var strAdjustedHTML = strRawHTML.substring(0,nRTObjTagClose) + strRunTimeItemParam + strRawHTML.substring(nRTObjTagClose, strRawHTML.length); - return kadovAdjustObjectTag(strAdjustedHTML, nDTCTagClose + strDTCTagClose.length); -} - -function kadovTextPopupOnLoad( el ) -{ - if( typeof(el) == "string" ) - el = getElement(el); - - var src = el.getAttribute( "x-use-popup" ); - var bNeedMove=true; - if(!src&&el.id) - { - for (var i=0;i"); - strCleanHTML = kadovRetrieveCleanHTML(strCleanHTML, ""); - - //work around the bug in HH.exe that highlight the phrases when use Search tab - //this approach is just removing the tag inserted by Microsoft in the runtime - strCleanHTML = kadovRetrieveCleanHTML(strCleanHTML, "", 52); - - var strStyle = " style='display:none; position:relative;"; - var newDiv = "
" + strCleanHTML + "
"; - - removeThis(srcDiv); // empty the original DIV tag - var elParentPra = kadovFindParentParagraph(el); - if( elParentPra ) - insertAdjacentHTML(elParentPra, "afterEnd", newDiv ); - } - else if( type == "expanding" ) - { - var inner = kadovRetrieveTextInner(srcDiv); - if( inner == "" ) - inner = srcDiv.innerHTML; - var strAdjust = kadovAdjustObjectTag(inner,0); - var strCleanHTML = kadovRetrieveCleanHTML(strAdjust, ""); - strCleanHTML = kadovRetrieveCleanHTML(strCleanHTML, ""); - var strClassName = (el.className == "glossterm") ? "glosstext" : "expandtext"; - var newSpan = ""; - removeThis(srcDiv); // empty the original DIV tag - insertAdjacentHTML(el, "afterEnd", newSpan ); - } - } - } - else - { - srcDiv.style.display = "none"; - } - return 0; -} - -function getElementsByTag(obj,sTagName) -{ - if(obj.getElementsByTagName) - return obj.getElementsByTagName(sTagName); - else if(obj.all) - return obj.all.tags(sTagName); - return null; -} - -function getElement(sID) -{ - if(document.getElementById) - return document.getElementById(sID); - else if(document.all) - return document.all(sID); - return null; -} - -function getParentNode(obj) -{ - if(obj.parentNode) - return obj.parentNode; - else if(obj.parentElement) - return obj.parentElement; - return null; -} - -function getChildNodes(obj) -{ - if(obj.childNodes) - { - var children = new Array(); - for (var i = 0; i < obj.childNodes.length; i++) - { - if (obj.childNodes[i].nodeType == 1) - children[children.length] = obj.childNodes[i]; - } - return children; - } - else if(obj.children) - return obj.children; - return null; -} - -function removeThis(obj) -{ - if(obj.parentNode) - obj.parentNode.removeChild(obj); - else - obj.outerHTML=""; -} - -function kadovTextPopup( el ) -{ - if (!gbBsIE4 && !gbBsOpera7 && !gbBsSafari && !gbBsNS6 && !gbBsKonqueror3 ) - return; - - var bNeedMove=true; - - if (window.event) - window.event.cancelBubble = true; - - if( typeof(el) == "string" ) - el = getElement(el); - - if (!el||el==window) - return; - - var src = el.getAttribute( "x-use-popup" ); - if(!src&&el.id) - { - for (var i=0;i= 0 && nNext < values.length ) - { - functions[nIdx] = values.substr( nStart, nNext-nStart+1); - nStart = nNext + 1; - nIdx++; - nNext = values.indexOf( "\)", nStart); - } - - for( var i=0; i= 0 ) - { - nPageClick = arrForClickCount[j].indexOf("="); - if( nPageClick > 0 ) - { - nClickTimes = arrForClickCount[j].substring( nPageClick + 1, arrForClickCount[j].length) * 1; - break; - } - } - } - var args = srcargs; - if( j < arrForClickCount.length ) - {// to strip out the "clicks=99" from the arguments string - args = ""; - for( var k = 0; k < arrForClickCount.length; k ++ ) - { - if( k != j ) - { - args += arrForClickCount[k]; - if( k < arrForClickCount.length - 1 ) - args += ","; - } - } - } - bsscFXInit( null, id, translatedProp, fnname, args, nClickTimes ); - } -} - -function kadovTranslateProp( prop ) -{ - switch( prop ) - { - case "x-on-hover" : return "bsschover"; - case "x-on-pageclick" : return "bsscpageclick"; - case "x-on-pageload" : return "bsscpageload"; - case "x-on-trigger-1" : return "bssctrigger1"; - case "x-on-trigger-2" : return "bssctrigger2"; - } - return null; -} -//End to convert iWrite format to RoboEditor Format for DHTML effects - -//Begin the definition of one entry to DHTML effects -function bsscFXInit( trigger_ID, target_ID, event_type, - action_type, action_setting, event_addional ) -{ - if( (!gbBsWindows && !gbBsSunOS && !(gbBsMac&&gbBsIE5)) || typeof(target_ID) != "string" )//MUST have a target_ID - return; // we don't support Navigator yet - - if( typeof(event_type) == "string" ) - event_type = event_type.toLowerCase(); - if( typeof(action_type) == "string" ) - action_type = action_type.toLowerCase(); - if( typeof(action_setting) == "string" ) - action_setting = action_setting.toLowerCase(); - - // to get the target element then add it to the target list - var eleTarget = CCSSP.GetObject( target_ID ); - if( (eleTarget != null) && (event_type != null) && (action_type != null) ) - { - CEngine.AddOneTarget( target_ID, eleTarget ); - CEngine.BuildTargetObject(target_ID, event_type, action_type, action_setting, event_addional); - } - - // to validate the trigger_ID parameter - if( typeof(trigger_ID) == "string" && trigger_ID != "" ) - CEngine.BuildTriggerObject( trigger_ID, target_ID ); -} -//End the definition of one entry to DHTML effects - -/// Section End - kadov DHTM (JavaScript 1.2) - -/// Section Begin - CCSSP DHTM (JavaScript 1.2) - -//Begin JavaScript libary for cross-platform positioning object. -function CCSSP(){} // constructor of CCSSP class - -CCSSP.GetObject = function( obj ) -{//convert object name string or reference into a valid object reference - if( typeof(obj) == "object" ) - return obj; - else if( typeof(obj) == "string" && obj != "") - { - if( gbBsNS4 ) - return eval("document." + obj); - else - return eval("document.all(\"" + obj + "\")"); - } - else - return null; -} - -CCSSP.MoveObjectTo = function(obj, x, y) -{//positioning an object at a specific pixel coordinate - if( gbBsNS4 ) - obj.moveTo(x,y); - else - { - obj.style.pixelLeft = x; - obj.style.pixelTop = y; - } -} - -CCSSP.MoveObjectBy = function(obj, dx, dy) -{//moveing a object by x and/or y pixel - if( gbBsNS4 ) - obj.moveBy(dx,dy); - else - { - obj.style.pixelLeft += dx; - obj.style.pixelTop += dy; - } -} - -CCSSP.SetObjectBGColor = function(obj, color) -{//set the background color of an object - if( gbBsNS4 ) - obj.bgColor = color; - else - obj.style.backgroundColor = color; -} - -CCSSP.ShowObject = function(obj, bShow) -{// set the object to be visible or invisible - if( gbBsNS4 ) - obj.visibility = (bShow == true) ? 'show' : 'hide'; - else - obj.style.visibility = (bShow == true) ? 'visible' : 'hidden';// when hidden, it still occupy some space. -} - -CCSSP.GetObjectLeft = function(obj) -{// retrieve the x coordinate of a posionable object - if( gbBsNS4 ) - return obj.left; - else - return obj.style.pixelLeft; -} - -CCSSP.GetObjectTop = function(obj) -{// retrieve the y coordinate of a posionable object - if( gbBsNS4 ) - return obj.top; - else - return obj.style.pixelTop; -} - -CCSSP.GetObjectContainLeft = function(obj) -{// retrieve the x coordinate of a posionable object relative to it's parent element - if( gbBsNS4 ) - return obj.pageX; - else - { - if( obj == document.body ) - return obj.clientLeft; - else - return obj.offsetLeft; - } -} - -CCSSP.GetObjectWindowLeft = function(obj) -{// retrieve the x coordinate of a posionable object relative to browser window - if( gbBsNS4 ) - return obj.pageX; - else - { - var nOffsetWindowLeft = 0; - for(var element = obj; element; element = element.offsetParent) - nOffsetWindowLeft += CCSSP.GetObjectContainLeft(element); - return nOffsetWindowLeft; - } -} - -CCSSP.GetObjectContainTop = function(obj) -{// retrieve the y coordinate of a posionable object relative to it's parent element - if( gbBsNS4 ) - return obj.pageY; - else - { - if( obj == document.body ) - return obj.clientTop; - else - return obj.offsetTop; - } -} - -CCSSP.GetObjectWindowTop = function(obj) -{// retrieve the y coordinate of a posionable object relative to browser window - if( gbBsNS4 ) - return obj.pageY; - else - { - var nOffsetWindowTop = 0; - for(var element = obj; element; element = element.offsetParent) - nOffsetWindowTop += CCSSP.GetObjectContainTop(element); - return nOffsetWindowTop; - } -} - -CCSSP.GetObjectHeight = function(obj) -{// retrieve the height of a posionable object - if( gbBsNS4 ) - return obj.clip.height; - else - return obj.offsetHeight; -} - -CCSSP.GetObjectWidth = function(obj) -{// retrieve the width of a posionable object - if( gbBsNS4 ) - return obj.clip.width; - else - return obj.offsetWidth; -} - -CCSSP.RegisterEventHandler = function( srcObj, rawEventName, funcHandler ) -{ // to add the "funcHandler" as the "rawEventName" 's handler to the "srcObj" object,the original event handler will be combined - if (gbBsNS4 && !gbBsNS6) - return ; - - var oldHandler = ""; - - if (gbBsMac &&gbBsIE4&&!gbBsIE5) - { - if (typeof(srcObj[rawEventName.toLowerCase()])=="unknown") - { //search for - - - - - - - - - - -

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:

- -

 

- -

- -

 

- -
- -

 

- - - - diff --git a/doc/salome/gui/GEOM/explode.htm b/doc/salome/gui/GEOM/explode.htm deleted file mode 100755 index 7e21453c5..000000000 --- a/doc/salome/gui/GEOM/explode.htm +++ /dev/null @@ -1,185 +0,0 @@ - - - - - -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:

- -
    - -
  • geompy.SubShapeAll(Shape, - Type) explodes a Shape on subshapes of a given Type and returns - a List of sub-shapes.

  • - -
  • geompy.SubShapeAllIDs(Shape, - Type)  explodes - a Shape on subshapes of a given Type and returns a List of IDs of sub-shapes. -

  • - -
  • geompy.SubShapeAllSorted(Shape, - Type)  explodes - a shape on subshapes of a given type and sorts - them by coordinates of their gravity centers, returning      a - list of sub-shapes.

  • - -
  • geompy.SubShapeAllSortedIDs(Shape, - Type)  explodes - a shape on subshapes of a given type and - sorts them by coordinates of their gravity centers,  returning - a List of IDs of sub-shapes.

  • - -
  • geompy.SubShape(Shape, Type, ListOfInd) -  allows - to obtain a compound of sub-shapes of  the - Shape,  selected - by they indices in a list of all sub-shapes of the given Type. Each index - is in the range [1, Nb_Sub-Shapes_Of_Given_Type].

  • - -
  • geompy.SubShapeSorted(Shape, - Type, ListOfInd) allows to obtain a compound of sub-shapes of the Shape, - selected by they indices in sorted list of all sub-shapes of the given - Type. Each index is in the range [1, Nb_Sub-Shapes_Of_Given_Type]

  • -
- -

 

- -

Arguments: - 1 SHAPE + 1 type of SubShape.

- -

 

- -

 

- -

- -

 

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/explode_on_blocks.htm b/doc/salome/gui/GEOM/explode_on_blocks.htm deleted file mode 100755 index e30f3e802..000000000 --- a/doc/salome/gui/GEOM/explode_on_blocks.htm +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -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 deleted file mode 100755 index 70a8fbca2..000000000 --- a/doc/salome/gui/GEOM/extrusion.htm +++ /dev/null @@ -1,168 +0,0 @@ - - - - - -Extrusion - - - - - - - - - - - - -

 Extrusion

- -

To generate an Extrusion on an object in the Main Menu select New - Entity - > Generation  - - > Extrusion

- -

 

- -

There are 2 algorithms for creation of an - Extrusion (Prism).

- -

Firstly, you can 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).

- -

 

- -

- -

 

- -

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

- -

Arguments: - Name + 1 shape (vertex, edge, wire, face or shell) serving as base object - + 2 vertices.

- -

 

- -

- -

 

- -

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 deleted file mode 100755 index a0fdccf80..000000000 --- a/doc/salome/gui/GEOM/face.htm +++ /dev/null @@ -1,155 +0,0 @@ - - - - - -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 deleted file mode 100755 index 83ab6e5d6..000000000 --- a/doc/salome/gui/GEOM/fillet.htm +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -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 deleted file mode 100755 index 0eff73469..000000000 --- a/doc/salome/gui/GEOM/filling.htm +++ /dev/null @@ -1,145 +0,0 @@ - - - - - -Filling - - - - - - - - - - - - -

 Filling - Surface with Edges

- -

To generate - a Filling in the Main - Menu select New Entity - > - Generation  - - > Filling

- -

 

- -

To create a curving face using several edges - you need to define the Edges Compound, -  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 deleted file mode 100755 index f5895cac7..000000000 --- a/doc/salome/gui/GEOM/fuse.htm +++ /dev/null @@ -1,152 +0,0 @@ - - - - - -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.log b/doc/salome/gui/GEOM/geom.log deleted file mode 100755 index f73995a2e..000000000 --- a/doc/salome/gui/GEOM/geom.log +++ /dev/null @@ -1,592 +0,0 @@ -|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 -change_orientation.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\view_rotation_point.png -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 -image38.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-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 -pics\partition2.png -pics\changeorientation.png -pics\pipesn.png -pics\pipe_wire_edgesn.png -image2.gif -pics\chamfer_faces.png -pics\fillet_prism.png -pics\rotationsn1.png -pics\disp_mode1sn.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\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 -pics\set_rotation_point_dialog1.png -pics\extrusion1.png -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 -pics\set_rotation_point_dialog2.png -pics\extrusion2.png -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 -image40.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\transformation4a.png -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 -image43.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\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\whlstf14.htm -whgdata\whlstg0.htm -index.htm -index_csh.htm -index_rhc.htm diff --git a/doc/salome/gui/GEOM/geometrical_objects.htm b/doc/salome/gui/GEOM/geometrical_objects.htm deleted file mode 100755 index 2ef298ee7..000000000 --- a/doc/salome/gui/GEOM/geometrical_objects.htm +++ /dev/null @@ -1,570 +0,0 @@ - - - - - -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 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

- -

 

- -

# create a compund of - the given shapes

- -

compound = geompy.MakeCompound(ShapeListCompound)

- -

 

- -

# add object in the study

- -

id_compound = geompy.addToStudy(compound,"Compound")

- -

 

- -

# display the compound

- -

gg.createAndDisplayGO(id_compound) -

- - - - diff --git a/doc/salome/gui/GEOM/geometry.htm b/doc/salome/gui/GEOM/geometry.htm deleted file mode 100755 index 7a68cf459..000000000 --- a/doc/salome/gui/GEOM/geometry.htm +++ /dev/null @@ -1,144 +0,0 @@ - - - - - -geometry - - - - - - - - - - - - -

Introduction to Geometry

- -

Geometry module - of SALOME is destined for:

- -

 

- -
    - -
  • Import and export of geometrical models in IGES, - BREP and STEP formats.

  • - -
  • Construction and optimization of geometrical models - using a wide range of  CAD - functions:

  • -
- -

 

- - --- - - - -
-
    - -
  • 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 deleted file mode 100755 index 9cdc1db72..000000000 --- a/doc/salome/gui/GEOM/glue_faces.htm +++ /dev/null @@ -1,165 +0,0 @@ - - - - - -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 deleted file mode 100755 index 6cabf4139..000000000 --- a/doc/salome/gui/GEOM/groups.htm +++ /dev/null @@ -1,327 +0,0 @@ - - - - - -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/i_blue.jpg b/doc/salome/gui/GEOM/i_blue.jpg deleted file mode 100755 index ed3acfac2..000000000 Binary files a/doc/salome/gui/GEOM/i_blue.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image1.gif b/doc/salome/gui/GEOM/image1.gif deleted file mode 100755 index 2f2fe9a21..000000000 Binary files a/doc/salome/gui/GEOM/image1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image1.jpg b/doc/salome/gui/GEOM/image1.jpg deleted file mode 100755 index 8e5d78b30..000000000 Binary files a/doc/salome/gui/GEOM/image1.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image10.gif b/doc/salome/gui/GEOM/image10.gif deleted file mode 100755 index 01327b7a8..000000000 Binary files a/doc/salome/gui/GEOM/image10.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image109.jpg b/doc/salome/gui/GEOM/image109.jpg deleted file mode 100755 index de4e1e134..000000000 Binary files a/doc/salome/gui/GEOM/image109.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image110.jpg b/doc/salome/gui/GEOM/image110.jpg deleted file mode 100755 index 45f72b594..000000000 Binary files a/doc/salome/gui/GEOM/image110.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image112.jpg b/doc/salome/gui/GEOM/image112.jpg deleted file mode 100755 index 33399b3e1..000000000 Binary files a/doc/salome/gui/GEOM/image112.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image113.jpg b/doc/salome/gui/GEOM/image113.jpg deleted file mode 100755 index fa01cfb36..000000000 Binary files a/doc/salome/gui/GEOM/image113.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image145.jpg b/doc/salome/gui/GEOM/image145.jpg deleted file mode 100755 index a035c8d89..000000000 Binary files a/doc/salome/gui/GEOM/image145.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image15.jpg b/doc/salome/gui/GEOM/image15.jpg deleted file mode 100755 index 50a9c9ece..000000000 Binary files a/doc/salome/gui/GEOM/image15.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image154.jpg b/doc/salome/gui/GEOM/image154.jpg deleted file mode 100755 index 5129007a9..000000000 Binary files a/doc/salome/gui/GEOM/image154.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image156.jpg b/doc/salome/gui/GEOM/image156.jpg deleted file mode 100755 index f2d718579..000000000 Binary files a/doc/salome/gui/GEOM/image156.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image16.jpg b/doc/salome/gui/GEOM/image16.jpg deleted file mode 100755 index 42f79d392..000000000 Binary files a/doc/salome/gui/GEOM/image16.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image160.jpg b/doc/salome/gui/GEOM/image160.jpg deleted file mode 100755 index a88429f79..000000000 Binary files a/doc/salome/gui/GEOM/image160.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image167.jpg b/doc/salome/gui/GEOM/image167.jpg deleted file mode 100755 index 775496ffc..000000000 Binary files a/doc/salome/gui/GEOM/image167.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image168.jpg b/doc/salome/gui/GEOM/image168.jpg deleted file mode 100755 index f69d2b8df..000000000 Binary files a/doc/salome/gui/GEOM/image168.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image18.gif b/doc/salome/gui/GEOM/image18.gif deleted file mode 100755 index 511bd44e8..000000000 Binary files a/doc/salome/gui/GEOM/image18.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image180.jpg b/doc/salome/gui/GEOM/image180.jpg deleted file mode 100755 index 1c57ef013..000000000 Binary files a/doc/salome/gui/GEOM/image180.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image181.jpg b/doc/salome/gui/GEOM/image181.jpg deleted file mode 100755 index d0171dfc9..000000000 Binary files a/doc/salome/gui/GEOM/image181.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image185.jpg b/doc/salome/gui/GEOM/image185.jpg deleted file mode 100755 index 7fb6ef62a..000000000 Binary files a/doc/salome/gui/GEOM/image185.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image193.jpg b/doc/salome/gui/GEOM/image193.jpg deleted file mode 100755 index dc184f5fb..000000000 Binary files a/doc/salome/gui/GEOM/image193.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image2.gif b/doc/salome/gui/GEOM/image2.gif deleted file mode 100755 index 833410711..000000000 Binary files a/doc/salome/gui/GEOM/image2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image2.jpg b/doc/salome/gui/GEOM/image2.jpg deleted file mode 100755 index ddfeaa1fb..000000000 Binary files a/doc/salome/gui/GEOM/image2.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image204.jpg b/doc/salome/gui/GEOM/image204.jpg deleted file mode 100755 index ce23e6aa0..000000000 Binary files a/doc/salome/gui/GEOM/image204.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image206.jpg b/doc/salome/gui/GEOM/image206.jpg deleted file mode 100755 index 85e9e803d..000000000 Binary files a/doc/salome/gui/GEOM/image206.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image26.gif b/doc/salome/gui/GEOM/image26.gif deleted file mode 100755 index cb7f53a74..000000000 Binary files a/doc/salome/gui/GEOM/image26.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image27.gif b/doc/salome/gui/GEOM/image27.gif deleted file mode 100755 index 52d87e25b..000000000 Binary files a/doc/salome/gui/GEOM/image27.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image28.gif b/doc/salome/gui/GEOM/image28.gif deleted file mode 100755 index e8ce5a3fa..000000000 Binary files a/doc/salome/gui/GEOM/image28.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image29.gif b/doc/salome/gui/GEOM/image29.gif deleted file mode 100755 index bb00746d4..000000000 Binary files a/doc/salome/gui/GEOM/image29.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image3.gif b/doc/salome/gui/GEOM/image3.gif deleted file mode 100755 index a3cdf64a3..000000000 Binary files a/doc/salome/gui/GEOM/image3.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image3.jpg b/doc/salome/gui/GEOM/image3.jpg deleted file mode 100755 index 4aacee4ed..000000000 Binary files a/doc/salome/gui/GEOM/image3.jpg and /dev/null differ diff --git a/doc/salome/gui/GEOM/image30.gif b/doc/salome/gui/GEOM/image30.gif deleted file mode 100755 index a773887f1..000000000 Binary files a/doc/salome/gui/GEOM/image30.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image32.gif b/doc/salome/gui/GEOM/image32.gif deleted file mode 100755 index bbdf48a24..000000000 Binary files a/doc/salome/gui/GEOM/image32.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image33.gif b/doc/salome/gui/GEOM/image33.gif deleted file mode 100755 index 53de5331b..000000000 Binary files a/doc/salome/gui/GEOM/image33.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image34.gif b/doc/salome/gui/GEOM/image34.gif deleted file mode 100755 index d7f8089db..000000000 Binary files a/doc/salome/gui/GEOM/image34.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image35.gif b/doc/salome/gui/GEOM/image35.gif deleted file mode 100755 index 30f430ade..000000000 Binary files a/doc/salome/gui/GEOM/image35.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image36.gif b/doc/salome/gui/GEOM/image36.gif deleted file mode 100755 index 8b6955c8a..000000000 Binary files a/doc/salome/gui/GEOM/image36.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image37.gif b/doc/salome/gui/GEOM/image37.gif deleted file mode 100755 index 8c1a2c52a..000000000 Binary files a/doc/salome/gui/GEOM/image37.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image38.gif b/doc/salome/gui/GEOM/image38.gif deleted file mode 100755 index db1f51c2a..000000000 Binary files a/doc/salome/gui/GEOM/image38.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image4.gif b/doc/salome/gui/GEOM/image4.gif deleted file mode 100755 index 385de8fd5..000000000 Binary files a/doc/salome/gui/GEOM/image4.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image40.gif b/doc/salome/gui/GEOM/image40.gif deleted file mode 100755 index b24e58c72..000000000 Binary files a/doc/salome/gui/GEOM/image40.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image41.gif b/doc/salome/gui/GEOM/image41.gif deleted file mode 100755 index 6e3661f6c..000000000 Binary files a/doc/salome/gui/GEOM/image41.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image42.gif b/doc/salome/gui/GEOM/image42.gif deleted file mode 100755 index 1e4003cca..000000000 Binary files a/doc/salome/gui/GEOM/image42.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image43.gif b/doc/salome/gui/GEOM/image43.gif deleted file mode 100755 index f1b0f9d45..000000000 Binary files a/doc/salome/gui/GEOM/image43.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image44.gif b/doc/salome/gui/GEOM/image44.gif deleted file mode 100755 index 51662793b..000000000 Binary files a/doc/salome/gui/GEOM/image44.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image47.gif b/doc/salome/gui/GEOM/image47.gif deleted file mode 100755 index 6e6cbead4..000000000 Binary files a/doc/salome/gui/GEOM/image47.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image49.gif b/doc/salome/gui/GEOM/image49.gif deleted file mode 100755 index a54a22e45..000000000 Binary files a/doc/salome/gui/GEOM/image49.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image5.gif b/doc/salome/gui/GEOM/image5.gif deleted file mode 100755 index 77b19a209..000000000 Binary files a/doc/salome/gui/GEOM/image5.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image51.gif b/doc/salome/gui/GEOM/image51.gif deleted file mode 100755 index d04ebd08f..000000000 Binary files a/doc/salome/gui/GEOM/image51.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image52.gif b/doc/salome/gui/GEOM/image52.gif deleted file mode 100755 index 94537e0f4..000000000 Binary files a/doc/salome/gui/GEOM/image52.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image53.gif b/doc/salome/gui/GEOM/image53.gif deleted file mode 100755 index c976b6dab..000000000 Binary files a/doc/salome/gui/GEOM/image53.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image56.gif b/doc/salome/gui/GEOM/image56.gif deleted file mode 100755 index 049e1ebdc..000000000 Binary files a/doc/salome/gui/GEOM/image56.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image57.gif b/doc/salome/gui/GEOM/image57.gif deleted file mode 100755 index e0f9e3109..000000000 Binary files a/doc/salome/gui/GEOM/image57.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image59.gif b/doc/salome/gui/GEOM/image59.gif deleted file mode 100755 index f470df22c..000000000 Binary files a/doc/salome/gui/GEOM/image59.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/image61.gif b/doc/salome/gui/GEOM/image61.gif deleted file mode 100755 index 0a7efcdf1..000000000 Binary files a/doc/salome/gui/GEOM/image61.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/images/arc.png b/doc/salome/gui/GEOM/images/arc.png new file mode 100755 index 000000000..260a5fb7d Binary files /dev/null and b/doc/salome/gui/GEOM/images/arc.png differ diff --git a/doc/salome/gui/GEOM/images/arc2.png b/doc/salome/gui/GEOM/images/arc2.png new file mode 100644 index 000000000..2bced2ae0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/arc2.png differ diff --git a/doc/salome/gui/GEOM/images/archimede.png b/doc/salome/gui/GEOM/images/archimede.png new file mode 100755 index 000000000..cd620020e Binary files /dev/null and b/doc/salome/gui/GEOM/images/archimede.png differ diff --git a/doc/salome/gui/GEOM/images/archimedesn1.png b/doc/salome/gui/GEOM/images/archimedesn1.png new file mode 100755 index 000000000..402092052 Binary files /dev/null and b/doc/salome/gui/GEOM/images/archimedesn1.png differ diff --git a/doc/salome/gui/GEOM/images/archimedesn2.png b/doc/salome/gui/GEOM/images/archimedesn2.png new file mode 100755 index 000000000..b3b84b155 Binary files /dev/null and b/doc/salome/gui/GEOM/images/archimedesn2.png differ diff --git a/doc/salome/gui/GEOM/images/archimedesn3.png b/doc/salome/gui/GEOM/images/archimedesn3.png new file mode 100755 index 000000000..da57c0fb9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/archimedesn3.png differ diff --git a/doc/salome/gui/GEOM/images/arcsn.png b/doc/salome/gui/GEOM/images/arcsn.png new file mode 100755 index 000000000..4131e41f5 Binary files /dev/null and b/doc/salome/gui/GEOM/images/arcsn.png differ diff --git a/doc/salome/gui/GEOM/images/arcsn1.png b/doc/salome/gui/GEOM/images/arcsn1.png new file mode 100644 index 000000000..564f12edf Binary files /dev/null and b/doc/salome/gui/GEOM/images/arcsn1.png differ diff --git a/doc/salome/gui/GEOM/images/arcsn2.png b/doc/salome/gui/GEOM/images/arcsn2.png new file mode 100644 index 000000000..f2bec5d29 Binary files /dev/null and b/doc/salome/gui/GEOM/images/arcsn2.png differ diff --git a/doc/salome/gui/GEOM/images/bezier.png b/doc/salome/gui/GEOM/images/bezier.png new file mode 100755 index 000000000..3c0e8df2b Binary files /dev/null and b/doc/salome/gui/GEOM/images/bezier.png differ diff --git a/doc/salome/gui/GEOM/images/block1.png b/doc/salome/gui/GEOM/images/block1.png new file mode 100755 index 000000000..71a93b0c9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/block1.png differ diff --git a/doc/salome/gui/GEOM/images/block2.png b/doc/salome/gui/GEOM/images/block2.png new file mode 100755 index 000000000..c66dd7f02 Binary files /dev/null and b/doc/salome/gui/GEOM/images/block2.png differ diff --git a/doc/salome/gui/GEOM/images/block3.png b/doc/salome/gui/GEOM/images/block3.png new file mode 100755 index 000000000..61aad9b43 Binary files /dev/null and b/doc/salome/gui/GEOM/images/block3.png differ diff --git a/doc/salome/gui/GEOM/images/block4.png b/doc/salome/gui/GEOM/images/block4.png new file mode 100755 index 000000000..d0661b6e9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/block4.png differ diff --git a/doc/salome/gui/GEOM/images/block5.png b/doc/salome/gui/GEOM/images/block5.png new file mode 100755 index 000000000..9810f6f0d Binary files /dev/null and b/doc/salome/gui/GEOM/images/block5.png differ diff --git a/doc/salome/gui/GEOM/images/block_explodesn.png b/doc/salome/gui/GEOM/images/block_explodesn.png new file mode 100755 index 000000000..372de3f20 Binary files /dev/null and b/doc/salome/gui/GEOM/images/block_explodesn.png differ diff --git a/doc/salome/gui/GEOM/images/bool1.png b/doc/salome/gui/GEOM/images/bool1.png new file mode 100755 index 000000000..3f997a772 Binary files /dev/null and b/doc/salome/gui/GEOM/images/bool1.png differ diff --git a/doc/salome/gui/GEOM/images/bool2.png b/doc/salome/gui/GEOM/images/bool2.png new file mode 100755 index 000000000..4e9b96862 Binary files /dev/null and b/doc/salome/gui/GEOM/images/bool2.png differ diff --git a/doc/salome/gui/GEOM/images/bool3.png b/doc/salome/gui/GEOM/images/bool3.png new file mode 100755 index 000000000..af409a15e Binary files /dev/null and b/doc/salome/gui/GEOM/images/bool3.png differ diff --git a/doc/salome/gui/GEOM/images/box1.png b/doc/salome/gui/GEOM/images/box1.png new file mode 100755 index 000000000..812027dcf Binary files /dev/null and b/doc/salome/gui/GEOM/images/box1.png differ diff --git a/doc/salome/gui/GEOM/images/box2.png b/doc/salome/gui/GEOM/images/box2.png new file mode 100755 index 000000000..85a737afb Binary files /dev/null and b/doc/salome/gui/GEOM/images/box2.png differ diff --git a/doc/salome/gui/GEOM/images/boxes.png b/doc/salome/gui/GEOM/images/boxes.png new file mode 100755 index 000000000..f2fad497e Binary files /dev/null and b/doc/salome/gui/GEOM/images/boxes.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer1.png b/doc/salome/gui/GEOM/images/chamfer1.png new file mode 100755 index 000000000..94fedcd12 Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer1.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer2.png b/doc/salome/gui/GEOM/images/chamfer2.png new file mode 100755 index 000000000..b2c09870e Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer2.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer3.png b/doc/salome/gui/GEOM/images/chamfer3.png new file mode 100755 index 000000000..84b52e5c6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer3.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer_all.png b/doc/salome/gui/GEOM/images/chamfer_all.png new file mode 100755 index 000000000..c398cb0c5 Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer_all.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer_edge.png b/doc/salome/gui/GEOM/images/chamfer_edge.png new file mode 100755 index 000000000..8ed8fc005 Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer_edge.png differ diff --git a/doc/salome/gui/GEOM/images/chamfer_faces.png b/doc/salome/gui/GEOM/images/chamfer_faces.png new file mode 100755 index 000000000..961cf0386 Binary files /dev/null and b/doc/salome/gui/GEOM/images/chamfer_faces.png differ diff --git a/doc/salome/gui/GEOM/images/changeorientation.png b/doc/salome/gui/GEOM/images/changeorientation.png new file mode 100755 index 000000000..95322ed69 Binary files /dev/null and b/doc/salome/gui/GEOM/images/changeorientation.png differ diff --git a/doc/salome/gui/GEOM/images/circle1.png b/doc/salome/gui/GEOM/images/circle1.png new file mode 100755 index 000000000..840a25973 Binary files /dev/null and b/doc/salome/gui/GEOM/images/circle1.png differ diff --git a/doc/salome/gui/GEOM/images/circle2.png b/doc/salome/gui/GEOM/images/circle2.png new file mode 100755 index 000000000..7500eaf2c Binary files /dev/null and b/doc/salome/gui/GEOM/images/circle2.png differ diff --git a/doc/salome/gui/GEOM/images/circles.png b/doc/salome/gui/GEOM/images/circles.png new file mode 100755 index 000000000..dc367ce8b Binary files /dev/null and b/doc/salome/gui/GEOM/images/circles.png differ diff --git a/doc/salome/gui/GEOM/images/colorsn.png b/doc/salome/gui/GEOM/images/colorsn.png new file mode 100755 index 000000000..f0c440147 Binary files /dev/null and b/doc/salome/gui/GEOM/images/colorsn.png differ diff --git a/doc/salome/gui/GEOM/images/commonsn.png b/doc/salome/gui/GEOM/images/commonsn.png new file mode 100755 index 000000000..e5c0c4131 Binary files /dev/null and b/doc/salome/gui/GEOM/images/commonsn.png differ diff --git a/doc/salome/gui/GEOM/images/compoundsn.png b/doc/salome/gui/GEOM/images/compoundsn.png new file mode 100755 index 000000000..33e1012ed Binary files /dev/null and b/doc/salome/gui/GEOM/images/compoundsn.png differ diff --git a/doc/salome/gui/GEOM/images/cone1.png b/doc/salome/gui/GEOM/images/cone1.png new file mode 100755 index 000000000..f5a95922a Binary files /dev/null and b/doc/salome/gui/GEOM/images/cone1.png differ diff --git a/doc/salome/gui/GEOM/images/cone2.png b/doc/salome/gui/GEOM/images/cone2.png new file mode 100755 index 000000000..1b0582140 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cone2.png differ diff --git a/doc/salome/gui/GEOM/images/cones.png b/doc/salome/gui/GEOM/images/cones.png new file mode 100755 index 000000000..4c8108ce1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cones.png differ diff --git a/doc/salome/gui/GEOM/images/curve.png b/doc/salome/gui/GEOM/images/curve.png new file mode 100755 index 000000000..a9541de0a Binary files /dev/null and b/doc/salome/gui/GEOM/images/curve.png differ diff --git a/doc/salome/gui/GEOM/images/cutsn.png b/doc/salome/gui/GEOM/images/cutsn.png new file mode 100755 index 000000000..eda9bb712 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cutsn.png differ diff --git a/doc/salome/gui/GEOM/images/cylinder1.png b/doc/salome/gui/GEOM/images/cylinder1.png new file mode 100755 index 000000000..71b619df8 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cylinder1.png differ diff --git a/doc/salome/gui/GEOM/images/cylinder2.png b/doc/salome/gui/GEOM/images/cylinder2.png new file mode 100755 index 000000000..ee6ed12e6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cylinder2.png differ diff --git a/doc/salome/gui/GEOM/images/cylinders.png b/doc/salome/gui/GEOM/images/cylinders.png new file mode 100755 index 000000000..fc0d43276 Binary files /dev/null and b/doc/salome/gui/GEOM/images/cylinders.png differ diff --git a/doc/salome/gui/GEOM/images/disp_mode1sn.png b/doc/salome/gui/GEOM/images/disp_mode1sn.png new file mode 100755 index 000000000..b5b7e8ff2 Binary files /dev/null and b/doc/salome/gui/GEOM/images/disp_mode1sn.png differ diff --git a/doc/salome/gui/GEOM/images/disp_mode2sn.png b/doc/salome/gui/GEOM/images/disp_mode2sn.png new file mode 100755 index 000000000..362232739 Binary files /dev/null and b/doc/salome/gui/GEOM/images/disp_mode2sn.png differ diff --git a/doc/salome/gui/GEOM/images/distance.png b/doc/salome/gui/GEOM/images/distance.png new file mode 100755 index 000000000..7466fc424 Binary files /dev/null and b/doc/salome/gui/GEOM/images/distance.png differ diff --git a/doc/salome/gui/GEOM/images/edgesn.png b/doc/salome/gui/GEOM/images/edgesn.png new file mode 100755 index 000000000..9de8df9ef Binary files /dev/null and b/doc/salome/gui/GEOM/images/edgesn.png differ diff --git a/doc/salome/gui/GEOM/images/editgroup.png b/doc/salome/gui/GEOM/images/editgroup.png new file mode 100755 index 000000000..db3e23575 Binary files /dev/null and b/doc/salome/gui/GEOM/images/editgroup.png differ diff --git a/doc/salome/gui/GEOM/images/ellipse.png b/doc/salome/gui/GEOM/images/ellipse.png new file mode 100755 index 000000000..0888b5021 Binary files /dev/null and b/doc/salome/gui/GEOM/images/ellipse.png differ diff --git a/doc/salome/gui/GEOM/images/ellipsesn.png b/doc/salome/gui/GEOM/images/ellipsesn.png new file mode 100755 index 000000000..1c421541d Binary files /dev/null and b/doc/salome/gui/GEOM/images/ellipsesn.png differ diff --git a/doc/salome/gui/GEOM/images/extrusion1.png b/doc/salome/gui/GEOM/images/extrusion1.png new file mode 100755 index 000000000..673e86325 Binary files /dev/null and b/doc/salome/gui/GEOM/images/extrusion1.png differ diff --git a/doc/salome/gui/GEOM/images/extrusion2.png b/doc/salome/gui/GEOM/images/extrusion2.png new file mode 100755 index 000000000..b56dc5d49 Binary files /dev/null and b/doc/salome/gui/GEOM/images/extrusion2.png differ diff --git a/doc/salome/gui/GEOM/images/facesn1.png b/doc/salome/gui/GEOM/images/facesn1.png new file mode 100755 index 000000000..c78703a11 Binary files /dev/null and b/doc/salome/gui/GEOM/images/facesn1.png differ diff --git a/doc/salome/gui/GEOM/images/facesn2.png b/doc/salome/gui/GEOM/images/facesn2.png new file mode 100755 index 000000000..59403a08c Binary files /dev/null and b/doc/salome/gui/GEOM/images/facesn2.png differ diff --git a/doc/salome/gui/GEOM/images/facesn3.png b/doc/salome/gui/GEOM/images/facesn3.png new file mode 100755 index 000000000..7c95d1156 Binary files /dev/null and b/doc/salome/gui/GEOM/images/facesn3.png differ diff --git a/doc/salome/gui/GEOM/images/fillet1.png b/doc/salome/gui/GEOM/images/fillet1.png new file mode 100755 index 000000000..7fd3db53f Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet1.png differ diff --git a/doc/salome/gui/GEOM/images/fillet2.png b/doc/salome/gui/GEOM/images/fillet2.png new file mode 100755 index 000000000..d42e333ea Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet2.png differ diff --git a/doc/salome/gui/GEOM/images/fillet3.png b/doc/salome/gui/GEOM/images/fillet3.png new file mode 100755 index 000000000..73e453339 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet3.png differ diff --git a/doc/salome/gui/GEOM/images/fillet_all.png b/doc/salome/gui/GEOM/images/fillet_all.png new file mode 100755 index 000000000..c1650b907 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet_all.png differ diff --git a/doc/salome/gui/GEOM/images/fillet_edge.png b/doc/salome/gui/GEOM/images/fillet_edge.png new file mode 100755 index 000000000..9572abb79 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet_edge.png differ diff --git a/doc/salome/gui/GEOM/images/fillet_prism.png b/doc/salome/gui/GEOM/images/fillet_prism.png new file mode 100755 index 000000000..3a44a07e6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillet_prism.png differ diff --git a/doc/salome/gui/GEOM/images/filling.png b/doc/salome/gui/GEOM/images/filling.png new file mode 100755 index 000000000..418c22431 Binary files /dev/null and b/doc/salome/gui/GEOM/images/filling.png differ diff --git a/doc/salome/gui/GEOM/images/filling_compoundsn.png b/doc/salome/gui/GEOM/images/filling_compoundsn.png new file mode 100755 index 000000000..9d3846b2b Binary files /dev/null and b/doc/salome/gui/GEOM/images/filling_compoundsn.png differ diff --git a/doc/salome/gui/GEOM/images/fillingsn.png b/doc/salome/gui/GEOM/images/fillingsn.png new file mode 100755 index 000000000..2446e89d5 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fillingsn.png differ diff --git a/doc/salome/gui/GEOM/images/free_boudaries1.png b/doc/salome/gui/GEOM/images/free_boudaries1.png new file mode 100755 index 000000000..20c29f965 Binary files /dev/null and b/doc/salome/gui/GEOM/images/free_boudaries1.png differ diff --git a/doc/salome/gui/GEOM/images/free_boudaries2.png b/doc/salome/gui/GEOM/images/free_boudaries2.png new file mode 100755 index 000000000..1523fe911 Binary files /dev/null and b/doc/salome/gui/GEOM/images/free_boudaries2.png differ diff --git a/doc/salome/gui/GEOM/images/free_faces1.png b/doc/salome/gui/GEOM/images/free_faces1.png new file mode 100755 index 000000000..530d8440b Binary files /dev/null and b/doc/salome/gui/GEOM/images/free_faces1.png differ diff --git a/doc/salome/gui/GEOM/images/free_faces2.png b/doc/salome/gui/GEOM/images/free_faces2.png new file mode 100755 index 000000000..7526bd17c Binary files /dev/null and b/doc/salome/gui/GEOM/images/free_faces2.png differ diff --git a/doc/salome/gui/GEOM/images/fusesn1.png b/doc/salome/gui/GEOM/images/fusesn1.png new file mode 100755 index 000000000..e0118cbd2 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fusesn1.png differ diff --git a/doc/salome/gui/GEOM/images/fusesn2.png b/doc/salome/gui/GEOM/images/fusesn2.png new file mode 100755 index 000000000..f8a2b0108 Binary files /dev/null and b/doc/salome/gui/GEOM/images/fusesn2.png differ diff --git a/doc/salome/gui/GEOM/images/geomcreategroup.png b/doc/salome/gui/GEOM/images/geomcreategroup.png new file mode 100755 index 000000000..f51ab22fd Binary files /dev/null and b/doc/salome/gui/GEOM/images/geomcreategroup.png differ diff --git a/doc/salome/gui/GEOM/images/geomexport.png b/doc/salome/gui/GEOM/images/geomexport.png new file mode 100755 index 000000000..c37713941 Binary files /dev/null and b/doc/salome/gui/GEOM/images/geomexport.png differ diff --git a/doc/salome/gui/GEOM/images/geomimport.png b/doc/salome/gui/GEOM/images/geomimport.png new file mode 100755 index 000000000..516a819bd Binary files /dev/null and b/doc/salome/gui/GEOM/images/geomimport.png differ diff --git a/doc/salome/gui/GEOM/images/glue1.png b/doc/salome/gui/GEOM/images/glue1.png new file mode 100644 index 000000000..54fa5bf6e Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue1.png differ diff --git a/doc/salome/gui/GEOM/images/glue2.png b/doc/salome/gui/GEOM/images/glue2.png new file mode 100644 index 000000000..475e54f65 Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue2.png differ diff --git a/doc/salome/gui/GEOM/images/glue3.png b/doc/salome/gui/GEOM/images/glue3.png new file mode 100644 index 000000000..a8c6d884e Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue3.png differ diff --git a/doc/salome/gui/GEOM/images/glue_faces1.png b/doc/salome/gui/GEOM/images/glue_faces1.png new file mode 100755 index 000000000..787c9b0d6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue_faces1.png differ diff --git a/doc/salome/gui/GEOM/images/glue_faces2.png b/doc/salome/gui/GEOM/images/glue_faces2.png new file mode 100755 index 000000000..d33661367 Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue_faces2.png differ diff --git a/doc/salome/gui/GEOM/images/glue_faces3.png b/doc/salome/gui/GEOM/images/glue_faces3.png new file mode 100644 index 000000000..dab9c8991 Binary files /dev/null and b/doc/salome/gui/GEOM/images/glue_faces3.png differ diff --git a/doc/salome/gui/GEOM/images/image1.gif b/doc/salome/gui/GEOM/images/image1.gif new file mode 100755 index 000000000..2f2fe9a21 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image1.gif differ diff --git a/doc/salome/gui/GEOM/images/image1.jpg b/doc/salome/gui/GEOM/images/image1.jpg new file mode 100755 index 000000000..8e5d78b30 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image1.jpg differ diff --git a/doc/salome/gui/GEOM/images/image109.jpg b/doc/salome/gui/GEOM/images/image109.jpg new file mode 100755 index 000000000..de4e1e134 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image109.jpg differ diff --git a/doc/salome/gui/GEOM/images/image110.jpg b/doc/salome/gui/GEOM/images/image110.jpg new file mode 100755 index 000000000..45f72b594 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image110.jpg differ diff --git a/doc/salome/gui/GEOM/images/image112.jpg b/doc/salome/gui/GEOM/images/image112.jpg new file mode 100755 index 000000000..33399b3e1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image112.jpg differ diff --git a/doc/salome/gui/GEOM/images/image113.jpg b/doc/salome/gui/GEOM/images/image113.jpg new file mode 100755 index 000000000..fa01cfb36 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image113.jpg differ diff --git a/doc/salome/gui/GEOM/images/image145.jpg b/doc/salome/gui/GEOM/images/image145.jpg new file mode 100755 index 000000000..a035c8d89 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image145.jpg differ diff --git a/doc/salome/gui/GEOM/images/image15.jpg b/doc/salome/gui/GEOM/images/image15.jpg new file mode 100755 index 000000000..50a9c9ece Binary files /dev/null and b/doc/salome/gui/GEOM/images/image15.jpg differ diff --git a/doc/salome/gui/GEOM/images/image154.jpg b/doc/salome/gui/GEOM/images/image154.jpg new file mode 100755 index 000000000..5129007a9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image154.jpg differ diff --git a/doc/salome/gui/GEOM/images/image156.jpg b/doc/salome/gui/GEOM/images/image156.jpg new file mode 100755 index 000000000..f2d718579 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image156.jpg differ diff --git a/doc/salome/gui/GEOM/images/image16.jpg b/doc/salome/gui/GEOM/images/image16.jpg new file mode 100755 index 000000000..42f79d392 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image16.jpg differ diff --git a/doc/salome/gui/GEOM/images/image160.jpg b/doc/salome/gui/GEOM/images/image160.jpg new file mode 100755 index 000000000..a88429f79 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image160.jpg differ diff --git a/doc/salome/gui/GEOM/images/image167.jpg b/doc/salome/gui/GEOM/images/image167.jpg new file mode 100755 index 000000000..775496ffc Binary files /dev/null and b/doc/salome/gui/GEOM/images/image167.jpg differ diff --git a/doc/salome/gui/GEOM/images/image168.jpg b/doc/salome/gui/GEOM/images/image168.jpg new file mode 100755 index 000000000..f69d2b8df Binary files /dev/null and b/doc/salome/gui/GEOM/images/image168.jpg differ diff --git a/doc/salome/gui/GEOM/images/image18.gif b/doc/salome/gui/GEOM/images/image18.gif new file mode 100755 index 000000000..511bd44e8 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image18.gif differ diff --git a/doc/salome/gui/GEOM/images/image180.jpg b/doc/salome/gui/GEOM/images/image180.jpg new file mode 100755 index 000000000..1c57ef013 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image180.jpg differ diff --git a/doc/salome/gui/GEOM/images/image181.jpg b/doc/salome/gui/GEOM/images/image181.jpg new file mode 100755 index 000000000..d0171dfc9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image181.jpg differ diff --git a/doc/salome/gui/GEOM/images/image185.jpg b/doc/salome/gui/GEOM/images/image185.jpg new file mode 100755 index 000000000..7fb6ef62a Binary files /dev/null and b/doc/salome/gui/GEOM/images/image185.jpg differ diff --git a/doc/salome/gui/GEOM/images/image193.jpg b/doc/salome/gui/GEOM/images/image193.jpg new file mode 100755 index 000000000..dc184f5fb Binary files /dev/null and b/doc/salome/gui/GEOM/images/image193.jpg differ diff --git a/doc/salome/gui/GEOM/images/image2.gif b/doc/salome/gui/GEOM/images/image2.gif new file mode 100755 index 000000000..833410711 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image2.gif differ diff --git a/doc/salome/gui/GEOM/images/image2.jpg b/doc/salome/gui/GEOM/images/image2.jpg new file mode 100755 index 000000000..ddfeaa1fb Binary files /dev/null and b/doc/salome/gui/GEOM/images/image2.jpg differ diff --git a/doc/salome/gui/GEOM/images/image204.jpg b/doc/salome/gui/GEOM/images/image204.jpg new file mode 100755 index 000000000..ce23e6aa0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image204.jpg differ diff --git a/doc/salome/gui/GEOM/images/image206.jpg b/doc/salome/gui/GEOM/images/image206.jpg new file mode 100755 index 000000000..85e9e803d Binary files /dev/null and b/doc/salome/gui/GEOM/images/image206.jpg differ diff --git a/doc/salome/gui/GEOM/images/image26.gif b/doc/salome/gui/GEOM/images/image26.gif new file mode 100755 index 000000000..cb7f53a74 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image26.gif differ diff --git a/doc/salome/gui/GEOM/images/image3.jpg b/doc/salome/gui/GEOM/images/image3.jpg new file mode 100755 index 000000000..4aacee4ed Binary files /dev/null and b/doc/salome/gui/GEOM/images/image3.jpg differ diff --git a/doc/salome/gui/GEOM/images/image30.gif b/doc/salome/gui/GEOM/images/image30.gif new file mode 100755 index 000000000..a773887f1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image30.gif differ diff --git a/doc/salome/gui/GEOM/images/image33.gif b/doc/salome/gui/GEOM/images/image33.gif new file mode 100755 index 000000000..53de5331b Binary files /dev/null and b/doc/salome/gui/GEOM/images/image33.gif differ diff --git a/doc/salome/gui/GEOM/images/image34.gif b/doc/salome/gui/GEOM/images/image34.gif new file mode 100755 index 000000000..d7f8089db Binary files /dev/null and b/doc/salome/gui/GEOM/images/image34.gif differ diff --git a/doc/salome/gui/GEOM/images/image36.gif b/doc/salome/gui/GEOM/images/image36.gif new file mode 100755 index 000000000..8b6955c8a Binary files /dev/null and b/doc/salome/gui/GEOM/images/image36.gif differ diff --git a/doc/salome/gui/GEOM/images/image38.gif b/doc/salome/gui/GEOM/images/image38.gif new file mode 100755 index 000000000..db1f51c2a Binary files /dev/null and b/doc/salome/gui/GEOM/images/image38.gif differ diff --git a/doc/salome/gui/GEOM/images/image4.gif b/doc/salome/gui/GEOM/images/image4.gif new file mode 100755 index 000000000..385de8fd5 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image4.gif differ diff --git a/doc/salome/gui/GEOM/images/image40.gif b/doc/salome/gui/GEOM/images/image40.gif new file mode 100755 index 000000000..b24e58c72 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image40.gif differ diff --git a/doc/salome/gui/GEOM/images/image47.gif b/doc/salome/gui/GEOM/images/image47.gif new file mode 100755 index 000000000..6e6cbead4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image47.gif differ diff --git a/doc/salome/gui/GEOM/images/image56.gif b/doc/salome/gui/GEOM/images/image56.gif new file mode 100755 index 000000000..049e1ebdc Binary files /dev/null and b/doc/salome/gui/GEOM/images/image56.gif differ diff --git a/doc/salome/gui/GEOM/images/image57.gif b/doc/salome/gui/GEOM/images/image57.gif new file mode 100755 index 000000000..e0f9e3109 Binary files /dev/null and b/doc/salome/gui/GEOM/images/image57.gif differ diff --git a/doc/salome/gui/GEOM/images/interpol.png b/doc/salome/gui/GEOM/images/interpol.png new file mode 100755 index 000000000..ac77ddfa3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/interpol.png differ diff --git a/doc/salome/gui/GEOM/images/isos_u12_v12sn.png b/doc/salome/gui/GEOM/images/isos_u12_v12sn.png new file mode 100755 index 000000000..10a13ce4b Binary files /dev/null and b/doc/salome/gui/GEOM/images/isos_u12_v12sn.png differ diff --git a/doc/salome/gui/GEOM/images/line.png b/doc/salome/gui/GEOM/images/line.png new file mode 100755 index 000000000..3c931a1e9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/line.png differ diff --git a/doc/salome/gui/GEOM/images/lines.png b/doc/salome/gui/GEOM/images/lines.png new file mode 100755 index 000000000..de12c1122 Binary files /dev/null and b/doc/salome/gui/GEOM/images/lines.png differ diff --git a/doc/salome/gui/GEOM/images/measures1.png b/doc/salome/gui/GEOM/images/measures1.png new file mode 100755 index 000000000..6d5d698b4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures1.png differ diff --git a/doc/salome/gui/GEOM/images/measures10.png b/doc/salome/gui/GEOM/images/measures10.png new file mode 100755 index 000000000..33023cc49 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures10.png differ diff --git a/doc/salome/gui/GEOM/images/measures3.png b/doc/salome/gui/GEOM/images/measures3.png new file mode 100755 index 000000000..9a55aad4a Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures3.png differ diff --git a/doc/salome/gui/GEOM/images/measures4.png b/doc/salome/gui/GEOM/images/measures4.png new file mode 100755 index 000000000..ea243e888 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures4.png differ diff --git a/doc/salome/gui/GEOM/images/measures5.png b/doc/salome/gui/GEOM/images/measures5.png new file mode 100755 index 000000000..a323426e6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures5.png differ diff --git a/doc/salome/gui/GEOM/images/measures8.png b/doc/salome/gui/GEOM/images/measures8.png new file mode 100755 index 000000000..94bed3271 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures8.png differ diff --git a/doc/salome/gui/GEOM/images/measures9.png b/doc/salome/gui/GEOM/images/measures9.png new file mode 100755 index 000000000..7d42d2935 Binary files /dev/null and b/doc/salome/gui/GEOM/images/measures9.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_axissn1.png b/doc/salome/gui/GEOM/images/mirror_axissn1.png new file mode 100755 index 000000000..86be83e7a Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_axissn1.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_axissn2.png b/doc/salome/gui/GEOM/images/mirror_axissn2.png new file mode 100755 index 000000000..6009fa7cf Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_axissn2.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_planesn1.png b/doc/salome/gui/GEOM/images/mirror_planesn1.png new file mode 100755 index 000000000..969f0e0f4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_planesn1.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_planesn2.png b/doc/salome/gui/GEOM/images/mirror_planesn2.png new file mode 100755 index 000000000..e9eb4966d Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_planesn2.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_pointsn1.png b/doc/salome/gui/GEOM/images/mirror_pointsn1.png new file mode 100755 index 000000000..675b0bff1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_pointsn1.png differ diff --git a/doc/salome/gui/GEOM/images/mirror_pointsn2.png b/doc/salome/gui/GEOM/images/mirror_pointsn2.png new file mode 100755 index 000000000..ab6235906 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mirror_pointsn2.png differ diff --git a/doc/salome/gui/GEOM/images/mtrans1.png b/doc/salome/gui/GEOM/images/mtrans1.png new file mode 100755 index 000000000..7dfe730c3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtrans1.png differ diff --git a/doc/salome/gui/GEOM/images/mtrans2.png b/doc/salome/gui/GEOM/images/mtrans2.png new file mode 100755 index 000000000..62b35bb0c Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtrans2.png differ diff --git a/doc/salome/gui/GEOM/images/mtransf1.png b/doc/salome/gui/GEOM/images/mtransf1.png new file mode 100755 index 000000000..207e920f9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtransf1.png differ diff --git a/doc/salome/gui/GEOM/images/mtransf2.png b/doc/salome/gui/GEOM/images/mtransf2.png new file mode 100755 index 000000000..3435f0f8c Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtransf2.png differ diff --git a/doc/salome/gui/GEOM/images/mtransf3.png b/doc/salome/gui/GEOM/images/mtransf3.png new file mode 100755 index 000000000..628d8b0a6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtransf3.png differ diff --git a/doc/salome/gui/GEOM/images/mtransf4.png b/doc/salome/gui/GEOM/images/mtransf4.png new file mode 100755 index 000000000..cbe904444 Binary files /dev/null and b/doc/salome/gui/GEOM/images/mtransf4.png differ diff --git a/doc/salome/gui/GEOM/images/multi_rotation1d1.png b/doc/salome/gui/GEOM/images/multi_rotation1d1.png new file mode 100755 index 000000000..4085f434b Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_rotation1d1.png differ diff --git a/doc/salome/gui/GEOM/images/multi_rotation1d2.png b/doc/salome/gui/GEOM/images/multi_rotation1d2.png new file mode 100755 index 000000000..8089092a8 Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_rotation1d2.png differ diff --git a/doc/salome/gui/GEOM/images/multi_rotation2d1.png b/doc/salome/gui/GEOM/images/multi_rotation2d1.png new file mode 100755 index 000000000..1bdd25302 Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_rotation2d1.png differ diff --git a/doc/salome/gui/GEOM/images/multi_rotation2d2.png b/doc/salome/gui/GEOM/images/multi_rotation2d2.png new file mode 100755 index 000000000..aa61ca606 Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_rotation2d2.png differ diff --git a/doc/salome/gui/GEOM/images/multi_transformationsn1d.png b/doc/salome/gui/GEOM/images/multi_transformationsn1d.png new file mode 100755 index 000000000..dfcc440ae Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_transformationsn1d.png differ diff --git a/doc/salome/gui/GEOM/images/multi_transformationsn2d.png b/doc/salome/gui/GEOM/images/multi_transformationsn2d.png new file mode 100755 index 000000000..f0fc1279c Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_transformationsn2d.png differ diff --git a/doc/salome/gui/GEOM/images/multi_translation1dsn.png b/doc/salome/gui/GEOM/images/multi_translation1dsn.png new file mode 100755 index 000000000..436a8169a Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_translation1dsn.png differ diff --git a/doc/salome/gui/GEOM/images/multi_translation2dsn.png b/doc/salome/gui/GEOM/images/multi_translation2dsn.png new file mode 100755 index 000000000..f44c8520e Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_translation2dsn.png differ diff --git a/doc/salome/gui/GEOM/images/multi_translation_initialsn.png b/doc/salome/gui/GEOM/images/multi_translation_initialsn.png new file mode 100755 index 000000000..0b7b70afe Binary files /dev/null and b/doc/salome/gui/GEOM/images/multi_translation_initialsn.png differ diff --git a/doc/salome/gui/GEOM/images/neo-basicprop.png b/doc/salome/gui/GEOM/images/neo-basicprop.png new file mode 100755 index 000000000..2a9d7ca2a Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-basicprop.png differ diff --git a/doc/salome/gui/GEOM/images/neo-detect2.png b/doc/salome/gui/GEOM/images/neo-detect2.png new file mode 100755 index 000000000..f0dabe311 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-detect2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-isos.png b/doc/salome/gui/GEOM/images/neo-isos.png new file mode 100755 index 000000000..dbbcf8ef5 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-isos.png differ diff --git a/doc/salome/gui/GEOM/images/neo-localcs1.png b/doc/salome/gui/GEOM/images/neo-localcs1.png new file mode 100755 index 000000000..9bdacafa2 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-localcs1.png differ diff --git a/doc/salome/gui/GEOM/images/neo-localcs2.png b/doc/salome/gui/GEOM/images/neo-localcs2.png new file mode 100755 index 000000000..3fc54a67c Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-localcs2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-localcs3.png b/doc/salome/gui/GEOM/images/neo-localcs3.png new file mode 100755 index 000000000..01c8e24fa Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-localcs3.png differ diff --git a/doc/salome/gui/GEOM/images/neo-mrot1.png b/doc/salome/gui/GEOM/images/neo-mrot1.png new file mode 100755 index 000000000..6cf2ab91b Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-mrot1.png differ diff --git a/doc/salome/gui/GEOM/images/neo-mrot2.png b/doc/salome/gui/GEOM/images/neo-mrot2.png new file mode 100755 index 000000000..e2f37e052 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-mrot2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj1.png b/doc/salome/gui/GEOM/images/neo-obj1.png new file mode 100755 index 000000000..88a7a8b8a Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj1.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj2.png b/doc/salome/gui/GEOM/images/neo-obj2.png new file mode 100755 index 000000000..c940eaa38 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj3.png b/doc/salome/gui/GEOM/images/neo-obj3.png new file mode 100755 index 000000000..d773938e2 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj3.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj4.png b/doc/salome/gui/GEOM/images/neo-obj4.png new file mode 100755 index 000000000..db5d49715 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj4.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj5.png b/doc/salome/gui/GEOM/images/neo-obj5.png new file mode 100755 index 000000000..e1579f082 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj5.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj6.png b/doc/salome/gui/GEOM/images/neo-obj6.png new file mode 100755 index 000000000..b6b3be440 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj6.png differ diff --git a/doc/salome/gui/GEOM/images/neo-obj7.png b/doc/salome/gui/GEOM/images/neo-obj7.png new file mode 100755 index 000000000..15dfa2376 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-obj7.png differ diff --git a/doc/salome/gui/GEOM/images/neo-point2.png b/doc/salome/gui/GEOM/images/neo-point2.png new file mode 100755 index 000000000..3bc59b860 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-point2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-scetcher1.png b/doc/salome/gui/GEOM/images/neo-scetcher1.png new file mode 100755 index 000000000..7130e8b08 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-scetcher1.png differ diff --git a/doc/salome/gui/GEOM/images/neo-scetcher2.png b/doc/salome/gui/GEOM/images/neo-scetcher2.png new file mode 100755 index 000000000..330e1e3a3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-scetcher2.png differ diff --git a/doc/salome/gui/GEOM/images/neo-section.png b/doc/salome/gui/GEOM/images/neo-section.png new file mode 100755 index 000000000..0d58ad244 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-section.png differ diff --git a/doc/salome/gui/GEOM/images/neo-transparency.png b/doc/salome/gui/GEOM/images/neo-transparency.png new file mode 100755 index 000000000..ec1fb7f70 Binary files /dev/null and b/doc/salome/gui/GEOM/images/neo-transparency.png differ diff --git a/doc/salome/gui/GEOM/images/new-tolerance.png b/doc/salome/gui/GEOM/images/new-tolerance.png new file mode 100755 index 000000000..796115ba9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/new-tolerance.png differ diff --git a/doc/salome/gui/GEOM/images/offsetsn.png b/doc/salome/gui/GEOM/images/offsetsn.png new file mode 100755 index 000000000..6404310e0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/offsetsn.png differ diff --git a/doc/salome/gui/GEOM/images/partition1.png b/doc/salome/gui/GEOM/images/partition1.png new file mode 100755 index 000000000..440dc3c55 Binary files /dev/null and b/doc/salome/gui/GEOM/images/partition1.png differ diff --git a/doc/salome/gui/GEOM/images/partition2.png b/doc/salome/gui/GEOM/images/partition2.png new file mode 100755 index 000000000..a67ec9d8b Binary files /dev/null and b/doc/salome/gui/GEOM/images/partition2.png differ diff --git a/doc/salome/gui/GEOM/images/partitionsn1.png b/doc/salome/gui/GEOM/images/partitionsn1.png new file mode 100755 index 000000000..fa8404de4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/partitionsn1.png differ diff --git a/doc/salome/gui/GEOM/images/partitionsn2.png b/doc/salome/gui/GEOM/images/partitionsn2.png new file mode 100755 index 000000000..b7480a4fa Binary files /dev/null and b/doc/salome/gui/GEOM/images/partitionsn2.png differ diff --git a/doc/salome/gui/GEOM/images/pipe.png b/doc/salome/gui/GEOM/images/pipe.png new file mode 100755 index 000000000..e773731d2 Binary files /dev/null and b/doc/salome/gui/GEOM/images/pipe.png differ diff --git a/doc/salome/gui/GEOM/images/pipe_wire_edgesn.png b/doc/salome/gui/GEOM/images/pipe_wire_edgesn.png new file mode 100755 index 000000000..4424b6bf1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/pipe_wire_edgesn.png differ diff --git a/doc/salome/gui/GEOM/images/pipesn.png b/doc/salome/gui/GEOM/images/pipesn.png new file mode 100755 index 000000000..11ac1096b Binary files /dev/null and b/doc/salome/gui/GEOM/images/pipesn.png differ diff --git a/doc/salome/gui/GEOM/images/plane1.png b/doc/salome/gui/GEOM/images/plane1.png new file mode 100755 index 000000000..47a9b8bcd Binary files /dev/null and b/doc/salome/gui/GEOM/images/plane1.png differ diff --git a/doc/salome/gui/GEOM/images/plane2.png b/doc/salome/gui/GEOM/images/plane2.png new file mode 100755 index 000000000..f4b880b44 Binary files /dev/null and b/doc/salome/gui/GEOM/images/plane2.png differ diff --git a/doc/salome/gui/GEOM/images/plane3.png b/doc/salome/gui/GEOM/images/plane3.png new file mode 100755 index 000000000..1727e3bb0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/plane3.png differ diff --git a/doc/salome/gui/GEOM/images/plane_on_face.png b/doc/salome/gui/GEOM/images/plane_on_face.png new file mode 100755 index 000000000..5df8823cd Binary files /dev/null and b/doc/salome/gui/GEOM/images/plane_on_face.png differ diff --git a/doc/salome/gui/GEOM/images/planes1.png b/doc/salome/gui/GEOM/images/planes1.png new file mode 100755 index 000000000..c9a594cee Binary files /dev/null and b/doc/salome/gui/GEOM/images/planes1.png differ diff --git a/doc/salome/gui/GEOM/images/point1.png b/doc/salome/gui/GEOM/images/point1.png new file mode 100755 index 000000000..39bca25f4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/point1.png differ diff --git a/doc/salome/gui/GEOM/images/point3.png b/doc/salome/gui/GEOM/images/point3.png new file mode 100755 index 000000000..0a2e325c6 Binary files /dev/null and b/doc/salome/gui/GEOM/images/point3.png differ diff --git a/doc/salome/gui/GEOM/images/points.png b/doc/salome/gui/GEOM/images/points.png new file mode 100755 index 000000000..547b277fd Binary files /dev/null and b/doc/salome/gui/GEOM/images/points.png differ diff --git a/doc/salome/gui/GEOM/images/polyline.png b/doc/salome/gui/GEOM/images/polyline.png new file mode 100755 index 000000000..bd259e120 Binary files /dev/null and b/doc/salome/gui/GEOM/images/polyline.png differ diff --git a/doc/salome/gui/GEOM/images/prisms_basessn.png b/doc/salome/gui/GEOM/images/prisms_basessn.png new file mode 100755 index 000000000..d6a070083 Binary files /dev/null and b/doc/salome/gui/GEOM/images/prisms_basessn.png differ diff --git a/doc/salome/gui/GEOM/images/prismssn.png b/doc/salome/gui/GEOM/images/prismssn.png new file mode 100755 index 000000000..80c9af357 Binary files /dev/null and b/doc/salome/gui/GEOM/images/prismssn.png differ diff --git a/doc/salome/gui/GEOM/images/repair1.png b/doc/salome/gui/GEOM/images/repair1.png new file mode 100755 index 000000000..2b47fa5a4 Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair1.png differ diff --git a/doc/salome/gui/GEOM/images/repair10.png b/doc/salome/gui/GEOM/images/repair10.png new file mode 100755 index 000000000..c3c77164a Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair10.png differ diff --git a/doc/salome/gui/GEOM/images/repair2.png b/doc/salome/gui/GEOM/images/repair2.png new file mode 100755 index 000000000..488a6a4c9 Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair2.png differ diff --git a/doc/salome/gui/GEOM/images/repair3.png b/doc/salome/gui/GEOM/images/repair3.png new file mode 100755 index 000000000..4c2a41f90 Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair3.png differ diff --git a/doc/salome/gui/GEOM/images/repair4.png b/doc/salome/gui/GEOM/images/repair4.png new file mode 100755 index 000000000..2af7cbabb Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair4.png differ diff --git a/doc/salome/gui/GEOM/images/repair5.png b/doc/salome/gui/GEOM/images/repair5.png new file mode 100755 index 000000000..b99fbcbaf Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair5.png differ diff --git a/doc/salome/gui/GEOM/images/repair6.png b/doc/salome/gui/GEOM/images/repair6.png new file mode 100755 index 000000000..5123d1f84 Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair6.png differ diff --git a/doc/salome/gui/GEOM/images/repair7.png b/doc/salome/gui/GEOM/images/repair7.png new file mode 100755 index 000000000..2b553b9fd Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair7.png differ diff --git a/doc/salome/gui/GEOM/images/repair8.png b/doc/salome/gui/GEOM/images/repair8.png new file mode 100755 index 000000000..f0016836e Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair8.png differ diff --git a/doc/salome/gui/GEOM/images/repair9.png b/doc/salome/gui/GEOM/images/repair9.png new file mode 100755 index 000000000..7f5d4f5c3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/repair9.png differ diff --git a/doc/salome/gui/GEOM/images/revolution.png b/doc/salome/gui/GEOM/images/revolution.png new file mode 100755 index 000000000..c02c859b1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/revolution.png differ diff --git a/doc/salome/gui/GEOM/images/revolutionsn.png b/doc/salome/gui/GEOM/images/revolutionsn.png new file mode 100755 index 000000000..7242c6710 Binary files /dev/null and b/doc/salome/gui/GEOM/images/revolutionsn.png differ diff --git a/doc/salome/gui/GEOM/images/rotationsn1.png b/doc/salome/gui/GEOM/images/rotationsn1.png new file mode 100755 index 000000000..697dcdedf Binary files /dev/null and b/doc/salome/gui/GEOM/images/rotationsn1.png differ diff --git a/doc/salome/gui/GEOM/images/rotationsn2.png b/doc/salome/gui/GEOM/images/rotationsn2.png new file mode 100755 index 000000000..741d00c90 Binary files /dev/null and b/doc/salome/gui/GEOM/images/rotationsn2.png differ diff --git a/doc/salome/gui/GEOM/images/scale_transformsn1.png b/doc/salome/gui/GEOM/images/scale_transformsn1.png new file mode 100755 index 000000000..5af390922 Binary files /dev/null and b/doc/salome/gui/GEOM/images/scale_transformsn1.png differ diff --git a/doc/salome/gui/GEOM/images/scale_transformsn2.png b/doc/salome/gui/GEOM/images/scale_transformsn2.png new file mode 100755 index 000000000..fa76d4158 Binary files /dev/null and b/doc/salome/gui/GEOM/images/scale_transformsn2.png differ diff --git a/doc/salome/gui/GEOM/images/sectionsn.png b/doc/salome/gui/GEOM/images/sectionsn.png new file mode 100755 index 000000000..8e636ee91 Binary files /dev/null and b/doc/salome/gui/GEOM/images/sectionsn.png differ diff --git a/doc/salome/gui/GEOM/images/selectcolor.png b/doc/salome/gui/GEOM/images/selectcolor.png new file mode 100755 index 000000000..70800b28a Binary files /dev/null and b/doc/salome/gui/GEOM/images/selectcolor.png differ diff --git a/doc/salome/gui/GEOM/images/shellsn.png b/doc/salome/gui/GEOM/images/shellsn.png new file mode 100755 index 000000000..c7f22f323 Binary files /dev/null and b/doc/salome/gui/GEOM/images/shellsn.png differ diff --git a/doc/salome/gui/GEOM/images/solidsn.png b/doc/salome/gui/GEOM/images/solidsn.png new file mode 100755 index 000000000..297fc068c Binary files /dev/null and b/doc/salome/gui/GEOM/images/solidsn.png differ diff --git a/doc/salome/gui/GEOM/images/sphere1.png b/doc/salome/gui/GEOM/images/sphere1.png new file mode 100755 index 000000000..377f1c9ce Binary files /dev/null and b/doc/salome/gui/GEOM/images/sphere1.png differ diff --git a/doc/salome/gui/GEOM/images/sphere2.png b/doc/salome/gui/GEOM/images/sphere2.png new file mode 100755 index 000000000..dd2cadb1f Binary files /dev/null and b/doc/salome/gui/GEOM/images/sphere2.png differ diff --git a/doc/salome/gui/GEOM/images/spheres.png b/doc/salome/gui/GEOM/images/spheres.png new file mode 100755 index 000000000..2b79050f0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/spheres.png differ diff --git a/doc/salome/gui/GEOM/images/supp_int_wires1.png b/doc/salome/gui/GEOM/images/supp_int_wires1.png new file mode 100755 index 000000000..5f760560e Binary files /dev/null and b/doc/salome/gui/GEOM/images/supp_int_wires1.png differ diff --git a/doc/salome/gui/GEOM/images/supp_int_wires2.png b/doc/salome/gui/GEOM/images/supp_int_wires2.png new file mode 100755 index 000000000..e6dc3142a Binary files /dev/null and b/doc/salome/gui/GEOM/images/supp_int_wires2.png differ diff --git a/doc/salome/gui/GEOM/images/suppress_faces1.png b/doc/salome/gui/GEOM/images/suppress_faces1.png new file mode 100755 index 000000000..7534ebeee Binary files /dev/null and b/doc/salome/gui/GEOM/images/suppress_faces1.png differ diff --git a/doc/salome/gui/GEOM/images/suppress_faces2.png b/doc/salome/gui/GEOM/images/suppress_faces2.png new file mode 100755 index 000000000..d38a4add3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/suppress_faces2.png differ diff --git a/doc/salome/gui/GEOM/images/torus1.png b/doc/salome/gui/GEOM/images/torus1.png new file mode 100755 index 000000000..28e18afa0 Binary files /dev/null and b/doc/salome/gui/GEOM/images/torus1.png differ diff --git a/doc/salome/gui/GEOM/images/torus2.png b/doc/salome/gui/GEOM/images/torus2.png new file mode 100755 index 000000000..8877f1c37 Binary files /dev/null and b/doc/salome/gui/GEOM/images/torus2.png differ diff --git a/doc/salome/gui/GEOM/images/toruses.png b/doc/salome/gui/GEOM/images/toruses.png new file mode 100755 index 000000000..721bae271 Binary files /dev/null and b/doc/salome/gui/GEOM/images/toruses.png differ diff --git a/doc/salome/gui/GEOM/images/transformation1.png b/doc/salome/gui/GEOM/images/transformation1.png new file mode 100755 index 000000000..8dbf8fe11 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation1.png differ diff --git a/doc/salome/gui/GEOM/images/transformation10.png b/doc/salome/gui/GEOM/images/transformation10.png new file mode 100755 index 000000000..0847a5e03 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation10.png differ diff --git a/doc/salome/gui/GEOM/images/transformation11.png b/doc/salome/gui/GEOM/images/transformation11.png new file mode 100755 index 000000000..b78acec2e Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation11.png differ diff --git a/doc/salome/gui/GEOM/images/transformation2.png b/doc/salome/gui/GEOM/images/transformation2.png new file mode 100755 index 000000000..569752740 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation2.png differ diff --git a/doc/salome/gui/GEOM/images/transformation3.png b/doc/salome/gui/GEOM/images/transformation3.png new file mode 100755 index 000000000..96a1f1e36 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation3.png differ diff --git a/doc/salome/gui/GEOM/images/transformation4.png b/doc/salome/gui/GEOM/images/transformation4.png new file mode 100755 index 000000000..323c3d0ae Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation4.png differ diff --git a/doc/salome/gui/GEOM/images/transformation4a.png b/doc/salome/gui/GEOM/images/transformation4a.png new file mode 100644 index 000000000..64d2d4149 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation4a.png differ diff --git a/doc/salome/gui/GEOM/images/transformation5.png b/doc/salome/gui/GEOM/images/transformation5.png new file mode 100755 index 000000000..8d1cf9254 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation5.png differ diff --git a/doc/salome/gui/GEOM/images/transformation6.png b/doc/salome/gui/GEOM/images/transformation6.png new file mode 100755 index 000000000..3e3828bd8 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation6.png differ diff --git a/doc/salome/gui/GEOM/images/transformation7.png b/doc/salome/gui/GEOM/images/transformation7.png new file mode 100755 index 000000000..03a16fe01 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation7.png differ diff --git a/doc/salome/gui/GEOM/images/transformation8.png b/doc/salome/gui/GEOM/images/transformation8.png new file mode 100755 index 000000000..77d030385 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation8.png differ diff --git a/doc/salome/gui/GEOM/images/transformation9.png b/doc/salome/gui/GEOM/images/transformation9.png new file mode 100755 index 000000000..c7f6194d3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transformation9.png differ diff --git a/doc/salome/gui/GEOM/images/translationsn1.png b/doc/salome/gui/GEOM/images/translationsn1.png new file mode 100755 index 000000000..42e008cb3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/translationsn1.png differ diff --git a/doc/salome/gui/GEOM/images/translationsn2.png b/doc/salome/gui/GEOM/images/translationsn2.png new file mode 100755 index 000000000..01d695937 Binary files /dev/null and b/doc/salome/gui/GEOM/images/translationsn2.png differ diff --git a/doc/salome/gui/GEOM/images/transparencysn.png b/doc/salome/gui/GEOM/images/transparencysn.png new file mode 100755 index 000000000..0b3638ed1 Binary files /dev/null and b/doc/salome/gui/GEOM/images/transparencysn.png differ diff --git a/doc/salome/gui/GEOM/images/vector1.png b/doc/salome/gui/GEOM/images/vector1.png new file mode 100755 index 000000000..46e3b20f3 Binary files /dev/null and b/doc/salome/gui/GEOM/images/vector1.png differ diff --git a/doc/salome/gui/GEOM/images/vector2.png b/doc/salome/gui/GEOM/images/vector2.png new file mode 100755 index 000000000..bb5c64c56 Binary files /dev/null and b/doc/salome/gui/GEOM/images/vector2.png differ diff --git a/doc/salome/gui/GEOM/images/wiresn.png b/doc/salome/gui/GEOM/images/wiresn.png new file mode 100755 index 000000000..623ae3b58 Binary files /dev/null and b/doc/salome/gui/GEOM/images/wiresn.png differ diff --git a/doc/salome/gui/GEOM/images/workplane4.png b/doc/salome/gui/GEOM/images/workplane4.png new file mode 100755 index 000000000..00835eb54 Binary files /dev/null and b/doc/salome/gui/GEOM/images/workplane4.png differ diff --git a/doc/salome/gui/GEOM/images/workplane5.png b/doc/salome/gui/GEOM/images/workplane5.png new file mode 100755 index 000000000..925ac573b Binary files /dev/null and b/doc/salome/gui/GEOM/images/workplane5.png differ diff --git a/doc/salome/gui/GEOM/images/workplane6.png b/doc/salome/gui/GEOM/images/workplane6.png new file mode 100755 index 000000000..1f65862f8 Binary files /dev/null and b/doc/salome/gui/GEOM/images/workplane6.png differ diff --git a/doc/salome/gui/GEOM/index.htm b/doc/salome/gui/GEOM/index.htm deleted file mode 100755 index 54c41df02..000000000 --- a/doc/salome/gui/GEOM/index.htm +++ /dev/null @@ -1,180 +0,0 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/index_csh.htm b/doc/salome/gui/GEOM/index_csh.htm deleted file mode 100755 index 631f73da1..000000000 --- a/doc/salome/gui/GEOM/index_csh.htm +++ /dev/null @@ -1,106 +0,0 @@ - - -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 deleted file mode 100755 index 459833070..000000000 --- a/doc/salome/gui/GEOM/index_rhc.htm +++ /dev/null @@ -1,106 +0,0 @@ - - -Geometry Module Reference Manual - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/add_point_on_edge_operation.doc b/doc/salome/gui/GEOM/input/add_point_on_edge_operation.doc new file mode 100644 index 000000000..1c4d4aee1 --- /dev/null +++ b/doc/salome/gui/GEOM/input/add_point_on_edge_operation.doc @@ -0,0 +1,36 @@ +/*! + +\page add_point_on_edge_operation_page Add Point on Edge + +\n To Add Point on Edge in the Main Menu select +Repair - > Add Point on Edge. + +\n 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. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.DivideEdge(Shape, EdgeID, Value, +IsByParameter), where \em Shape is a shape which contains an edge to +be divided, \em EdgeID is the ID of the edge to be divided, if it = -1, +then Shape is an edge, \em Value is a paramter on the edge or a +length. \em 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] +\n Arguments: Name + 1 Edge + 1 value setting the position of +the point according to one of the selected modes. + +\image html repair8.png + +\n Example: + +\image html image167.jpg + +\image html image168.jpg + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_add_point_on_edge "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/archimede.doc b/doc/salome/gui/GEOM/input/archimede.doc new file mode 100644 index 000000000..6019112b6 --- /dev/null +++ b/doc/salome/gui/GEOM/input/archimede.doc @@ -0,0 +1,34 @@ +/*! + +\page archimede_page Archimede + +\n To produce an \b Archimede operation in the Main Menu select +Operations - > Archimede + +\n This operation creates a plane corresponding to the modeled +water-line of the object plunged into the water (in Z direction). + +\n The \b Result will be any \b GEOM_Object. + +\n TUI Command: +geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection), + where \em Shape is a shape to put into the water, \em Weight is a weight of +the shape, \em WaterDensity is density of water, \em MeshingDeflection is a +deflection of the mesh, using to compute the section. +\n Arguments: Name + 1 shape + 3 values (Weight, Water Density +& Meshing Deflection). + +\image html archimede.png + +\n Example: + +\image html archimedesn1.png + +\image html archimedesn2.png + +\image html archimedesn3.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_archimede "Basic Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/basic_operations.doc b/doc/salome/gui/GEOM/input/basic_operations.doc new file mode 100644 index 000000000..a0dc155af --- /dev/null +++ b/doc/salome/gui/GEOM/input/basic_operations.doc @@ -0,0 +1,10 @@ +/*! + +\page basic_operations_page Basic Operations + +
    +
  • \subpage partition_page
  • +
  • \subpage archimede_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/blocks_operations.doc b/doc/salome/gui/GEOM/input/blocks_operations.doc new file mode 100644 index 000000000..8fe02df8d --- /dev/null +++ b/doc/salome/gui/GEOM/input/blocks_operations.doc @@ -0,0 +1,11 @@ +/*! + +\page blocks_operations_page Blocks Operations + +
    +
  • \subpage multi_transformation_operation_page
  • +
  • \subpage explode_on_blocks_operation_page
  • +
  • \subpage propagate_operation_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/boolean_operations.doc b/doc/salome/gui/GEOM/input/boolean_operations.doc new file mode 100644 index 000000000..80d560e6b --- /dev/null +++ b/doc/salome/gui/GEOM/input/boolean_operations.doc @@ -0,0 +1,13 @@ +/*! + +\page boolean_operations_page Boolean Operations + +
    +
  • \subpage using_boolean_operations_page
  • +
  • \subpage fuse_operation_page
  • +
  • \subpage common_operation_page
  • +
  • \subpage cut_operation_page
  • +
  • \subpage section_opeartion_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/building_by_blocks.doc b/doc/salome/gui/GEOM/input/building_by_blocks.doc new file mode 100644 index 000000000..2a64e031e --- /dev/null +++ b/doc/salome/gui/GEOM/input/building_by_blocks.doc @@ -0,0 +1,112 @@ +/*! + +\page build_by_blocks_page 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. + +
    +
  • \ref quad_face_anchor "Quadrangle face"
  • +
  • \ref hexa_solid_anchor "Hexahedral solid"
  • +
+ +
+\anchor quad_face_anchor +

Quadrangle face

+ +\n 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). + +\n The \b Result of the operation will be a \b GEOM_Object (face). + +\n TUI Command: +
    +
  • geompy.MakeQuad4Vertices(V1, V2, V3, V4), where V1, V2, +V3, V4 are four vertices from which a face is constructed. Edges are +created automatically.
  • +
  • geompy.MakeQuad2Edges(E1, E2), where E1, E2 are edges from +which the face is constructed, two other edges are created +automatically.
  • +
  • geompy.MakeQuad(E1, E2, E3, E4), where E1, E2, E3, E4 are +four edges from which the face is constructed.
  • +
+ +Arguments: +
    +
  • Name + 4 Points, or
  • +
  • Name + 2 Edges, or
  • +
  • Name + 4 Edges.
  • +
+ +\n Dialog Box: + +\image html block1.png + +\image html block2.png + +\image html block3.png + +\n Example: +\image html image185.jpg + + +

+\anchor hexa_solid_anchor +

Hexahedral solid

+ +\n 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). + +\n The \b Result of the operation will be a \b GEOM_Object (solid). + +\n TUI Command: +
    +
  • geompy.MakeHexa2Faces(F1, F2), where F1 and F2 are faces +from which the hexahedron is constructed, other four faces are created +automatically.
  • +
  • geompy.MakeHexa(F1, F2, F3, F4, F5, F6), where F1 — F6 are six faces from which the hexahedron is constructed.
  • +
+ +\n Arguments: +
    +
  • Name + 2 Faces, or
  • +
  • Name + 6 Faces.
  • +
+ +\n Dialog Box: + +\image html block4.png + +\image html block5.png + +\n Example: + +\image html image180.jpg + +\image html image181.jpg + +Our TUI Scripts provide you with useful examples of +\ref tui_building_by_blocks_page "Building by Blocks". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/chamfer_operation.doc b/doc/salome/gui/GEOM/input/chamfer_operation.doc new file mode 100644 index 000000000..85f30759f --- /dev/null +++ b/doc/salome/gui/GEOM/input/chamfer_operation.doc @@ -0,0 +1,52 @@ +/*! + +\page chamfer_operation_page Chamfer + +\n To produce a \b Chamfer in the Main Menu select +Operations - > Transformation - > Chamfer + +\n This operation allows you to make chamfer of the edges of a Shape. +\n The \b Result will be a \b GEOM_Object. + +\n To create chamfer on all edges of the given shape, you need to +define the Main Object to create a chamfer on and the \b +Dimension (radius) of the chamfer. +\n TUI Command: geompy.MakeChamferAll(Shape, D) +\n Arguments: Name + 1 SHAPE + 1 value (Chamfer dimension). + +\image html chamfer1.png + +\image html chamfer_all.png + +\n 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 \b Dimension of the Chamfer. +\n TUI Command: geompy.MakeChamferEdge(Shape, D1, D2, +Face1, Face2), where \em Shape is a shape to create a chamfer on, +\em D1 is a chamfer size along \em Face1, \em D2 is a chamfer size +along \em Face2, \em Face1 and \em Face2 are indices of faces in Shape. + +\image html chamfer2.png + +\image html chamfer_edge.png + +\n 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 \b Dimension of the +Chamfer. +\n TUI Command: geompy.MakeChamferFaces(Shape, D1, D2, +ListOfFaceID), where \em Shape is a shape to create chamfer on, +\em D1 is a chamfer size along a face from \em ListOfFaceID, \em D2 +is a chamfer size along two faces connected to the edge to which the +chamfer is applied, \em ListOfFaceID is a list of indices of faces in +\em Shape. + +\image html chamfer3.png + +\image html chamfer_faces.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_chamfer "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/change_orientation_operation.doc b/doc/salome/gui/GEOM/input/change_orientation_operation.doc new file mode 100644 index 000000000..4fd3cecbe --- /dev/null +++ b/doc/salome/gui/GEOM/input/change_orientation_operation.doc @@ -0,0 +1,25 @@ +/*! + +\page change_orientation_operation_page Change Orientation + +\n To Change Orientation in the Main Menu select Repair - > Change Orientation. +\n This operation reverses the normals of faces composing the selected +shell. + +\n TUI Command: geompy.ChangeOrientation(shape) +\n Arguments: Name + 1 shape (shell) +\n Uncheck Create a copy checkbox if you don't wish to leave +the initial object in the project (Result name field will be +locked). + +\image html changeorientation.png + +\n Example: + +\image html image38.gif +
Inward orientation
+ +\image html image40.gif +
Outward orientation
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/check_free_boundaries_operation.doc b/doc/salome/gui/GEOM/input/check_free_boundaries_operation.doc new file mode 100644 index 000000000..0389db144 --- /dev/null +++ b/doc/salome/gui/GEOM/input/check_free_boundaries_operation.doc @@ -0,0 +1,29 @@ +/*! + +\page check_free_boundaries_operation_page Check Free Boundaries + +\n To Check Free Boundaries in the Main Menu select Repair - > Check Free Boundaries. + +\n This operation detects wires and edges that correspond to the +shape's boundary, and highlights it. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: (NoError, ClosedWires, OpenWires) = +geompy.GetFreeBoundary(Shape), where \em Shape is a shape to be +checked, \em NoError is false if an error occurred while checking free +boundaries, \em ClosedWires is a list of closed free boundary wires, +\em OpenWires is a list of open free boundary wires. + +\image html repair9.png + +\n Example: + +\image html free_boudaries1.png + +\image html free_boudaries2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_check_free_boundaries "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/check_free_faces_operation.doc b/doc/salome/gui/GEOM/input/check_free_faces_operation.doc new file mode 100644 index 000000000..b2a42704a --- /dev/null +++ b/doc/salome/gui/GEOM/input/check_free_faces_operation.doc @@ -0,0 +1,25 @@ +/*! + +\page check_free_faces_operation_page Check Free Faces + +\n To Check Free Faces in the Main Menu select Repair - > Check Free Faces. +\n This operation retrieves all free faces from a given shape. A free +face is a face not shared between two shells of the shape. + +\n The \b Result will be a \b GEOM_Object (a list of IDs of all free +faces, containing in the shape). +\n TUI Command: GetFreeFacesIDs(Shape), where \em Shape is +a shape to be checked. + +\image html repair10.png + +\n Example: + +\image html free_faces1.png + +\image html free_faces2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_check_free_faces "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/close_contour_operation.doc b/doc/salome/gui/GEOM/input/close_contour_operation.doc new file mode 100644 index 000000000..54a257922 --- /dev/null +++ b/doc/salome/gui/GEOM/input/close_contour_operation.doc @@ -0,0 +1,35 @@ +/*! + +\page close_contour_operation_page Close Contour + +\n To produce a Close Contour operation in the Main Menu +select Repair - > Close Contour. + +\n This operation closes an open contour and modifies the underlying +face (if needed) in accordance with user specified mode: +
    +
  • By common vertex – a vertex is created between the end points +of the contour and its tolerance is increased to a value of the gap +between the ends of the contour;
  • +
  • By new edge – a new edge is inserted between the end points of the contour.
  • +
+This operation is available in OCC Viewer only. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.CloseContour(Shape, Wires, +IsCommonVertex), where \em Shape is a shape to be processed, \em 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), \em 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. +\n Arguments: Name + 1 shape + contour (Wire, or a set of +Edges) + mode of closure (by vertex or by edge) + +\image html repair3.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_close_contour "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/color.doc b/doc/salome/gui/GEOM/input/color.doc new file mode 100644 index 000000000..fcaff6f45 --- /dev/null +++ b/doc/salome/gui/GEOM/input/color.doc @@ -0,0 +1,16 @@ +/*! + +\page color_page Color + +\n You can change the filling color of your object in the standard +Select Color menu accessible by right-clicking on an object and +selecting \b Color in the pop-up menu box. + +\n TUI Command: gg.setColor(ID, Short, Short, Short) + +\image html selectcolor.png + +Our TUI Scripts provide you with useful examples of +\ref tui_change_color "Changing Display Parameters". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/common_operation.doc b/doc/salome/gui/GEOM/input/common_operation.doc new file mode 100644 index 000000000..ec9c96b2d --- /dev/null +++ b/doc/salome/gui/GEOM/input/common_operation.doc @@ -0,0 +1,24 @@ +/*! + +\page common_operation_page Common + +\n To produce a \b Common operation in the Main Menu select Operations - > Boolean - > Common + +\n This operation cuts the common part of two shapes and transforms it into an independent geometrical object. + +\n The \b Result will be a \b GEOM_Object (COMPOUND). +\n TUI Command: geompy.MakeCommon(s1, s2) +\n Arguments: Name + 2 shapes. + +\image html bool2.png + +\n Example: + +\image html fusesn1.png + +\image html commonsn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_common "Boolean Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_adv_obj.doc b/doc/salome/gui/GEOM/input/creating_adv_obj.doc new file mode 100644 index 000000000..ebaf38aaa --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_adv_obj.doc @@ -0,0 +1,15 @@ +/*! + +\page create_adv_obj_page Creating Advanced Geometrical Objects + +
    +
  • \subpage create_explode_page
  • +
  • \subpage create_edge_page
  • +
  • \subpage create_wire_page
  • +
  • \subpage create_face_page
  • +
  • \subpage create_shell_page
  • +
  • \subpage create_solid_page
  • +
  • \subpage create_compound_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_arc.doc b/doc/salome/gui/GEOM/input/creating_arc.doc new file mode 100644 index 000000000..78b2bd99d --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_arc.doc @@ -0,0 +1,46 @@ +/*! + +\page create_arc_page Arc + +To create an \b Arc in the Main Menu select New Entity - > +Basic - > Arc + +\n There are 2 algorithms to create an \b Arc in the 3D space. +\n The \b Result of each operation will be a GEOM_Object (edge). + +\n Firstly, you can define an \b Arc by three \b 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. +\n TUI Command: geompy.MakeArc(Point1, Point2, Point3) +\n Arguments: Name + 3 vertices. + +\image html arc.png + +\n Secondly, you can define an \b Arc by \b Center, \b Start and \b End +points. The arc is built from the \b Start point to the \b End point. The +radius of the arc is defined by the distance between the \b Center point +and the \b Start point. The \b End point defines the angle of the arc. If +the distance between the \b Center point and the \b End point is not equal +to the radius, the arc will be built anyway. +\n \b Reverse radio button allows to change the direction of the arc. +\n TUI Command: geompy.MakeArcCenter(Center Point, Start +Point, End Point, boolean Sense) +\n Arguments: Name + 3 vertices + Boolean. + +\image html arc2.png + +\n Examples: + +\image html arcsn.png +
Arc by three points lying on it.
+ +\image html arcsn1.png +
Arc by Start, End and Center.
+ +\image html arcsn2.png +
Reversed arc.
+ +Our TUI Scripts provide you with useful examples of creation of +\ref tui_basic_geom_objs_page "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_basic_go.doc b/doc/salome/gui/GEOM/input/creating_basic_go.doc new file mode 100644 index 000000000..a9a1cb3bb --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_basic_go.doc @@ -0,0 +1,18 @@ +/*! + +\page create_basic_geom_obj_page Creating Basic Geometric Objects + +
    +
  • \subpage create_point_page
  • +
  • \subpage create_line_page
  • +
  • \subpage create_circle_page
  • +
  • \subpage create_ellipse_page
  • +
  • \subpage create_arc_page
  • +
  • \subpage create_curve_page
  • +
  • \subpage create_vector_page
  • +
  • \subpage create_plane_page
  • +
  • \subpage create_wplane_page
  • +
  • \subpage create_lcs_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_box.doc b/doc/salome/gui/GEOM/input/creating_box.doc new file mode 100644 index 000000000..7c8268b07 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_box.doc @@ -0,0 +1,41 @@ +/*! + +\page create_box_page Box + +To create a \b Box in the Main Menu select New Entity - > +Primitives - > Box + +\n There are 2 algorithms for creation of a \b Box. +\n The \b Result of each operation will be a GEOM_Object (SOLID). + +\n Firstly, you can define a \b Box by two specified \b Vertices (its +opposite corners). The edges of the box will be parallel to the +coordinate axes. +\n TUI Command: geompy.MakeBoxTwoPnt(Point1, Point2) +\n Arguments: Name + 2 vertices (opposite corners of the box). + +\image html box1.png + +\n Secondly, you can define a \b 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). +\n TUI Command: geompy.MakeBoxDXDYDZ(DX, DY, DZ) +\n Arguments: Name + 3 values (dimensions at origin). + +\image html box2.png + +\b NB! There is a third way to create a \b Box, which is currently +accessible only via \b TUI commands. +\n You can define a \b Box by the coordinates of two \b Vertices (in +this way you don't need to create them in advance). +\n TUI Command: geompy.MakeBox(x1,y1,z1,x2,y2,z2) +\n Arguments: Name + X, Y and Z coordinates of both points. + +Example: + +\image html boxes.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_box "Primitives". + +*/ diff --git a/doc/salome/gui/GEOM/input/creating_circle.doc b/doc/salome/gui/GEOM/input/creating_circle.doc new file mode 100644 index 000000000..017b1b6f6 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_circle.doc @@ -0,0 +1,32 @@ +/*! + +\page create_circle_page Circle + +To create a \b Circle in the Main Menu select New Entity - > +Basic - > Circle + +\n There are 2 algorithms to create a \b Circle in the 3D space. +\n The \b Result of each operation will be a GEOM_Object (edge). + +\n Firstly, you can define a \b Circle by a Center Point, a \b +Vector giving the circle's normal and a \b Radius. +\n TUI Command: geompy.MakeCircle(Point, Vector, +Radius) +\n Arguments: Name + 1 vertex (for the center) + 1 edge (for +the direction) + Radius. + +\image html circle1.png + +\n Secondly, you can define a \b Circle by three \b Points that lie on it. +\n TUI Command: geompy.MakeCircleThreePnt(Point1, Point2, Point3) +\n Arguments: Name + 3 points which will form the circle. + +\image html circle2.png + +Example: +\image html circles.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_circle "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_complex_obj.doc b/doc/salome/gui/GEOM/input/creating_complex_obj.doc new file mode 100644 index 000000000..23927a4a9 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_complex_obj.doc @@ -0,0 +1,12 @@ +/*! + +\page create_complex_obj_page Creating Complex Objects + +
    +
  • \subpage create_extrusion_page
  • +
  • \subpage create_revolution_page
  • +
  • \subpage creaet_filling_page
  • +
  • \subpage create_extrusion_alongpath_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_compound.doc b/doc/salome/gui/GEOM/input/creating_compound.doc new file mode 100644 index 000000000..30d685ba1 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_compound.doc @@ -0,0 +1,23 @@ +/*! + +\page create_compound_page Compound + +\n To create a \b Compound in the Main Menu select New +Entity - > Build - > Compound. + +\n You can create a compound from a list of shells. +\n The \b Result will be a \b GEOM_Object (COMPOUND). + +\n TUI Command: geompy.MakeCompound(ListOfShape) +\n Arguments: Name + List of shapes. + +\image html neo-obj7.png + +\n Example: + +\image html compoundsn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_compound "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_cone.doc b/doc/salome/gui/GEOM/input/creating_cone.doc new file mode 100644 index 000000000..8af95ebf8 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_cone.doc @@ -0,0 +1,40 @@ +/*! + +\page create_cone_page Cone + +\n To create a \b Cone in the Main Menu select New Entity - > Primitives - > Cone + +\n There are two algorithms for creation of a \b Cone. +\n The \b Result of each operation will be a GEOM_Object (SOLID). + + + +\n Firstly, you can define a \b Cone by the Base Point (the +central point of the cone base), the \b Axis, the \b Height and the +first and the second \b Radiuses. +\n TUI Command: geompy.MakeCone(Point, Axis, Radius1, Radius2) +\n Arguments: Name + 1 vertex + 1 vector (for direction) + 3 +values (Radius of the base part, radius of the upper part, height). + +\image html cone1.png + +\n Secondly, you can define a \b Cone with the center at the origin of +coordinates by its \b Height and \b Radiuses. The \b Axis of the \b +Cone will be collinear to the OZ axis of the coordinate system. +\n TUI Command: geompy.MakeConeR1R2H(Radius1, Radius2, Height) +\n Arguments: Name + 3 values (Radius of the base part, radius +of the upper part, height). + +\image html cone2.png + +\note If both radiuses are non-zero, the \b Cone will be truncated. If +the radiuses are equal, a \b Cylinder will be created instead. + +Example: + +\image html cones.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_cone "Primitives". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_curve.doc b/doc/salome/gui/GEOM/input/creating_curve.doc new file mode 100644 index 000000000..e442851bf --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_curve.doc @@ -0,0 +1,41 @@ +/*! + +\page create_curve_page Curve + +To create a \b Curve in the Main Menu select New Entity - > +Basic - > Curve + +\n There are three algorithms to create a \b Curve in the 3D space. Each +time you define it by a list of \b 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). +\n The \b Result of each operation will be a GEOM_Object (edge). + +\n TUI Commands: +
    +
  • geompy.MakePolyline(ListOfShapes)
  • +
  • geompy.MakeBezier(ListOfShapes)
  • +
  • geompy.MakeInterpol(ListOfShapes)
  • +
+ListOfShape is a list of points through which the curve passes. + +Arguments: Name + at least 2 points which will serve as nodes +on the curve. + +\image html curve.png + +Examples: + +\image html polyline.png +
Polyline
+ +\image html bezier.png +
Bezier
+ +\image html interpol.png +
B-Spline
+ +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_curve "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_cylinder.doc b/doc/salome/gui/GEOM/input/creating_cylinder.doc new file mode 100644 index 000000000..d6debda15 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_cylinder.doc @@ -0,0 +1,36 @@ +/*! + +\page create_cylinder_page Cylinder + +\n To create a \b Cylinder in the Main Menu select New +Entity - > Primitives - > Cylinder + +\n There are 2 algorithms for creation of a \b Cylinder. +\n The \b Result of each operation will be a GEOM_Object (SOLID). + +\n Firstly, you can define a \b Cylinder by the Base Point (the central +point of the cylinder base), the \b Vector (the axis of the cylinder), +and its dimensions: the Radius and the Height. +\n TUI Command: geompy.MakeCylinder(Point, Axis, Radius, Height) +\n Arguments: Name + 1 vertex + 1 vector + 2 values +(Dimensions: radius and height). + +\image html cylinder1.png + +\n Secondly, you can define a \b 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. +\n TUI Command: geompy.MakeCylinderRH(Radius, Height) +\n Arguments: Name + 2 values (Dimensions at origin: radius and +height). + +\image html cylinder2.png + +Example: + +\image html cylinders.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_cylinder "Primitives". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_edge.doc b/doc/salome/gui/GEOM/input/creating_edge.doc new file mode 100644 index 000000000..fb4cebff8 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_edge.doc @@ -0,0 +1,26 @@ +/*! + +\page create_edge_page Edge + +\n To create an \b Edge in the Main Menu select New Entity- > Build - > Edge + +\n You can create an \b Edge from two points (\b Point1 and \b Point2), being the first and the last vertices of the edge. + +The \b Result will be a \b 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. + +\image html neo-obj2.png + +\n Example: + +\image html edgesn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_edge "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_ellipse.doc b/doc/salome/gui/GEOM/input/creating_ellipse.doc new file mode 100644 index 000000000..78972181b --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_ellipse.doc @@ -0,0 +1,24 @@ +/*! + +\page create_ellipse_page Ellipse + +To create an \b Ellipse in the Main Menu select New Entity - > Basic - > Ellipse + +\n You can define an \b Ellipse by its Center Point, a \b +Vector giving its normal, and its Major & Minor Radiuses. +\n The \b Result of the operation will be a GEOM_Object (edge). + +\n TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, RadiusMinor) +\n Arguments: Name + 1 vertex (for the center) + 1 edge (for +the direction) + 1 X Radius + 1 Y Radius. + +\image html ellipse.png + +Example: + +\image html ellipsesn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_ellipse "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_explode.doc b/doc/salome/gui/GEOM/input/creating_explode.doc new file mode 100644 index 000000000..e22142872 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_explode.doc @@ -0,0 +1,43 @@ +/*! + +\page create_explode_page Explode + +\n To \b Explode an object into subshapes, in the Main Menu +select New Entity > Explode. + +\n To create a list of subshapes (vertices, edges, wires etc.) of the +given shape using the \b Explode operation, you need to define the Main +Object, which will be exploded and the Type of Subshapes you wish to +obtain from it. +\n The \b Result of the operation will be a List of \b GEOM_Objects +(edges, faces, solids or compsolids). + +\n Using TUI Commands you can perform this operation in a +variety of ways: +
    +
  • geompy.SubShapeAll(Shape, Type) explodes a Shape on +subshapes of a given Type and returns a List of sub-shapes.
  • +
  • geompy.SubShapeAllIDs(Shape, Type) explodes a Shape on +subshapes of a given Type and returns a List of IDs of +sub-shapes.
  • +
  • geompy.SubShapeAllSorted(Shape, Type) xplodes a shape on +subshapes of a given type and sorts them by coordinates of their +gravity centers, returning a list of sub-shapes.
  • +
  • geompy.SubShapeAllSortedIDs(Shape, Type) explodes a shape +on subshapes of a given type and sorts them by coordinates of their +gravity centers, returning a List of IDs of sub-shapes.
  • +
  • geompy.SubShape(Shape, Type, ListOfInd) allows to obtain +a compound of sub-shapes of the Shape, selected by they indices in a +list of all sub-shapes of the given Type. Each index is in the range +[1, Nb_Sub-Shapes_Of_Given_Type].
  • +
  • geompy.SubShapeSorted(Shape, Type, ListOfInd) allows to +obtain a compound of sub-shapes of the Shape, selected by they indices +in sorted list of all sub-shapes of the given Type. Each index is in +the range [1, Nb_Sub-Shapes_Of_Given_Type]
  • +
+ +\n Arguments:1 SHAPE + 1 type of SubShape. + +\image html neo-obj1.png + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_extrusion.doc b/doc/salome/gui/GEOM/input/creating_extrusion.doc new file mode 100644 index 000000000..355962d18 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_extrusion.doc @@ -0,0 +1,42 @@ +/*! + +\page create_extrusion_page Extrusion + +\n To generate an \b Extrusion on an object in the Main Menu +select New Entity - > Generation - > Extrusion + +\n There are 2 algorithms for creation of an \b Extrusion (Prism). +\n The \b Result of the operation will be a GEOM_Object (edge, face, +solid or compsolid). + +\n Firstly, you can define the Base Shape (a basis of the +extrusion), the \b Vector (a direction of the extrusion) and the \b +Height of extrusion. +\b TUI Command: geompy.MakePrismVecH(Base, Vector, Height) +\n Arguments: Name + 1 shape (vertex, edge, wire, face or +shell) serving as base object + 1 vector (for direction of the +extrusion) + 1 value (dimension). + +\image html extrusion1.png + +\n Secondly, you can define the \b Extrusion by the Base Shape +and the \b Start and End Point of the \b Vector (in this way +you don't need to create it in advance). +\n TUI Command: geompy.MakePrism(Base, Point1, Point2) +\n Arguments: Name + 1 shape (vertex, edge, wire, face or +shell) serving as base object + 2 vertices. + +\image html extrusion2.png + +Examples: + +\image html prisms_basessn.png +
Base Shape
+ +\image html prismssn.png +
Prisms
+ +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_prism "Complex Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_extrusion_alongpath.doc b/doc/salome/gui/GEOM/input/creating_extrusion_alongpath.doc new file mode 100644 index 000000000..1180d7d99 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_extrusion_alongpath.doc @@ -0,0 +1,30 @@ +/*! + +\page create_extrusion_alongpath_page Pipe Construction + +To generate a \b Pipe in the Main Menu select New Entity - > Generation - > Extrusion along a path + +\n To create an extruded \b 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. +\n The \b Result of the operation will be a GEOM_Object (edge, face, +solid or compsolid). + +\n TUI Command: geompy.MakePipe(baseShape, pathShape) +\n 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. + +\image html pipe.png + +Example: + +\image html pipe_wire_edgesn.png + +\image html pipesn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_pipe "Complex Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_face.doc b/doc/salome/gui/GEOM/input/creating_face.doc new file mode 100644 index 000000000..9b4ff9f8f --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_face.doc @@ -0,0 +1,36 @@ +/*! + +\page create_face_page Face + +To create a \b Face in the Main Menu select New Entity - > +Build - > Face + +\n To create a \b 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. +\n The \b Result will be a \b GEOM_Object (FACE). + +\n TUI Command: geompy.MakeFace(Wire, isPlanarWanted) +\n Arguments: Name + 1 wire. + +\image html neo-obj4.png + +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(). + +\n Example: + +\image html facesn1.png + +\image html facesn2.png + +\image html facesn3.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_face "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_filling.doc b/doc/salome/gui/GEOM/input/creating_filling.doc new file mode 100644 index 000000000..a79311382 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_filling.doc @@ -0,0 +1,28 @@ +/*! + +\page creaet_filling_page Filling Surface with Edges + +To generate a \b Filling in the Main Menu select New Entity - > Generation - > Filling + +\n To create a curving face using several edges you need to define the +Edges Compound, \b Minimum and Maximum Degree, \b +Tolerance for \b 2D and for \b 3D and the Number of Iterations. +\n The \b Result of the operation will be a GEOM_Object (face). + +\n TUI Command: geompy.MakeFilling(Shape, MinDegree, MaxDegree, Tol2D, Tol3D, NbIter) +\n Arguments: Name + 1 List of edges + 5 Parameters +(Min. degree, Max. degree, Number of iterations, 2D tolerance, 3D +tolerance). + +\image html filling.png + +Example: + +\image html filling_compoundsn.png + +\image html fillingsn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_filling "Complex Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_geom_objects.doc b/doc/salome/gui/GEOM/input/creating_geom_objects.doc new file mode 100644 index 000000000..bc66bed97 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_geom_objects.doc @@ -0,0 +1,49 @@ +/*! + +\page create_geom_obj_page Creating geometrical objects + +
    +
  • \subpage create_basic_geom_obj_page
  • +
      +
    • \ref create_point_page
    • +
    • \ref create_line_page
    • +
    • \ref create_circle_page
    • +
    • \ref create_ellipse_page
    • +
    • \ref create_arc_page
    • +
    • \ref create_curve_page
    • +
    • \ref create_vector_page
    • +
    • \ref create_plane_page
    • +
    • \ref create_wplane_page
    • +
    • \ref create_lcs_page
    • +
    +
  • \subpage create_primitives_page
  • +
      +
    • \ref create_box_page
    • +
    • \ref create_cylinder_page
    • +
    • \ref create_sphere_page
    • +
    • \ref create_torus_page
    • +
    • \ref create_cone_page
    • +
    +
  • \subpage create_complex_obj_page
  • +
      +
    • \ref create_extrusion_page
    • +
    • \ref create_revolution_page
    • +
    • \ref creaet_filling_page
    • +
    • \ref create_extrusion_alongpath_page
    • +
    +
  • \subpage work_with_groups_page
  • +
  • \subpage build_by_blocks_page
  • +
  • \subpage create_sketcher_page
  • +
  • \subpage create_adv_obj_page
  • +
      +
    • \ref create_explode_page
    • +
    • \ref create_edge_page
    • +
    • \ref create_wire_page
    • +
    • \ref create_face_page
    • +
    • \ref create_shell_page
    • +
    • \ref create_solid_page
    • +
    • \ref create_compound_page
    • +
    +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_lcs.doc b/doc/salome/gui/GEOM/input/creating_lcs.doc new file mode 100644 index 000000000..106effc00 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_lcs.doc @@ -0,0 +1,40 @@ +/*! + +\page create_lcs_page Local Coordinate System + +To create a Local Coordinate System in the Main Menu select New Entity - > Basic - > Local Coordinate System +\n There are three algorithms to choose from. + +\n 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. +\n 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. +\n Arguments: Name + Coordinates of origin, X axis direction, Y axis direction. + +\image html neo-localcs1.png + +\n Secondly, you can simply select any object in the object browser or +3D viewer, in this case the coordinates of origin and axes direction +of the LCS are calculated automatically basing on the selected object. +\n Arguments: Name + reference object. + +\image html neo-localcs2.png + +\n The last algorithm of LCS construction allows to define the +coordinates of origin by a point and axes directions by a line or a +vector. +\n Arguments: Name + 1 point of origin + X axis direction, Y +axis direction. + +\image html neo-localcs3.png + +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: + +\image html image145.jpg + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_line.doc b/doc/salome/gui/GEOM/input/creating_line.doc new file mode 100644 index 000000000..befde32ed --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_line.doc @@ -0,0 +1,30 @@ +/*! + +\page create_line_page Line + +To create a \b Line in the Main Menu select New Entity - >Basic - > Line + +\n To create a \b Line you should define \b Point1 and \b Point2, +which are the points through which the \b Line passes. +\n The \b Result of the operation will be a GEOM_Object (edge). + +\n TUI Command: geompy.MakeLineTwoPnt(Point1, Point2) +\n Arguments: Name + 2 vertices. + +\image html line.png + +Example: + +\image html lines.png + +\b NB! There is another way to create a line, which is currently +accessible only via \b TUI commands. + +You can define a line passing through the given \b Point and parallel +to the given \b Vector. +\n TUI Command: geompy.MakeLine(Point, Vector) + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_line "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_plane.doc b/doc/salome/gui/GEOM/input/creating_plane.doc new file mode 100644 index 000000000..b880c26af --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_plane.doc @@ -0,0 +1,48 @@ +/*! + +\page create_plane_page Plane + +To create a \b Plane in the Main Menu select New Entity - > +Basic - > Plane + +\n There are three algorithms to create a plane in the 3D space. +\n The \b Result of each operation will be a GEOM_Object (face). + +\n Firstly, you can define a \b Plane by a \b Point through which the +plane passes, a \b Vector giving a normal of the plane and a Size +of the Plane (size of a side of quadrangle face, representing the +plane). +\n TUI Command: geompy.MakePlane(Point, Vector, TrimSize) +\n Arguments: Name + 1 vertex + 1 vector + 1 value (to define +the size of the plane). + +\image html plane1.png + +\n Secondly, you can define a \b Plane by three \b Points through +which the plane passes and a Size of the Plane. +\n TUI Command: geompy.MakePlaneThreePnt(Point1, Point2, Point3, TrimSize) +\n Arguments: Name + 3 vertices + 1 value (to define the size +of the plane). + +\image html plane2.png + +\n Finally, you can define a \b Plane by another \b Plane or Local +Coordinate System and a Size of the Plane. +\n TUI Command: geompy.MakePlaneFace(Face, TrimSize) +\n Arguments: Name + 1 face + 1 value (to define the size of +the plane). + +\image html plane3.png + +Examples: + +\image html planes1.png +
Planes
+ +\image html plane_on_face.png +
A Plane created on a Plane of another size
+ +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_plane "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_point.doc b/doc/salome/gui/GEOM/input/creating_point.doc new file mode 100644 index 000000000..91573bf8f --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_point.doc @@ -0,0 +1,44 @@ +/*! + +\page create_point_page Point + +To create a \b Point in the Main Menu select New Entity - > +Basic - > Point + +\n There are three algorithms to create a \b Point in the 3D space. +\n Each time the \b Result of the operation will be a GEOM_Object +(vertex). + +\n Firstly, we can define a point by setting its X, Y and Z \b Coordinates. +\n TUI Command: geompy.MakeVertex(X, Y, Z) +\n \b Arguments: Name (Vertex_n by default) + X, Y and Z coordinates of +the point. + +\image html point1.png + +\n Secondly, we can define a point by a \b Reference to another point +and the shift of the coordinates of the new point regarding the +coordinates of the old one. +\n TUI Command: geompy.MakeVertexWithRef(Reference, X,Y,Z). +\n Arguments: Name + 1 reference point + 3 coordinates defining +the position of this point regarding the reference one. + +\image html neo-point2.png + +\n Finally, we can define a point by an \b Edge and a \b Parameter +indicating its position on the Edge. For example, 0.5 means that the +point is located in the middle of the edge. +\n TUI Command: geompy.MakeVertexOnCurve(Edge,Parameter). +\n Arguments: Name + 1 edge + 1 Parameter defining the +position of the point on the given edge. + +\image html point3.png + +Example: + +\image html points.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_point "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_primitives.doc b/doc/salome/gui/GEOM/input/creating_primitives.doc new file mode 100644 index 000000000..d13a5ee18 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_primitives.doc @@ -0,0 +1,13 @@ +/*! + +\page create_primitives_page Creating Primitives + +
    +
  • \subpage create_box_page
  • +
  • \subpage create_cylinder_page
  • +
  • \subpage create_sphere_page
  • +
  • \subpage create_torus_page
  • +
  • \subpage create_cone_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_revolution.doc b/doc/salome/gui/GEOM/input/creating_revolution.doc new file mode 100644 index 000000000..c8d65e149 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_revolution.doc @@ -0,0 +1,26 @@ +/*! + +\page create_revolution_page Revolution + +To create an extruded shape by \b Revolution in the Main Menu +select New Entity - > Generation - > Revolution + +\n To create an extruded shape by \b Revolution you need to define the +source \b Object to rotate, the \b Axis of revolution and the \b Angle by which +the \b Shape has to be rotated around the \b Axis (in degrees). +\n The \b Result of the operation will be a GEOM_Object (edge, face, +solid or compsolid). + +\n TUI Command: geompy.MakeRevolution(Shape, Axis, Angle). +\n Arguments: Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + 1 vector (for direction) + 1 value (angle). + +\image html revolution.png + +Example: + +\image html revolutionsn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_revolution "Complex Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_shell.doc b/doc/salome/gui/GEOM/input/creating_shell.doc new file mode 100644 index 000000000..7c87d3d22 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_shell.doc @@ -0,0 +1,23 @@ +/*! + +\page create_shell_page Shell + +To create a \b Shell in the Main Menu select New Entity - > +Build - > Shell + +\n You can create a \b Shell from a list of faces and (or) shells. +\n The \b Result will be a \b GEOM_Object (shell). + +\n TUI Command: geompy.MakeShell(ListOfShape) +\n Arguments: Name + List of faces having connected edges. + +\image html neo-obj5.png + +\n Example: + +\image html shellsn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_shell "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_sketcher.doc b/doc/salome/gui/GEOM/input/creating_sketcher.doc new file mode 100644 index 000000000..d606fe7d7 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_sketcher.doc @@ -0,0 +1,69 @@ +/*! + +\page create_sketcher_page 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. + +\n 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). + +\n This functionality is available from the main menu via New +Entity / Sketch. + +\n The Result of the operation will be a \b GEOM_Object. + +\n TUI Command: geompy.MakeSketcher(Command, WorkingPlane) +\n 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. +\n \em Command is a string, defining the sketcher by the coordinates of +points in the local working plane. +\n 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). + +\n Arguments: +
    +
  1. Element type (segment or arc).
  2. +
  3. Destination type (point or direction).
  4. +
  5. Destination point by means of:
  6. +
      +
    • absolute coordinates X,Y;
    • +
    • relative coordinates DX, DY (with respect to the current point);
    • +
    • selection of an existing point.
    • +
    +
  7. Destination direction by means of:
  8. +
      +
    • angle between the new segment and the previous one;
    • +
    • perpendicular to the previous segment (same as previous, but angle +is predefined and is equal to 90 degrees);
    • +
    • tangent to the previous segment;
    • +
    • vector components DX, DY.
    • +
    +
  9. Parameters of an element (for segment : length or target X or Y coordinate value, for arc : radius and angle).
  10. +
+ +\n Dialog Box: + +\image html neo-scetcher1.png + +\image html neo-scetcher2.png + +\n Example: + +\image html image204.jpg + +\image html image206.jpg + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_sketcher_page "Sketcher". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_solid.doc b/doc/salome/gui/GEOM/input/creating_solid.doc new file mode 100644 index 000000000..167f0368c --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_solid.doc @@ -0,0 +1,25 @@ +/*! + +\page create_solid_page Solid + +\n To create a \b Solid in the Main Menu select New Entity - > Build - > +Solid. + +You can create a \b Solid from a list of shells. + +The \b Result will be a \b GEOM_Object (SOLID). + +\n TUI Command: geompy.MakeSolid(ListOfShape), where +ListOfShape is a list of shells from which the solid is constructed. +\n Arguments: Name + A closed shell or a list of shells. + +\image html neo-obj6.png + +\n Example: + +\image html solidsn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_solid "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_sphere.doc b/doc/salome/gui/GEOM/input/creating_sphere.doc new file mode 100644 index 000000000..c4437cadc --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_sphere.doc @@ -0,0 +1,36 @@ +/*! + +\page create_sphere_page Sphere + +\n To create a \b Sphere in the Main Menu select New Entity - > Primitives - > Sphere + +\n There are two algorithms for creation of a \b Sphere. +\n The \b Result of each operation will be a GEOM_Object (SOLID). + +\n Firstly, you can define a \b Sphere by the Center Point and the \b Radius. +\n TUI Command: geompy.MakeSphere(Point, Radius) +\n Arguments: Name + 1 vertex + 1 value (Radius). + +\image html sphere1.png + +\n Secondly, you can define a \b Sphere with the center at the origin of +coordinate system by the \b Radius. +\n TUI Command: geompy. MakeSphereR(Radius) +\n Arguments: Name + 1 value (Radius from the origin). + +\image html sphere2.png + +\n NB! The is another way to create a\b Sphere, which is +currently accessible only via \b TUI commands. +\n You can define the \b Sphere by the coordinates of the Center +Point and its \b Radius (in this way you don't need to create it in advance). +\n TUI Command: geompy.MakeSphere(X, Y, Z, Radius) + +Example: + +\image html spheres.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_sphere "Primitives". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_torus.doc b/doc/salome/gui/GEOM/input/creating_torus.doc new file mode 100644 index 000000000..dd8b63412 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_torus.doc @@ -0,0 +1,32 @@ +/*! + +\page create_torus_page Torus + +To create a \b Torus in the Main Menu select New Entity - > Primitives - > Torus + +\n There are two algorithms for creation of a \b Torus. +\n The \b Result of each operation will be a GEOM_Object (SOLID). + +\n Firstly, you can define a \b Torus by the given Base Point, +the normal \b Vector and the Major and Minor \b Radiuses. +\n TUI Command: geompy.MakeTorus(Point, Vector, RadiusMajor, RadiusMinor) +\n Arguments: Name + 1 vertex + 1 vector (for direction) + 2 +values (1 & 2 Radius). + +\image html torus1.png + +\n Secondly, you can define a \b Torus with the center at the origin +of coordinates by its Major and Minor \b Radiuses. +\n TUI Command: geompy.MakeTorusRR(RadiusMajor, RadiusMinor) +\n Arguments: Name + 2 values (1 & 2 Radius from the origin). + +\image html torus2.png + +Example: + +\image html toruses.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_torus "Primitives". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_vector.doc b/doc/salome/gui/GEOM/input/creating_vector.doc new file mode 100644 index 000000000..0a914bea1 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_vector.doc @@ -0,0 +1,31 @@ +/*! + +\page create_vector_page Vector + +To create a \b Vector in the Main Menu select New Entity - > +Basic - > Vector + +\n There are 2 algorithms to create a \b Vector in the 3D space. +\n The \b Result of each operation will be a GEOM_Object (edge). + +\n Firstly, you can define a Vector by its \b Start and End Points. +\n TUI Command: geompy.MakeVector(Point1, Point2) +\n Arguments: Name + 2 vertices. + +\image html vector1.png + +\n Secondly, you can define a \b Vector starting in the Origin of +coordinates by its End Point. +\n TUI Command: geompy.MakeVectorDXDYDZ(DX, DY, DZ) +\n Arguments: Name + 3 values + +\image html vector2.png + +Example: + +\image html image34.gif + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_vector "Basic Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_wire.doc b/doc/salome/gui/GEOM/input/creating_wire.doc new file mode 100644 index 000000000..34a24b0e2 --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_wire.doc @@ -0,0 +1,27 @@ +/*! + +\page create_wire_page Wire + +\n To create a \b Wire in the Main Menu select New Entity - > Build - > Wire + +\n You can create a \b Wire from several connected edges and wires by +selecting them in the object browser or in the viewer holding Shift +button. +\n The \b Result will be a \b GEOM_Object (WIRE). + +\n TUI Command: geompy.MakeWire(ListOfShape) + +Arguments: Name + List of connected wires or edges. + +\n Dialog Box: + +\image html neo-obj3.png + +\n Example: + +\image html wiresn.png + +Our TUI Scripts provide you with useful examples of creation of +\ref tui_creation_wire "Advanced Geometric Objects". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/creating_wplane.doc b/doc/salome/gui/GEOM/input/creating_wplane.doc new file mode 100644 index 000000000..82dd1f4ec --- /dev/null +++ b/doc/salome/gui/GEOM/input/creating_wplane.doc @@ -0,0 +1,40 @@ +/*! + +\page create_wplane_page Working Plane + +Definition of a Working Plane is necessary for work with +\ref create_sketcher_page "Sketcher". + +\n To create a Working Plane in the Main Menu select +New Entity - > Basic - > Working Plane + +\n There is a number of algorithms to set the Working Plane and the +Camera Position. + +\n Firstly, you can select a \b Plane, a Planar Face or a Local Coordinate System to be your Working Plane. +\n Arguments: Name + 1 selection (face or planar face). + +\image html workplane4.png + +\n Secondly, you can define a Working Plane by two Vectors. +\n Arguments: Name + 2 vectors. + +\image html workplane5.png + +\n Finally, you can select one of three basic projections of XYZ +coordinate system to be your Working Plane. + +\image html workplane6.png + +Reverse the plane normal checkbox allows changing the direction +of the working plane. + +Example: Working plane on the upper face of a box. + +\image html image36.gif +
Normal Direction
+ +\image html image47.gif +
Reversed Direction
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/cut_operation.doc b/doc/salome/gui/GEOM/input/cut_operation.doc new file mode 100644 index 000000000..1f94031f7 --- /dev/null +++ b/doc/salome/gui/GEOM/input/cut_operation.doc @@ -0,0 +1,24 @@ +/*! + +\page cut_operation_page Cut + +\n To produce a \b Cut operation in the Main Menu select Operations - > Boolean - > Cut + +\n This operation cuts a shape with another one. +\n The \b Result will be a \b GEOM_Object (COMPOUND). +\n Arguments: Name + 2 shapes. + +\n Dialog Box: + +\image html bool3.png + +\n Example: + +\image html fusesn1.png + +\image html cutsn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_cut "Boolean Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/display_mode.doc b/doc/salome/gui/GEOM/input/display_mode.doc new file mode 100644 index 000000000..8fe2d92f4 --- /dev/null +++ b/doc/salome/gui/GEOM/input/display_mode.doc @@ -0,0 +1,26 @@ +/*! + +\page display_mode_page Display Mode + +\n This option is relevant for viewing 3D objects. Wireframe mode means +that you can see only edges of the object, while its shells remain +transparent. Shading mode means that the shells are filled with color. + +\n To change the display mode right-click on this geometrical object +in the viewer and from the pop-up menu select Display mode --> +Wireframe or Shading. + +\n TUI Command: gg.setDisplayMode(ID, Short) + +\n Examples: + +\image html disp_mode1sn.png +
Wireframe
+ +\image html /disp_mode2sn.png +
Shading
+ +Our TUI Scripts provide you with useful examples of +\ref tui_change_disp_mode "Changing Display Parameters". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/explode_on_blocks_operation.doc b/doc/salome/gui/GEOM/input/explode_on_blocks_operation.doc new file mode 100644 index 000000000..635f70561 --- /dev/null +++ b/doc/salome/gui/GEOM/input/explode_on_blocks_operation.doc @@ -0,0 +1,32 @@ +/*! + +\page explode_on_blocks_operation_page Explode on Blocks + +\n To produce an Explode on Blocks operation in the Main +Menu select Operations - > Blocks - > Explode on Blocks. + +\n 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. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.MakeBlockExplode(Compound, +MinNbFaces, MaxNbFaces), where \em Compound is a compound to be +exploded into the blocks, \em MinNbFaces, \em MaxNbFaces are correspondingly +the minimal and the maximal number of faces of the resulting blocks. +\n Arguments: 1 compound + 2 integers (min. and max. number of +faces in the block to be extracted). + +\image html mtransf3.png + +\n Example: + +\image html block_explodesn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_explode_on_blocks "Blocks Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/fillet_operation.doc b/doc/salome/gui/GEOM/input/fillet_operation.doc new file mode 100644 index 000000000..c0f15aa0d --- /dev/null +++ b/doc/salome/gui/GEOM/input/fillet_operation.doc @@ -0,0 +1,45 @@ +/*! + +\page fillet_operation_page Fillet + +\n To produce a \b Fillet in the Main Menu select +Operations - > Transformation - > Fillet + +\n This operation creates fillets on the edges of a shape. +\n The \b Result will be a \b GEOM_Object. + +\n To create fillets on all edges of the given shape, you need to +define the Main Object to create a fillet on and the \b Radius of the +Fillet. +\n TUI Command: geompy.MakeFilletAll(Shape, R) +\n Arguments: Name + 1 shape + 1 value (fillet radius). + +\image html fillet1.png + +\n 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 \b Radius of the Fillet. +\n TUI Command: geompy.MakeFillet(Shape, R, ShapeType, ListShapes) +\n Arguments: Name + 1 shape + 1 Selection of edges (or faces) ++ 1 value (Fillet radius). + +\image html fillet2.png + +\image html fillet3.png + +\n Examples: + +\image html fillet_all.png +
Fillet on all
+ +\image html fillet_edge.png +
Fillet on an edge
+ +\image html fillet_prism.png +
Fillet on a Face
+ +Our TUI Scripts provide you with useful examples of the use of +\ref tui_fillet "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/fuse_operation.doc b/doc/salome/gui/GEOM/input/fuse_operation.doc new file mode 100644 index 000000000..073a23025 --- /dev/null +++ b/doc/salome/gui/GEOM/input/fuse_operation.doc @@ -0,0 +1,25 @@ +/*! + +\page fuse_operation_page Fuse + +\n To produce a \b Fuse operation in the Main Menu select +Operations - > Boolean - > Fuse + +\n This operation creates a shape from two shapes. + +\n The \b Result will be a \b GEOM_Object (COMPOUND). +\n Arguments: Name + 2 shapes. +\n TUI Command: geompy.MakeFuse(s1, s2) + +\image html bool1.png + +\n Example: + +\image html fusesn1.png + +\image html fusesn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_fuse "Boolean Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/geompy.doc b/doc/salome/gui/GEOM/input/geompy.doc new file mode 100644 index 000000000..cde054cb5 --- /dev/null +++ b/doc/salome/gui/GEOM/input/geompy.doc @@ -0,0 +1,7 @@ +/*! + +\page geompy_page Python Interface geompy.py + +\n Please, see \ref geompyDC::geompyDC "documentation for geompy.py" + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/glue_faces_operation.doc b/doc/salome/gui/GEOM/input/glue_faces_operation.doc new file mode 100644 index 000000000..26aa71116 --- /dev/null +++ b/doc/salome/gui/GEOM/input/glue_faces_operation.doc @@ -0,0 +1,48 @@ +/*! + +\page glue_faces_operation_page Glue Faces + +\n To Glue Faces in the Main Menu select Repair - > Glue Faces. + +\n This operation glues faces that are coincident with respect to the +given tolerance value. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.MakeGlueFaces(theShape, +theTolerance), where \em theShape is a compound of shapes to be +glued, \em theTolerance is a maximum distance between two faces, which can +be considered as coincident. +\n Arguments: Name + 1 Compound + Tolerance value. + +\image html glue1.png + +\n It is also possible to manually select the faces that will be +glued - select the shape, specify the tolerance and press \b Detect button. + +\image html glue2.png + +\n \b Geometry module detects the faces where gluing can be performed and +displays a notification. + +\image html glue3.png + +\n The faces that can be glued are colored in red. It is possible to +select the faces for gluing in the 3D viewer. The selected faces will +be marked in white. + +\n Example: + +\image html glue_faces1.png +
Object that needs gluing
+ +\image html glue_faces2.png +
Glued object
+ +\image html glue_faces3.png +
Manual selection of faces for gluing
+ +Our TUI Scripts provide you with useful examples of the use of +\ref tui_glue_faces "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/import_export.doc b/doc/salome/gui/GEOM/input/import_export.doc new file mode 100644 index 000000000..8a5219ebe --- /dev/null +++ b/doc/salome/gui/GEOM/input/import_export.doc @@ -0,0 +1,39 @@ +/*! + +\page import_export_geom_obj_page Importing/exporting geometrical objects + +In Geometry module you can import and export geometrical objects +from/into BREP, IGES, STEP files. The mechanisms of import and export +are implemented via plug-ins, which gives you the opportunity to +expand the range of available formats by adding more plug-ins (for +example, CATIA 5). + +To import geometrical objects from a BREP, IGES, STEP file: + +\par +From the \b File menu choose \b Import. In the opening dialog box \b Import +select the required format of the file for importation and search for +a *.brep, *.iges or *.step file. + +\image html geomimport.png + +\par +Select the required file and click \b Open. Your file will be imported in +the module and its contents (geometrical object) will be displayed in +the Object Browser. + +\n To export geometrical objects into a BREP, IGES, STEP +file: + +\par +Select the object you wish to export, then from the \b File menu choose +\b Export. In the opening dialog box \b Export define the required format, +the name and the location of the file for exportation. + +\image html geomexport.png + +\par +Click \b Save to confirm your exportation. + +*/ + diff --git a/doc/salome/gui/GEOM/input/index.doc b/doc/salome/gui/GEOM/input/index.doc new file mode 100644 index 000000000..bf0f67956 --- /dev/null +++ b/doc/salome/gui/GEOM/input/index.doc @@ -0,0 +1,136 @@ +/*! + +\mainpage Geometry Module Reference Documentation + +
    +
  • \subpage introduction_page
  • +
  • \subpage import_export_geom_obj_page
  • +
  • \subpage create_geom_obj_page
  • +
      +
    • \ref create_basic_geom_obj_page
    • +
        +
      • \ref create_point_page
      • +
      • \ref create_line_page
      • +
      • \ref create_circle_page
      • +
      • \ref create_ellipse_page
      • +
      • \ref create_arc_page
      • +
      • \ref create_curve_page
      • +
      • \ref create_vector_page
      • +
      • \ref create_plane_page
      • +
      • \ref create_wplane_page
      • +
      • \ref create_lcs_page
      • +
      +
    • \ref create_primitives_page
    • +
        +
      • \ref create_box_page
      • +
      • \ref create_cylinder_page
      • +
      • \ref create_sphere_page
      • +
      • \ref create_torus_page
      • +
      • \ref create_cone_page
      • +
      +
    • \ref create_complex_obj_page
    • +
        +
      • \ref create_extrusion_page
      • +
      • \ref create_revolution_page
      • +
      • \ref creaet_filling_page
      • +
      • \ref create_extrusion_alongpath_page
      • +
      +
    • \ref work_with_groups_page
    • +
    • \ref build_by_blocks_page
    • +
    • \ref create_sketcher_page
    • +
    • \ref create_adv_obj_page
    • +
        +
      • \ref create_explode_page
      • +
      • \ref create_edge_page
      • +
      • \ref create_wire_page
      • +
      • \ref create_face_page
      • +
      • \ref create_shell_page
      • +
      • \ref create_solid_page
      • +
      • \ref create_compound_page
      • +
      +
    +
  • \subpage view_geom_obj_chapter_page
  • +
      +
    • \ref view_geom_obj_page
    • +
    • \ref display_mode_page
    • +
    • \ref color_page
    • +
    • \ref transparency_page
    • +
    • \ref isolines_page
    • +
    +
  • \subpage transform_geom_obj_page
  • +
      +
    • \ref basic_operations_page
    • +
        +
      • \ref partition_page
      • +
      • \ref archimede_page
      • +
      +
    • \ref boolean_operations_page
    • +
        +
      • \ref using_boolean_operations_page
      • +
      • \ref fuse_operation_page
      • +
      • \ref common_operation_page
      • +
      • \ref cut_operation_page
      • +
      • \ref section_opeartion_page
      • +
      +
    • \ref transformation_operations_page
    • +
        +
      • \ref translation_operation_page
      • +
      • \ref rotation_operation_page
      • +
      • \ref modify_location_operation_page
      • +
      • \ref mirror_operation_page
      • +
      • \ref scale_operation_page
      • +
      • \ref offset_operation_page
      • +
      • \ref multi_translation_operation_page
      • +
      • \ref multi_rotation_operation_page
      • +
      • \ref fillet_operation_page
      • +
      • \ref chamfer_operation_page
      • +
      +
    • \ref blocks_operations_page
    • +
        +
      • \ref multi_transformation_operation_page
      • +
      • \ref explode_on_blocks_operation_page
      • +
      • \ref propagate_operation_page
      • +
      +
    • \ref repairing_operations_page
    • +
        +
      • \ref shape_processing_operation_page
      • +
      • \ref suppress_faces_operation_page
      • +
      • \ref close_contour_operation_page
      • +
      • \ref suppress_internal_wires_operation_page
      • +
      • \ref suppress_holes_operation_page
      • +
      • \ref sewing_operation_page
      • +
      • \ref glue_faces_operation_page
      • +
      • \ref add_point_on_edge_operation_page
      • +
      • \ref check_free_boundaries_operation_page
      • +
      • \ref check_free_faces_operation_page
      • +
      • \ref change_orientation_operation_page
      • +
      +
    +
  • \subpage using_measurement_tools_page
  • +
  • \subpage geompy_page
  • +
  • \subpage tui_scripts_page
  • +
      +
    • \ref tui_viewing_geom_objs_page
    • +
    • \ref tui_creating_geom_objs_page
    • +
        +
      • \ref tui_basic_geom_objs_page
      • +
      • \ref tui_primitives_page
      • +
      • \ref tui_complex_objs_page
      • +
      • \ref tui_working_with_groups_page
      • +
      • \ref tui_building_by_blocks_page
      • +
      • \ref tui_sketcher_page
      • +
      • \ref tui_advanced_geom_objs_page
      • +
      +
    • \ref tui_transformation_page
    • +
        +
      • \ref tui_basic_operations_page
      • +
      • \ref tui_boolean_operations_page
      • +
      • \ref tui_transformation_operations_page
      • +
      • \ref tui_blocks_operations_page
      • +
      • \ref tui_repairing_operations_page
      • +
      +
    • \ref tui_measurement_tools_page
    • +
    +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/introduction.doc b/doc/salome/gui/GEOM/input/introduction.doc new file mode 100644 index 000000000..e1005c6d0 --- /dev/null +++ b/doc/salome/gui/GEOM/input/introduction.doc @@ -0,0 +1,26 @@ +/*! + +\page introduction_page Introduction to Geometry + +\b Geometry module of SALOME is destined for: +
    +
  • Import and export of geometrical models in IGES, BREP and STEP formats.
  • +
  • Construction and optimization of geometrical models using a wide +range of CAD functions:
  • +
      +
    • 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
    • +
    +
+ +\image html image3.jpg + + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/isolines.doc b/doc/salome/gui/GEOM/input/isolines.doc new file mode 100644 index 000000000..10862f046 --- /dev/null +++ b/doc/salome/gui/GEOM/input/isolines.doc @@ -0,0 +1,17 @@ +/*! + +\page isolines_page Isolines + +\n In this menu you can change the number of isolines displayed within +a shape. +\n Arguments:2 values (number of isolines). + +\image html neo-isos.png + +\n Example: + +\image html colorsn.png + +\image html isos_u12_v12sn.png + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/mirror_operation.doc b/doc/salome/gui/GEOM/input/mirror_operation.doc new file mode 100644 index 000000000..e321c978a --- /dev/null +++ b/doc/salome/gui/GEOM/input/mirror_operation.doc @@ -0,0 +1,48 @@ +/*! + +\page mirror_operation_page Mirror Image + +\n To produce a Mirror Image in the Main Menu select +Operations - > Transformation - > Mirror Image + +\n This operation creates a symmetrical copy of an \b Object, which +can be mirrored in three different ways. +\n Create a copy checkbox allows to keep the initial object, +otherwise it will be removed. +\n The \b Result will be a \b GEOM_Object. + +\n Firstly an \b Object can be mirrored through a \b Point of symmetry +\n TUI Command: geompy.MakeMirrorByPoint(Object, Point) +\n Arguments: Name + 1 shape + 1 vertex. + +\image html transformation7.png + +\image html mirror_pointsn1.png + +\image html mirror_pointsn2.png + +\n Secondly an \b Object can be mirrored through an \b Axis of +symmetry +\n TUI Command: geompy.MakeMirrorByAxis(Object, Axis) +\n Arguments: Name + 1 shape + 1 vector. + +\image html transformation8.png + +\image html mirror_axissn1.png + +\image html mirror_axissn2.png + +\n Finally an \b Object can be mirrored through a \b Plane of symmetry +\n TUI Command: geompy.MakeMirrorByPlane(Shape, Plane) +\n Arguments: Name + 1 shape + 1 plane + +\image html transformation9.png + +\image html mirror_planesn1.png + +\image html mirror_planesn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_mirror "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/modify_location_operation.doc b/doc/salome/gui/GEOM/input/modify_location_operation.doc new file mode 100644 index 000000000..58432a3fa --- /dev/null +++ b/doc/salome/gui/GEOM/input/modify_location_operation.doc @@ -0,0 +1,61 @@ +/*! + +\page modify_location_operation_page Modify the Location + +\n To Modify the Location in the Main Menu select +Operations - > Transformation - > Modify the Location. + +\n This operation modifies the \b Location of an \b Object. + +\n The first algorithm places the object so that its center coincides +with the center of an End Local Coordinate System. +\n Create a copy checkbox allows to keep the initial object, otherwise it +will be removed. +\n Arguments: Name + 1 Object + End Coordinate System. + +\image html transformation5.png + +\n 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 . + +\image html image30.gif + +\n 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. +\n Create a copy checkbox allows to keep the initial object, +otherwise it will be removed. +\n Arguments: Name + 1 Object + Start Coordinate System + End +Coordinate System. + +\image html transformation6.png + +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) + +\image html image1.gif + +Selecting Start LCS = LCS1 and End LCS = LCS2, we obtain the +translated cube at the position (100;0;0) + +\image html image2.gif + +Selecting Start LCS = LCS2 and End LCS = LCS1, we obtain the +translated cube at the position (-100;0;0) + +\image html image4.gif + +\n TUI Command: geompy.MakePosition(theObject, theStartLCS, +theEndLCS), where \em theObject is a shape, location of which is +modified, \em theStartLCS is a location to move the shape from, \em +theEndLCS is a location to move the shape to. + +\n Our TUI Scripts provide you with useful examples of the use +of \ref tui_modify_location "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/multi_rotation_operation.doc b/doc/salome/gui/GEOM/input/multi_rotation_operation.doc new file mode 100644 index 000000000..6e3f177fc --- /dev/null +++ b/doc/salome/gui/GEOM/input/multi_rotation_operation.doc @@ -0,0 +1,54 @@ +/*! + +\page multi_rotation_operation_page Multi Rotation + +\n To produce a Multi Rotation in the Main Menu select +Operations - > Transformation - > Multi Rotation + +\n This operation creates several geometrical objects rotated in one +or two dimensions basing on the initial geometrical object. +\n The \b Result will be one or several \b GEOM_Objects (compound). + +\n To produce a Simple Multi Rotation (in one dimension) you +need to define a \b Shape to be rotated, an \b Axis of rotation and a +Number of Times the shape must be rotated. Rotation Angle will +be 2*PI/NbTimes +\n TUI Command: geompy.MultiRotate1D(Shape, Axis, NbTimes) +\n Arguments: Name + 1 shape + 1 vector for direction + 1 value +(repetition). + +\b 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. + +\image html neo-mrot1.png + +\image html multi_rotation1d1.png + +\image html multi_rotation1d2.png + +\n Double Multi Rotation (in two dimensions) rotates the given +\b Object around the given \b Axis on the given \b 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. +\b Reverse checkbox allows to set the direction of rotation. +\n TUI Command: geompy.MultiRotate2D(Shape, Axis, Angle, NbTimes1, Step, NbTimes2) +\n 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. + +\image html neo-mrot2.png + +\image html multi_rotation2d1.png + +\image html multi_rotation2d2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_multi_rotation "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/multi_transformation_operation.doc b/doc/salome/gui/GEOM/input/multi_transformation_operation.doc new file mode 100644 index 000000000..2bb30e7f7 --- /dev/null +++ b/doc/salome/gui/GEOM/input/multi_transformation_operation.doc @@ -0,0 +1,46 @@ +/*! + +\page multi_transformation_operation_page Block Multi Transformation + +\n To produce a Multi Transformation operation in the Main +Menu select Operations - > Blocks - > Multi Transformation + +\n This operation makes several translations of a block (solid) in one +or two directions depending on the arguments specified by the user. +\n The \b Result in both cases will be a \b GEOM_Object. + +

Simple Multi Transformation (in one direction)

+ +\n TUI Command: geompy. MakeMultiTransformation1D(Block, +DirFaceID1, DirFaceID2, NbTimes), where \em Block is a block to be +transformed, \em DirFaceID1 is an ID of the face which defines the first +direction of transformation, \em DirFaceID2 is an ID of the face which +defines the second direction of transformation, \em NbTimes is a number of +transformations. +\n Arguments: Name + 1 hexahedral solid + 1 or 2 faces + 1 +integer (number of blocks). + +\image html mtransf1.png + +\image html multi_transformationsn1d.png + +

Double Multi Transformation (in two directions)

+ +\n TUI Command: geompy. MakeMultiTransformation2D(Block, +DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, DirFaceID2V, +NbTimesV), where \em Block is a block to be transformed, \em DirFaceID1U +and \em DirFaceID2U are IDs of the faces, which define directions of the +first transformation, \em DirFaceID1V and \em DirFaceID2V are ID's of the +faces which define directions of the second transformation, \em NbTimesU +and \em NbTimesV are numbers of transformations. +\n Arguments: Name + 1 hexahedral solid + 2, 3 or 4 faces + 2 +integers (number of blocks). + +\image html mtransf2.png + +\image html multi_transformationsn2d.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_multi_transformation "Blocks Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/multi_translation_operation.doc b/doc/salome/gui/GEOM/input/multi_translation_operation.doc new file mode 100644 index 000000000..58d5ab1e2 --- /dev/null +++ b/doc/salome/gui/GEOM/input/multi_translation_operation.doc @@ -0,0 +1,51 @@ +/*! + +\page multi_translation_operation_page Multi Translation + +\n To produce a Multi Translation in the Main Menu +select Operations - > Transformation - > Multi Translation + +\n This operation makes several translations of a shape in \b one or \b +two directions. +\n The \b Result will be one or several \b GEOM_Objects (compound). + +\n To produce a Simple Multi Translation (in one direction) you +need to indicate a \b Shape to be translated, a \b Vector of +translation, a \b Step of translation and a Number of Times the +shape must be moved. +\n TUI Command: geompy.MakeMultiTranslation1D(Shape, Dir, +Step, NbTimes) +\n Arguments: Name + 1 shape + 1 vector (for direction) + 1 +step value + 1 value (repetition). + +\image html mtrans1.png + +\image html multi_translation_initialsn.png + +\image html multi_translation1dsn.png + +\n To produce a Double Multi Translation (in two directions) you need to +indicate a \b Shape to be translated and a \b Vector of translation, a +\b Step of translation and a Number of Times the shape must be moved along +each axis. + +\n TUI Command: geompy.MakeMultiTranslation2D(Shape, Dir1, +Step1, NbTimes1, Dir2, Step2, NbTimes2), where \em Shape is a shape +to be translated, \em Dir1 is the first direction of translation, \em Step1 of +the first translation, \em NbTimes1 is a number of translations to be done +along \em Dir1, \em Dir2 is the second direction of translation, \em Step2 of the +second translation, \em NbTimes2 is a number of translations to be done +along \em Dir2. +\n Arguments: Name + 1 shape + 2 vectors defining the direction ++ 2 step values + 2 values (repetitions). + +\image html mtrans2.png + +\image html multi_translation_initialsn.png + +\image html multi_translation2dsn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_multi_translation "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/offset_operation.doc b/doc/salome/gui/GEOM/input/offset_operation.doc new file mode 100644 index 000000000..39651ba45 --- /dev/null +++ b/doc/salome/gui/GEOM/input/offset_operation.doc @@ -0,0 +1,28 @@ +/*! + +\page offset_operation_page Offset Surface + +\n To produce an Offset Surface in the Main Menu select +Operations - > Transformation - > Offset Surface + +\n This operation translates each point of an \b Object (a set of +Objects) along a local normal by a given \b Offset distance (signed +number, negative value meaning inner offset). +\n \b Offset operation is applicable to faces, shells and solids. +\n The \b Result will be a \b GEOM_Object +\n TUI Command: geompy.MakeOffset(Shape, Offset), +where Shape is a shape which has to be an offset, Offset is a value of +the offset. +\n Arguments: Name + Object (face, shell, solid, compound) + +Offset value + +\image html transformation11.png + +\n Example: + +\image html offsetsn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_offset "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/partition.doc b/doc/salome/gui/GEOM/input/partition.doc new file mode 100644 index 000000000..7dfc5310d --- /dev/null +++ b/doc/salome/gui/GEOM/input/partition.doc @@ -0,0 +1,52 @@ +/*! + +\page partition_page Partition + +\n To produce a \b Partition in the Main Menu select Operations - > Partition + +\n This operation builds a compound by intersection of several shapes with a tool object or a plane. +\n The \b Result will be any \b GEOM_Object. + +

Intersection of two shapes.

+ +\n As far as the intersection of two objects can produce any type of +geometrical objects, Reconstruction Limit box allows choosing the +preferrable result, i.e. a solid, a shell, a list of faces, etc. +\n TUI Command: geompy.MakePartition(ListOfShapes, +ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, +ListOfMaterials), where where \em ListOfShapes is a list of shapes to +be intersected and \em ListOfTools is a list of shapes to intersect the +shapes from ListOfShapes. +\n Since the implementation of a new version of PartitionAlgo other +parameters are ignored by the current functionality and remain there +only to support the old scripts. +\n Arguments: Name + 2 lists of shapes (the shapes from the +first list will be intersected with the shapes from the second list) + +reconstruction limit. + +\image html partition1.png + +Keep nonlimit shapes checkbox allows building geometrical objects of +all types at the same time i.e. no reconstruction limit is applied. + + +

Intersection of a Shape and a Plane.

+ +\n TUI Command: geompy.MakeHalfPartition(Shapes, +Plane), where \em Shapes are a list of Shapes to be intersected +and \em Plane is a Tool shape, to intersect the \em Shapes. +\n Arguments: Name + a list of shapes which will be intersected ++ 1 cutting plane. + +\image html partition2.png + +\n Example: + +\image html partitionsn1.png + +\image html partitionsn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_partition "Basic Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/propagate_operation.doc b/doc/salome/gui/GEOM/input/propagate_operation.doc new file mode 100644 index 000000000..3882ee75e --- /dev/null +++ b/doc/salome/gui/GEOM/input/propagate_operation.doc @@ -0,0 +1,28 @@ +/*! + +\page propagate_operation_page Propagate + +\n To produce a \b Propagate operation in the Main Menu select +Operations - > Blocks - > Propagate + +\n This operation breaks a multitude of edges of a shape into groups +(builds all possible propagation groups). +\n The \b Result will be a List of GEOM_Objects. Each Geom +Object will contain a group of edges. + +\n TUI Command: geompy.Propagate(Shape), where \em Shape +is a shape to build propagation groups on. +\n Arguments: 1 Shape. + +\image html mtransf4.png + +\n Example: + +\image html image15.jpg + +\image html image16.jpg + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_propagate "Blocks Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/repairing_operations.doc b/doc/salome/gui/GEOM/input/repairing_operations.doc new file mode 100644 index 000000000..b5a7f0c03 --- /dev/null +++ b/doc/salome/gui/GEOM/input/repairing_operations.doc @@ -0,0 +1,19 @@ +/*! + +\page repairing_operations_page Repairing Operations + +
    +
  • \subpage shape_processing_operation_page
  • +
  • \subpage suppress_faces_operation_page
  • +
  • \subpage close_contour_operation_page
  • +
  • \subpage suppress_internal_wires_operation_page
  • +
  • \subpage suppress_holes_operation_page
  • +
  • \subpage sewing_operation_page
  • +
  • \subpage glue_faces_operation_page
  • +
  • \subpage add_point_on_edge_operation_page
  • +
  • \subpage check_free_boundaries_operation_page
  • +
  • \subpage check_free_faces_operation_page
  • +
  • \subpage change_orientation_operation_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/rotation_operation.doc b/doc/salome/gui/GEOM/input/rotation_operation.doc new file mode 100644 index 000000000..e6bbd277b --- /dev/null +++ b/doc/salome/gui/GEOM/input/rotation_operation.doc @@ -0,0 +1,42 @@ +/*! + +\page rotation_operation_page Rotation + +\n To produce a \b Rotation in the Main Menu select +Operations - > Transformation - > Rotation + +\n This operation \b rotates the initial shape. + +\n The first \b Rotation algorithm needs you to define an \b Object to +be rotated, an \b Axis of rotation and an \b Angle of rotation. +\n TUI Command: geompy.MakeRotation(Shape, Axis, Angle) +\n Arguments: 1 shape + 1 vector for direction of rotation + 1 +angle. + +\image html transformation4.png + +\b Reverse checkbox allows to specify the direction of rotation. +\n Create a copy checkbox allows to keep the initial object, +otherwise it will be removed. +\n The \b Result will be any \b GEOM_Object. + +\n The second algorithm allows to define the rotated \b Object by +three points. Rotation axis will pass through the Central Point +and will be will be orthogonal to a plane defned by three points. In +this case rotation \b Angle is the angle between two vectors directed +from the first point to the second and to the third. +\n TUI Command: geompy.MakeRotationThreePoints(Shape, CentralPoint, Point1, Point2) +\n Arguments: 1 shape + 3 points. + +\image html transformation4a.png + +\n Example: + +\image html rotationsn1.png + +\image html rotationsn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_rotation "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/scale_operation.doc b/doc/salome/gui/GEOM/input/scale_operation.doc new file mode 100644 index 000000000..65d8d9583 --- /dev/null +++ b/doc/salome/gui/GEOM/input/scale_operation.doc @@ -0,0 +1,26 @@ +/*! + +\page scale_operation_page Scale Transform + +\n To produce a Scale Transform in the Main Menu select +Operations - > Transformation - > Scale Transform + +\n This operation creates a scaled shape basing on the initial +shape. For this, you need to define the \b Shape to be scaled, the +Central Point of scale and the Scale Factor. +\n The \b Result will be a \b GEOM_Object. +\n TUI Command: geompy.MakeScaleTransform(Shape, CenterOfScale, Factor) +\n Arguments: Name + 1 shape(s) + 1 vertex + 1 Scale Factor. + +\image html transformation10.png + +\n Example: + +\image html scale_transformsn1.png + +\image html scale_transformsn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_scale "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/section_operation.doc b/doc/salome/gui/GEOM/input/section_operation.doc new file mode 100644 index 000000000..69561c1ba --- /dev/null +++ b/doc/salome/gui/GEOM/input/section_operation.doc @@ -0,0 +1,25 @@ +/*! + +\page section_opeartion_page Section + +\n To produce a \b Section operation in the Main Menu select +Operations - > Boolean - > Section + +\n This operation creates the section between 2 shapes. + +\n The \b Result will be a \b GEOM_Object (COMPOUND). +\n TUI Command: geompy.MakeSection(s1, s2) +\n Arguments: Name + 2 shapes. + +\image html neo-section.png + +\n Example: + +\image html fusesn1.png + +\image html sectionsn.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_section "Boolean Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/sewing_operation.doc b/doc/salome/gui/GEOM/input/sewing_operation.doc new file mode 100644 index 000000000..3dcba026a --- /dev/null +++ b/doc/salome/gui/GEOM/input/sewing_operation.doc @@ -0,0 +1,33 @@ +/*! + +\page sewing_operation_page Sewing + +\n To produce a \b Sewing operation in the Main Menu select Repair - > Sewing. + +\n This operation allows to sew several shapes. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.MakeSewing(ListOfShape, Precision), + where \em ListOfShape is list of shapes to be sewed, \em Precision is a +precision for sewing. + +\image html repair6.png + +\n Arguments: Name + 1 or more shapes + 1 value (sew +precision). +\n \b Detect button allows to display the number of free boundaries in +your shape: + +\image html neo-detect2.png + +\n Example: + +\image html image112.jpg + +\image html image113.jpg + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_sewing "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/shape_processing_operation.doc b/doc/salome/gui/GEOM/input/shape_processing_operation.doc new file mode 100644 index 000000000..a1979e15a --- /dev/null +++ b/doc/salome/gui/GEOM/input/shape_processing_operation.doc @@ -0,0 +1,158 @@ +/*! + +\page shape_processing_operation_page Shape Processing + +\n To produce a Shape Processing operation in the Main Menu +select Repair - > Shape Processing. +\n This operation processes one or more shapes using various operators. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.ProcessShape(Shape, Operators, +Parameters, Values), where \em Shape is a processed shape, \em Operators +is a list of operators ("FixShape", "SplitClosedFaces", etc.), +\em Parameters is a list of parameters ("FixShape.Tolerance3d", +etc), \em Values is a list of values of parameters placed in the same +order as in the list of Parameters. + +\n In this dialog box you can select the object that you need to +process, define its name and operators applied to it during +processing. + +\image html repair1.png + +Operators and Parameters (TUI names are given in brackets): + +
    +
  • Fix Shape (FixShape) - corrects invalid shapes.
  • +
      +
    • 3D Tolerance (FixShape.Tolerance3d) - work tolerance for +detection of the problems and correction of them.
    • +
    • Max 3D Tolerance (FixShape.MaxTolerance3d) - maximal +possible tolerance of the shape after correction.
    • +
    +
  • Fix Face Size (FixFaceSize) - removes small faces, such as +spots and strips.
  • +
      +
    • Tolerance (FixFaceSize.Tolerance) - defines minimum +possible face size.
    • +
    +
  • Drop Small Edges (DropSmallEdges) - removes edges, which +merge with neighbouring edges.
  • +
      +
    • 3D Tolerance (DropSmallEdges.Tolerance3d) - defines minimum +possible distance between two parallel edges.
    • +
    +
  • Split Angle (SplitAngle) - splits faces based on conical +surfaces, surfaces of revolution and cylindrical surfaces in segments +using a certain angle.
  • +
      +
    • Angle (SplitAngle.Angle) - the central angle of the +resulting segments (i.e. we obtain two segments if Angle=180, four if +Angle=90, etc).
    • +
    • Max. Tolerance (SplitAngle.MaxTolerance) - maximum possible +tolerance among the resulting segments.
    • +
    +
  • Split Closed Faces (SplitClosedFaces) - splits closed faces +in segments. The number of segments depends on the number of splitting +points.
  • +
      +
    • Number of splitting points (SplitClosedFaces.NbSplitPoints) - the number of splitting points.
    • +
    +
  • Split Continuity (SplitContinuity) - splits shapes to +reduce continuities of curves and surfaces.
  • +
      +
    • 3D Tolerance (SplitContinuity.Tolerance3d) - 3D tolerance for correction of geometry.
    • +
    • Surface Continuity (SplitContinuity.SurfaceContinuity) - required continuity for surfaces.
    • +
    • Curve Continuity (SplitContinuity.CurveContinuity) - required continuity for curves.
    • +
    +\n This and the previous parameters can take the following values: +\par +Parametric Continuity +\n \b 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). +\n \b C1 (Tangential Continuity): first derivatives are equal (the end +vectors of curves or surfaces are parallel, ruling out sharp edges). +\n \b C2 (Curvature Continuity): first and second derivatives are +equal (the end vectors of curves or surfaces are of the same +magnitude). +\n \b 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. +\par +Geometric Continuity +\n \b G1: first derivatives are proportional at junction. +\n 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). +\n \b G2: first and second derivatives are proportional at junction. +\n As the names imply, geometric continuity requires the geometry to +be continuous, while parametric continuity requires that the +underlying parameterization was continuous as well. +\n Parametric continuity of order n implies geometric continuity of +order n, but not vice-versa. + +
  • Bspline Restriction (BsplineRestriction) - converts curves +and surfaces to Bsplines and processes them with the following +parameters:
  • +
      +
    • Surface Mode (BSplineRestriction.SurfaceMode) - +approximation of surfaces if restriction is necessary.
    • +
    • 3D Curve Mode (BSplineRestriction.Curve3dMode) - conversion +of any 3D curve to BSpline and approximation.
    • +
    • 2D Curve Mode (BSplineRestriction.Curve2dMode) - conversion +of any 2D curve to BSpline and approximation.
    • +
    • 3D Tolerance (BSplineRestriction.Tolerance3d) - defines the +possibility of surfaces and 3D curves approximation with the specified +parameters.
    • +
    • 2D Tolerance (BSplineRestriction.Tolerance2d) - defines the +possibility of surfaces and 2D curves approximation with the specified +parameters.
    • +
    • Required Degree (BSplineRestriction.RequiredDegree) - +required degree of the resulting BSplines.
    • +
    • Required number of segments +(BSplineRestriction.RequiredNbSegments) - required maximum number of +segments of resultant BSplines.
    • +
    • 3D Continuity (BSplineRestriction.Continuity3d) - +continuity of the resulting surfaces and 3D curves.
    • +
    • 2D Continuity (BSplineRestriction.Continuity2d) - +continuity of the resulting 2D curves.
    • +
    +
  • To Bezier (ToBezier) - converts curves and surfaces of any +type to Bezier curves and surfaces.
  • +
      +
    • Surface Mode (ToBezier.SurfaceMode) - if checked in, allows +conversion of surfaces.
    • +
    • 3D Curve Mode (ToBezier.Curve3dMode) - if checked in, +allows conversion of 2D curves.
    • +
    • 2D Curve Mode (ToBezier.Curve2dMode) - if checked in, +allows conversion of 3D curves.
    • +
    • Max Tolerance (ToBezier.MaxTolerance) - defines tolerance +for detection and correction of problems.
    • +
    +
  • Same Parameter (SameParameter) - fixes edges of 2D and 3D +curves not having the same parameter.
  • +
      +
    • 3D Tolerance (SameParameter.Tolerance3d) - defines tolerance for fixing of edges.
    • +
    +
+ +\n Example: + +\image html image154.jpg +
Shape before applying Shape Processing (FixShape +operator). View # 1.
+ +\image html image156.jpg +
Shape before applying Shape Processing (FixShape +operator). View # 2.
+ +\image html image160.jpg +
The same shape after applying Shape +Processing.
+ +Our TUI Scripts provide you with useful examples of the use of +\ref tui_shape_processing "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/suppress_faces_operation.doc b/doc/salome/gui/GEOM/input/suppress_faces_operation.doc new file mode 100644 index 000000000..2d7569e03 --- /dev/null +++ b/doc/salome/gui/GEOM/input/suppress_faces_operation.doc @@ -0,0 +1,30 @@ +/*! + +\page suppress_faces_operation_page Suppress Faces + +\n To produce a Suppress Faces operation in the Main +Menu select Repair - > Suppress Faces. + +\n This operation suppresses a face of a shape. This operation is +available in OCC Viewer only. + +\n The \b Result will be a \b GEOM_Object (ListOfGeomShapes). + +\n TUI Command: geompy.SuppressFaces(Shape, ListOfID), +where \em Shape is a shape to be processed, \em ListOfID is a list of faces +ID's to be removed. +\n Arguments: Name + Faces which should be removed (you can +select them in the 3D viewer). + +\image html repair2.png + +\n Example: + +\image html suppress_faces1.png + +\image html suppress_faces2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_suppress_faces "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/suppress_holes_operation.doc b/doc/salome/gui/GEOM/input/suppress_holes_operation.doc new file mode 100644 index 000000000..5d1e684e1 --- /dev/null +++ b/doc/salome/gui/GEOM/input/suppress_holes_operation.doc @@ -0,0 +1,35 @@ +/*! + +\page suppress_holes_operation_page Suppress Holes + +\n To Suppress Holes in the Main Menu select Repair - > Suppress Holes. + +\n This operation removes holes on a selected shape. This operation is +available in OCC Viewer only. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.SuppressHoles(Shape, +ListOfWireID), where \em Shape is a shape where holes must be +removed, \em ListOfWireID is a list of wire sub shapes ID's. If it is +empty, then all holes are removed. + +\image html repair5.png + +\n Arguments: Name + 1 shape + Wires which should be removed. +\n Remove all holes checkbox allows to fill all holes of a definite shape. +\n \b Detect button allows to display the number of free boundaries in +your shape: + +\image html neo-detect2.png + +\n Example: + +\image html image109.jpg + +\image html image110.jpg + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_suppress_holes "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/suppress_internal_wires_operation.doc b/doc/salome/gui/GEOM/input/suppress_internal_wires_operation.doc new file mode 100644 index 000000000..3a7964990 --- /dev/null +++ b/doc/salome/gui/GEOM/input/suppress_internal_wires_operation.doc @@ -0,0 +1,39 @@ +/*! + +\page suppress_internal_wires_operation_page Suppress Internal Wires + +\n To Suppress Internal Wires in the Main Menu select +Repair - > Suppress Internal Wires. + +\n This operation removes all internal wires or specified internal +wires from user specified faces. This operation is available in OCC +Viewer only. + +\n The \b Result will be a \b GEOM_Object. + +\n TUI Command: geompy.SuppressInternalWires(Shape, Wires), + where \em Shape is a shape where wires are to be removed, \em Wires is a +list of wires ID's to be removed; if the list is empty then all +internal wires are removed. + +Arguments: +
    +
  • Name of the resulting object
  • +
  • User specified face
  • +
  • User specified internal wires (lying on this face except for its +boundary), or, in case the Remove all internal wires box is +checked, all internal wires
  • +
+ +\image html repair4.png + +\n Example: + +\image html supp_int_wires1.png + +\image html supp_int_wires2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_suppress_internal_wires "Repairing Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/transformation_operations.doc b/doc/salome/gui/GEOM/input/transformation_operations.doc new file mode 100644 index 000000000..efb331f1c --- /dev/null +++ b/doc/salome/gui/GEOM/input/transformation_operations.doc @@ -0,0 +1,18 @@ +/*! + +\page transformation_operations_page Transformation Operations + +
    +
  • \subpage translation_operation_page
  • +
  • \subpage rotation_operation_page
  • +
  • \subpage modify_location_operation_page
  • +
  • \subpage mirror_operation_page
  • +
  • \subpage scale_operation_page
  • +
  • \subpage offset_operation_page
  • +
  • \subpage multi_translation_operation_page
  • +
  • \subpage multi_rotation_operation_page
  • +
  • \subpage fillet_operation_page
  • +
  • \subpage chamfer_operation_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/transforming_geom_objs.doc b/doc/salome/gui/GEOM/input/transforming_geom_objs.doc new file mode 100644 index 000000000..f60ea193e --- /dev/null +++ b/doc/salome/gui/GEOM/input/transforming_geom_objs.doc @@ -0,0 +1,54 @@ +/*! + +\page transform_geom_obj_page Transforming geometrical objects + +
    +
  • \subpage basic_operations_page
  • +
      +
    • \ref partition_page
    • +
    • \ref archimede_page
    • +
    +
  • \subpage boolean_operations_page
  • +
      +
    • \ref using_boolean_operations_page
    • +
    • \ref fuse_operation_page
    • +
    • \ref common_operation_page
    • +
    • \ref cut_operation_page
    • +
    • \ref section_opeartion_page
    • +
    +
  • \subpage transformation_operations_page
  • +
      +
    • \ref translation_operation_page
    • +
    • \ref rotation_operation_page
    • +
    • \ref modify_location_operation_page
    • +
    • \ref mirror_operation_page
    • +
    • \ref scale_operation_page
    • +
    • \ref offset_operation_page
    • +
    • \ref multi_translation_operation_page
    • +
    • \ref multi_rotation_operation_page
    • +
    • \ref fillet_operation_page
    • +
    • \ref chamfer_operation_page
    • +
    +
  • \subpage blocks_operations_page
  • +
      +
    • \ref multi_transformation_operation_page
    • +
    • \ref explode_on_blocks_operation_page
    • +
    • \ref propagate_operation_page
    • +
    +
  • \subpage repairing_operations_page
  • +
      +
    • \ref shape_processing_operation_page
    • +
    • \ref suppress_faces_operation_page
    • +
    • \ref close_contour_operation_page
    • +
    • \ref suppress_internal_wires_operation_page
    • +
    • \ref suppress_holes_operation_page
    • +
    • \ref sewing_operation_page
    • +
    • \ref glue_faces_operation_page
    • +
    • \ref add_point_on_edge_operation_page
    • +
    • \ref check_free_boundaries_operation_page
    • +
    • \ref check_free_faces_operation_page
    • +
    • \ref change_orientation_operation_page
    • +
    +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/translation_operation.doc b/doc/salome/gui/GEOM/input/translation_operation.doc new file mode 100644 index 000000000..136b53614 --- /dev/null +++ b/doc/salome/gui/GEOM/input/translation_operation.doc @@ -0,0 +1,45 @@ +/*! + +\page translation_operation_page Translation + +\n To produce a \b Translation in the Main Menu select +Operations - > Transformation - > Translation + +This Operation makes a translation of an \b 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. +\n The \b Result of all operations will be any \b GEOM_Object. + +\n Firstly you can define an \b Object and the vector coordinates along the +axes. +\n TUI Command: geompy.MakeTranslation(Shape, DX, DY, +DZ), where Shape is a shape to be translated, DX, DY, DZ are +components of translation vector. +\n Arguments: Name + 1 shape + 3 values (coordinates). + +\image html transformation1.png + +\n Secondly you can define an \b Object and the start and the end points +of the vector. +\n TUI Command: geompy.MakeTranslationTwoPoints(Object, Point1, Point2) +\n Arguments: Name + 1 shape + 2 vertices + +\image html transformation2.png + +\n Finally you can define an \b Object and the vector +\n TUI Command: geompy.MakeTranslationVector(Object, Vector) +\n Arguments: Name + 1 shape + 1 vector. + +\image html transformation3.png + +\n Example: + +\image html translationsn1.png + +\image html translationsn2.png + +Our TUI Scripts provide you with useful examples of the use of +\ref tui_translation "Transformation Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/transparency.doc b/doc/salome/gui/GEOM/input/transparency.doc new file mode 100644 index 000000000..9586c9546 --- /dev/null +++ b/doc/salome/gui/GEOM/input/transparency.doc @@ -0,0 +1,25 @@ +/*! + +\page transparency_page Transparency + +\n 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. + +\image html neo-transparency.png + +or using a TUI Command: gg.setTransparency(ID, Double) + +\n Examples: + +\image html colorsn.png +
Opaque
+ +\image html transparencysn.png +
50% Transparent
+ +Our TUI Scripts provide you with useful examples of +\ref tui_change_transparency "Changing Display Parameters". + +*/ + diff --git a/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc b/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc new file mode 100644 index 000000000..21efff941 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_advanced_geom_objs.doc @@ -0,0 +1,221 @@ +/*! + +\page tui_advanced_geom_objs_page Advanced Geometrical Objects + +\anchor tui_creation_edge +

Creation of an Edge

+ +\code +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) +\endcode + +\anchor tui_creation_wire +

Creation of a Wire

+ +\code +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) +\endcode + +\anchor tui_creation_face +

Creation of a Face

+ +\code +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) +\endcode + +\anchor tui_creation_shell +

Creation of a Shell

+ +\code +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) +\endcode + +\anchor tui_creation_solid +

Creation of a Solid

+ +\code +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) +\endcode + +\anchor tui_creation_compound +

Creation of a Compound

+ +\code +import geompy +import salome +gg = salome.ImportComponentGUI("GEOM") + +# 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 + +# create a compund of the given shapes +compound = geompy.MakeCompound(ShapeListCompound) + +# add object in the study +id_compound = geompy.addToStudy(compound,"Compound") + +# display the compound +gg.createAndDisplayGO(id_compound) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_basic_geom_objs.doc b/doc/salome/gui/GEOM/input/tui_basic_geom_objs.doc new file mode 100644 index 000000000..d9c30a23b --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_basic_geom_objs.doc @@ -0,0 +1,272 @@ +/*! + +\page tui_basic_geom_objs_page Basic Geometrical Objects + +\anchor tui_creation_point +

Creation of a Point

+ +\code +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) +\endcode + +\anchor tui_creation_line +

Creation of a Line

+ +\code +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) +\endcode + +\anchor tui_creation_circle +

Creation of a Circle

+ +\code +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) +\endcode + +\anchor tui_creation_ellipse +

Creation of an Ellipse

+ +\code +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) +\endcode + +\anchor tui_creation_curve +

Creation of a Curve

+ +\code +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) +\endcode + +\anchor tui_creation_vector +

Creation of a Vector

+ +\code +mport 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) +\endcode + +\anchor tui_creation_plane +

Creation of a Plane

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_basic_operations.doc b/doc/salome/gui/GEOM/input/tui_basic_operations.doc new file mode 100644 index 000000000..14f7c07f9 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_basic_operations.doc @@ -0,0 +1,82 @@ +/*! + +\page tui_basic_operations_page Basic Operations + +\anchor tui_partition +

Partition

+ +\code +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) +\endcode + +\anchor tui_archimede +

Archimede

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_blocks_operations.doc b/doc/salome/gui/GEOM/input/tui_blocks_operations.doc new file mode 100644 index 000000000..8544667f1 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_blocks_operations.doc @@ -0,0 +1,98 @@ +/*! + +\page tui_blocks_operations_page Blocks Operations + +\anchor tui_multi_transformation +

Multi Transformation

+ +\code +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.GetSubShapeID(box, top_face) +yz_face_ind = geompy.GetSubShapeID(box, yz_face) +xz_face_ind = geompy.GetSubShapeID(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) +\endcode + +\anchor tui_explode_on_blocks +

Explode on Blocks

+ +\code +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 of the given compound, by criteria: min_nb_faces <= nb. of faces <= max_nb_faces +min_nb_faces = 6 +max_nb_faces = 6 +make_block_explode = geompy.MakeBlockExplode(compound, min_nb_faces, max_nb_faces) + +# add objects in the study +id_compound = geompy.addToStudy(compound, "Compound") +id_make_block_explode = geompy.addToStudyInFather(compound, 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) +\endcode + +\anchor tui_propagate +

Propagate

+ +\code +import geompy +import salome + +# create a box +box = geompy.MakeBoxDXDYDZ(200, 200, 200) + +# build all possible propagation groups +listChains = geompy.Propagate(check_box) + +# add objects in the study +geompy.addToStudy(check_box, "Box") +ii = 1 +for chain in listChains: + geompy.addToStudyInFather(check_box, chain, "propagation chain " + `ii`) + ii = ii + 1 + pass + +salome.sg.updateObjBrowser(1) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_boolean_operations.doc b/doc/salome/gui/GEOM/input/tui_boolean_operations.doc new file mode 100644 index 000000000..f88047f48 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_boolean_operations.doc @@ -0,0 +1,139 @@ +/*! + +\page tui_boolean_operations_page Boolean Operations + +\anchor tui_fuse +

Fuse

+ +\code +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) +\endcode + +\anchor tui_common +

Common

+ +\code +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) +\endcode + +\anchor tui_cut +

Cut

+ +\code +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) +\endcode + +\anchor tui_section +

Section

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_building_by_blocks.doc b/doc/salome/gui/GEOM/input/tui_building_by_blocks.doc new file mode 100644 index 000000000..3584c7ef5 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_building_by_blocks.doc @@ -0,0 +1,120 @@ +/*! + +\page tui_building_by_blocks_page Building by Blocks + +

Quadrangle Face

+ +\code +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) +\endcode + +

Hexagonal Solid

+ +\code +import geompy +import salome +gg = salome.ImportComponentGUI("GEOM") + +# create vertices +p0 = geompy.MakeVertex( 0., 0., 0.) +p1 = geompy.MakeVertex( 0., 0., 40.) +p2 = geompy.MakeVertex( 70., -15., 0.) +p3 = geompy.MakeVertex( 70., -15., 70.) + +p4 = geompy.MakeVertex( 0., 70., 0.) +p5 = geompy.MakeVertex( 0., 70., 40.) +p6 = geompy.MakeVertex( 70., 70., 0.) +p7 = geompy.MakeVertex( 70., 70., 70.) + +p8 = geompy.MakeVertex( 0., -50., 0.) +p9 = geompy.MakeVertex( 0., -50., 40.) +p10 = geompy.MakeVertex( 70., -35., 0.) +p11 = geompy.MakeVertex( 70., -35., 70.) + +# create faces +qface1 = geompy.MakeQuad4Vertices(p0, p1, p2, p3) +qface2 = geompy.MakeQuad4Vertices(p4, p5, p6, p7) +qface3 = geompy.MakeQuad4Vertices(p0, p1, p4, p5) +qface4 = geompy.MakeQuad4Vertices(p2, p3, p6, p7) +qface5 = geompy.MakeQuad4Vertices(p0, p2, p4, p6) +qface6 = geompy.MakeQuad4Vertices(p1, p3, p5, p7) +qface7 = geompy.MakeQuad4Vertices(p8, p9, p10, p11) + +# create a hexahedral solid between two given faces +solid1 = geompy.MakeHexa2Faces(qface1, qface7) + +# create a hexahedral solid, bounded by six given faces +solid2 = geompy.MakeHexa(qface1, qface2, qface3, qface4, qface5, qface6) + +# add objects in the study +geompy.addToStudy(qface1,"qface1") +geompy.addToStudy(qface2,"qface2") +geompy.addToStudy(qface3,"qface3") +geompy.addToStudy(qface4,"qface4") +geompy.addToStudy(qface5,"qface5") +geompy.addToStudy(qface6,"qface6") +geompy.addToStudy(qface7,"qface7") + +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_complex_objs.doc b/doc/salome/gui/GEOM/input/tui_complex_objs.doc new file mode 100644 index 000000000..29813a9a6 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_complex_objs.doc @@ -0,0 +1,189 @@ +/*! + +\page tui_complex_objs_page Complex Objects + +\anchor tui_creation_prism +

Creation of a Prism

+ +\code +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) +\endcode + +\anchor tui_creation_revolution +

Creation of a Revolution

+ +\code +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) +\endcode + +\anchor tui_creation_filling +

Creation of a Filling

+ +\code +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) +\endcode + +\anchor tui_creation_pipe +

Creation of a Pipe

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_creating_geom_objs.doc b/doc/salome/gui/GEOM/input/tui_creating_geom_objs.doc new file mode 100644 index 000000000..7ba4445f0 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_creating_geom_objs.doc @@ -0,0 +1,15 @@ +/*! + +\page tui_creating_geom_objs_page Creating Geometric Objects + +
    +
  • \subpage tui_basic_geom_objs_page
  • +
  • \subpage tui_primitives_page
  • +
  • \subpage tui_complex_objs_page
  • +
  • \subpage tui_working_with_groups_page
  • +
  • \subpage tui_building_by_blocks_page
  • +
  • \subpage tui_sketcher_page
  • +
  • \subpage tui_advanced_geom_objs_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_measurement_tools.doc b/doc/salome/gui/GEOM/input/tui_measurement_tools.doc new file mode 100644 index 000000000..a1415fdff --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_measurement_tools.doc @@ -0,0 +1,184 @@ +/*! + +\page tui_measurement_tools_page Measurement Tools + +

Point Coordinates

+ +\code +import math +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) + +# check the obtained coordinate values +tolerance = 1.e-07 +def IsEqual(val1, val2): return (math.fabs(val1 - val2) < tolerance) + +if IsEqual(coords[0], 15.) and IsEqual(coords[1], 23.) and IsEqual(coords[2], 80.): + print "All values are OK." +else : + print "Coordinates of point must be (15, 23, 80), but returned (", + print coords[0], ", ", coords[1], ", ", coords[2], ")" + pass +\endcode + +

Basic Properties

+ +\code +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. +\endcode + +

Center of masses

+ +\code +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)" +\endcode + +

Inertia

+ +\code +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] +\endcode + +

Bounding Box

+ +\code +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] +\endcode + +

Minimal Distance

+ +\code +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 +\endcode + +

Tolerance

+ +\code +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] +\endcode + +

What Is

+ +\code +import geompy + +# create a box +box = geompy.MakeBoxDXDYDZ(100,30,100) +Descr = geompy.WhatIs(box) +print "\nBox 100x30x100 description:" +print Descr +\endcode + +

Check Shape

+ +\code +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" +\endcode + +

Check Compound of Blocks

+ +\code +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" +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_primitives.doc b/doc/salome/gui/GEOM/input/tui_primitives.doc new file mode 100644 index 000000000..827825605 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_primitives.doc @@ -0,0 +1,159 @@ +/*! + +\page tui_primitives_page Primitives + +\anchor tui_creation_box +

Creation of a Box

+ +\code +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) +\endcode + +\anchor tui_creation_cylinder +

Creation of a Cylinder

+ +\code +import geompy +import salome + +gg = salome.ImportComponentGUI("GEOM") + +# create a vertex and a vector +p1 = geompy.MakeVertex(25, 35, 45) +p2 = geompy.MakeVertex(70, 70, 70) +v = geompy.MakeVector(p1, p2) + +# create cylinders +height = 40 + +radius1 = 15 +cylinder1 = geompy.MakeCylinder(p1, v, radius1, height) + +radius2 = 30 +cylinder2 = geompy.MakeCylinderRH(radius2, height) + +# add objects in the study +id_cylinder1 = geompy.addToStudy(cylinder1,"Cylinder1") +id_cylinder2 = geompy.addToStudy(cylinder2,"Cylinder2") + +# display the cylinders +gg.createAndDisplayGO(id_cylinder1) +gg.setDisplayMode(id_cylinder1,1) +gg.createAndDisplayGO(id_cylinder2) +gg.setDisplayMode(id_cylinder2,1) +\endcode + +\anchor tui_creation_sphere +

Creation of a Sphere

+ +\code +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) +\endcode + +\anchor tui_creation_torus +

Creation of a Torus

+ +\code +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) +\endcode + +\anchor tui_creation_cone +

Creation of a Cone

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_repairing_operations.doc b/doc/salome/gui/GEOM/input/tui_repairing_operations.doc new file mode 100644 index 000000000..7225d7296 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_repairing_operations.doc @@ -0,0 +1,456 @@ +/*! + +\page tui_repairing_operations_page Repairing Operations + +\anchor tui_shape_processing +

Shape Processing

+ +\code +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) +\endcode + +\anchor tui_suppress_faces +

Suppress Faces

+ +\code +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) +\endcode + +\anchor tui_close_contour +

Close Contour

+ +\code +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) +\endcode + +\anchor tui_suppress_internal_wires +

Suppress Internal Wires

+ +\code +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) +\endcode + +\anchor tui_suppress_holes +

Suppress Holes

+ +\code +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) +\endcode + +\anchor tui_sewing +

Sewing

+ +\code +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) +\endcode + +\anchor tui_glue_faces +

Glue Faces

+ +\code +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) +\endcode + +\anchor tui_add_point_on_edge +

Add Point on Edge

+ +\code +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) +\endcode + +\anchor tui_check_free_boundaries +

Check Free Boundaries

+ +\code +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 +ImportFromBREP = geompy.ImportBREP(os.getenv("DATA_DIR")+"/Shapes/Brep/flight_solid.brep") + +# get a face +faces = geompy.SubShapeAllSorted(ImportFromBREP, 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_ImportFromBREP = geompy.addToStudy(ImportFromBREP, "ImportFromBREP") +salome.sg.updateObjBrowser(1) +\endcode + +\anchor tui_check_free_faces +

Check Free Faces

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_scripts.doc b/doc/salome/gui/GEOM/input/tui_scripts.doc new file mode 100644 index 000000000..08195e67f --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_scripts.doc @@ -0,0 +1,28 @@ +/*! + +\page tui_scripts_page TUI Scripts + +
    +
  • \subpage tui_viewing_geom_objs_page
  • +
  • \subpage tui_creating_geom_objs_page
  • +
      +
    • \ref tui_basic_geom_objs_page
    • +
    • \ref tui_primitives_page
    • +
    • \ref tui_complex_objs_page
    • +
    • \ref tui_working_with_groups_page
    • +
    • \ref tui_building_by_blocks_page
    • +
    • \ref tui_sketcher_page
    • +
    • \ref tui_advanced_geom_objs_page
    • +
    +
  • \subpage tui_transformation_page
  • +
      +
    • \ref tui_basic_operations_page
    • +
    • \ref tui_boolean_operations_page
    • +
    • \ref tui_transformation_operations_page
    • +
    • \ref tui_blocks_operations_page
    • +
    • \ref tui_repairing_operations_page
    • +
    +
  • \subpage tui_measurement_tools_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_sketcher.doc b/doc/salome/gui/GEOM/input/tui_sketcher.doc new file mode 100644 index 000000000..31c576f23 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_sketcher.doc @@ -0,0 +1,48 @@ +/*! + +\page tui_sketcher_page Sketcher + +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_transformation.doc b/doc/salome/gui/GEOM/input/tui_transformation.doc new file mode 100644 index 000000000..df8636f0f --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_transformation.doc @@ -0,0 +1,13 @@ +/*! + +\page tui_transformation_page Transformation + +
    +
  • \subpage tui_basic_operations_page
  • +
  • \subpage tui_boolean_operations_page
  • +
  • \subpage tui_transformation_operations_page
  • +
  • \subpage tui_blocks_operations_page
  • +
  • \subpage tui_repairing_operations_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_transformation_operations.doc b/doc/salome/gui/GEOM/input/tui_transformation_operations.doc new file mode 100644 index 000000000..a05846a79 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_transformation_operations.doc @@ -0,0 +1,464 @@ +/*! + +\page tui_transformation_operations_page Transformation Operations + +\anchor tui_translation +

Translation

+ +\code +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) +\endcode + +\anchor tui_rotation +

Rotation

+ +\code +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 +rotation1 = geompy.MakeRotation(cylinder, vr, math.pi) +rotation2 = geompy.MakeRotationThreePoints(cylinder, p4, p1, p2) + +# add objects in the study +id_vr = geompy.addToStudy(vr, "Rotation 1 axis") +id_p4 = geompy.addToStudy(p4, "Rotation 2 center") +id_p1 = geompy.addToStudy(p1, "Rotation 2 point 1") +id_p2 = geompy.addToStudy(p2, "Rotation 2 point 2") +id_cylinder = geompy.addToStudy(cylinder, "Cylinder") +id_rotation1 = geompy.addToStudy(rotation1, "Rotation 1") +id_rotation2 = geompy.addToStudy(rotation2, "Rotation 2") + +# display the results +gg.createAndDisplayGO(id_vr) +gg.createAndDisplayGO(id_p4) +gg.createAndDisplayGO(id_p1) +gg.createAndDisplayGO(id_p2) +gg.createAndDisplayGO(id_cylinder) +gg.setDisplayMode(id_cylinder,1) +gg.createAndDisplayGO(id_rotation1) +gg.createAndDisplayGO(id_rotation2) +gg.setDisplayMode(id_rotation1,1) +gg.setDisplayMode(id_rotation2,1) +\endcode + +\anchor tui_modify_location +

Modify Location

+ +\code +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) +\endcode + +\anchor tui_mirror +

Mirror Image

+ +\code +import geompy +import salome +gg = salome.ImportComponentGUI("GEOM") + +# create a box +box = geompy.MakeBoxDXDYDZ(200, 200, 200) + +# create an object, symmetrical to another object through 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 another object through 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 another object through 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) +\endcode + +\anchor tui_scale +

Scale Transform

+ +\code +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.setTransparency(id_box,0.5) +gg.createAndDisplayGO(id_scale) +gg.setDisplayMode(id_scale,1) +\endcode + +\anchor tui_offset +

Offset Surface

+ +\code +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) +\endcode + +\anchor tui_multi_translation +

Multi Translation

+ +\code +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) +\endcode + +\anchor tui_multi_rotation +

Multi Rotation

+ +\code +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) +\endcode + +\anchor tui_fillet +

Fillet

+ +\code +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) +\endcode + +\anchor tui_chamfer +

Chamfer

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_viewing_geom_objs.doc b/doc/salome/gui/GEOM/input/tui_viewing_geom_objs.doc new file mode 100644 index 000000000..146bd33fd --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_viewing_geom_objs.doc @@ -0,0 +1,60 @@ +/*! + +\page tui_viewing_geom_objs_page Viewing Geometrical Objects + +\anchor tui_change_disp_mode +

Changing Display Mode

+ +\code +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) +\endcode + +\anchor tui_change_color +

Changing Color

+ +\code +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) +\endcode + +\anchor tui_change_transparency +

Changing Transparency

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/tui_working_with_groups.doc b/doc/salome/gui/GEOM/input/tui_working_with_groups.doc new file mode 100644 index 000000000..786e81816 --- /dev/null +++ b/doc/salome/gui/GEOM/input/tui_working_with_groups.doc @@ -0,0 +1,110 @@ +/*! + +\page tui_working_with_groups_page Working with Groups + +

Creation of a group

+ +\code +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) +\endcode + +

Adding an object to the group

+ +\code +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) +\endcode + +

Removing an object from the group

+ +\code +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) +\endcode + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/using_boolean_operations.doc b/doc/salome/gui/GEOM/input/using_boolean_operations.doc new file mode 100644 index 000000000..1c949478e --- /dev/null +++ b/doc/salome/gui/GEOM/input/using_boolean_operations.doc @@ -0,0 +1,26 @@ +/*! + +\page using_boolean_operations_page Using Boolean Operations + +\n You can use the following boolean operations for construction of more +complex geometrical objects (2D & 3D elements): + +
    +
  • \ref fuse_operation_page "Fuse"
  • +
  • \ref common_operation_page "Common"
  • +
  • \ref cut_operation_page "Cut"
  • +
  • \ref section_opeartion_page "Section"
  • +
+ +There is a general TUI command covering all these operations, which +can be used alongside with separate commands for each operation. +\par +geompy.MakeBoolean(Shape1, Shape2, Operation), where \em +Shape1 is the first argument and \em Shape2 is the second argument of +Boolean operation, \em Operation is a type of the Boolean operation (1 +— Common, 2 — Cut, 3 — Fuse, 4 — Section). + +\n Our TUI Scripts provide you with useful examples of the use of +\ref tui_boolean_operations_page "Boolean Operations". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/using_measurement_tools.doc b/doc/salome/gui/GEOM/input/using_measurement_tools.doc new file mode 100644 index 000000000..e3b560831 --- /dev/null +++ b/doc/salome/gui/GEOM/input/using_measurement_tools.doc @@ -0,0 +1,172 @@ +/*! + +\page using_measurement_tools_page Using measurement tools + +\n Measurement tools in GEOM are necessary for getting different data +concerning created or imported geometrical objects. They are: + +
    +
  • \ref point_coord_anchor "Point coordinates"
  • +
  • \ref basic_prop_anchor "Basic properties"
  • +
  • \ref center_mass_anchor "Center of mass"
  • +
  • \ref inertia_anchor "Inertia"
  • +
  • \ref bounding_box_anchor "Bounding box"
  • +
  • \ref min_distance_anchor "Min. distance"
  • +
  • \ref tolerance_anchor "Tolerance"
  • +
  • \ref whatis_anchor "WhatIs"
  • +
  • \ref check_anchor "Check"
  • +
  • \ref check_compound_anchor "Check compound of blocks"
  • +
+ +\n Our TUI Scripts show how to use +\ref tui_measurement_tools_page "Measurement Tools" with TUI +commands. + +\n To use measurement tools: +\par +In the Main menu select \b Measures submenu. + +\anchor point_coord_anchor +

Point coordinates

+ +\n Returns the coordinates of a point. + +\n Result: Point coordinates (X, Y, Z) in 3D space in the form of Python Tuple. +\n TUI Command: geompy.PointCoordinates(Point), +where \em Point is a point whose coordinates are inquired. + +\image html measures1.png + +\anchor basic_prop_anchor +

Basic properties

+ +\n Returns the properties (Length, Surface & Volume) for the selected +geometrical object. + +\n Result: Display Length, Surface & Volume in the form of +Python Tuple. +\n TUI Command: geompy.BasicProperties(Shape), where +\em Shape is a shape whose properties are inquired. + +\image html neo-basicprop.png + +\anchor center_mass_anchor +

Center of mass

+ +\n Calculates and returns the coordinates of the gravity center for +the selected geometrical object. + +\n Result: GEOM_Object (vertex). +\n TUI Command: geompy.MakeCDG(Shape), where \em Shape is +the shape for which a center of gravity is computed. + +\image html measures3.png + +\anchor inertia_anchor +

Inertia

+ +Returns the axis of inertia for the selected geometrical object. + +\n Result: Displays the matrix and moments of inertia in the +form of Python Tuple
(I11, I12, I13,
+
I21, I22, I23,
+
I31, I32, I33,
+
Ix, Iy, Iz).
+\n TUI Command: geompy.Inertia(Shape), where \em Shape is +a shape for which a matrix of inertia and moment of inertia are +returned. + +\image html measures4.png + +\anchor bounding_box_anchor +

Bounding box

+ +\n Returns the dimensions of the bounding box for the selected +geometrical object. + +\n Result: Displays the dimensions of the bounding box of a +geometrical object in the form of Python Tuple (Xmin, Xmax, Ymin, +Ymax, Zmin, Zmax). +\n TUI Command: geompy.BoundingBox(Shape), where \em Shape +is a shape for which a bounding box is computed. + +\image html measures5.png + +\anchor min_distance_anchor +

Min. distance

+ +\n Returns the minimum distance between two geometrical objects. + +\n TUI Command: geompy.MinDistance(Shape1, Shape2), +where \em Shape1 and \em Shape2 are shapes between which the minimal distance +computed. + +\image html distance.png + +\anchor tolerance_anchor +

Tolerance

+ +\n Returns the maximum and the minimum tolerance for the selected +geometrical object. + +\n Result: Displays the tolerance values (FaceMinTol, +FaceMaxTol, EgdeMinTol, EgdeMaxTol, VertexMinTol, VertexMaxTol). +\n TUI Command: geompy.Tolerance(Shape), where \em Shape +is a shape for which minimal and maximal tolerances are returned. + +\image html new-tolerance.png + +\anchor whatis_anchor +

WhatIs

+ +\n Displays types and quantities of all elements composing the +selected geometrical object. + +\n TUI Command: geompy.WhatIs(Shape), where \em Shape is a +shape from which a description is returned. + +\image html measures8.png + +\anchor check_anchor +

Check

+ +\n Checks the topology of the selected geometrical object and returns +True if it is valid. Check also geometry checkbox allows to test the +geometry as well. + +\n Result: Boolean. +\n TUI Command: geompy.(theShape, theIsCheckGeom = 0), +where is shape which is checked for validity. + +\image html measures9.png + +\anchor check_compound_anchor +

Check compound of blocks

+ +\n Checks whether a shape is a compound of glued blocks. To be +considered as a compound of blocks, the given shape must satisfy the +following conditions: +
    +
  • Each element of the compound should be a Block (6 faces and 12 edges);
  • +
  • A connection between two Blocks should be an entire quadrangle face or an entire edge;
  • +
  • The compound should be connected;
  • +
  • Two quadrangle faces should be glued.
  • +
+ +\n Informs of the following possible errors: +
    +
  • not a block;
  • +
  • not glued;
  • +
  • not connected;
  • +
  • extra or degenerated edge.
  • +
+ +\n Result: Boolean; highlight in the viewer. +\n TUI Command: +geompy.CheckCompoundOfBlocks(Compound). Checks if the shape +is a valid compound of blocks. If it is true, then the validity flag +is returned, and encountered errors are printed in the python console. + +\image html measures10.png + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/viewing_geom_obj.doc b/doc/salome/gui/GEOM/input/viewing_geom_obj.doc new file mode 100644 index 000000000..0b0d13c6d --- /dev/null +++ b/doc/salome/gui/GEOM/input/viewing_geom_obj.doc @@ -0,0 +1,53 @@ +/*! + +\page view_geom_obj_page Overview + +\n Newly created geometrical objects are automatically displayed in +the OCC 3D Viewer. + +\n OCC 3D Viewer is described in the documentation on GUI +module. +\n 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. + +\image html image1.jpg + +
    +
  • Rename - allows to change the name of the geometric +object.
  • +
  • \ref display_mode_page "Display Mode" - allows to select between +Wireframe and Shading presentation.
  • +
  • \ref color_page "Color" - allows to change the filling color in +the standard Select Color menu.
  • +
  • \ref transparency_page "Transparency" - allows to change the +transparency of mesh elements.
  • +
  • \ref isolines_page "Isos" - allows to change the number of +isolines displayed within a shape.
  • +
  • Erase - allows to hide the selected mesh from the +viewer. TUI Command : sg.EraseOnly(ID) +\n \image html image18.gif +
  • +
  • Erase all - allows to hide all objects from the viewer. TUI +Command: sg.EraseAll() +\n \image html image26.gif +
  • +
  • Display Only - allows to display only the selected mesh, +hiding all other from the viewer. TUI Command: sg.DisplayOnly(ID) +\n \image html image33.gif +
  • +
  • Update - refreshes the presentation of your mesh in the +Object Browser, applying all recent changes.
  • +
  • Dump view - exports an object from the viewer in bmp, png, +jpg or jpeg image format.
  • +
  • Change background - allows to redefine the background +color. By default it is black. +\n\n Some of these functionalities are available through right-clicking +on the viewer background: + +\image html image2.jpg
  • + +
  • Select Only provides a filter for exclusive selection of objects of a certain type.
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/viewing_geom_obj_chapter.doc b/doc/salome/gui/GEOM/input/viewing_geom_obj_chapter.doc new file mode 100644 index 000000000..c6eec7218 --- /dev/null +++ b/doc/salome/gui/GEOM/input/viewing_geom_obj_chapter.doc @@ -0,0 +1,13 @@ +/*! + +\page view_geom_obj_chapter_page Viewing Geometrical Objects + +
    +
  • \subpage view_geom_obj_page
  • +
  • \subpage display_mode_page
  • +
  • \subpage color_page
  • +
  • \subpage transparency_page
  • +
  • \subpage isolines_page
  • +
+ +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/input/working_with_groups.doc b/doc/salome/gui/GEOM/input/working_with_groups.doc new file mode 100644 index 000000000..7216f0c77 --- /dev/null +++ b/doc/salome/gui/GEOM/input/working_with_groups.doc @@ -0,0 +1,89 @@ +/*! + +\page work_with_groups_page Working with groups + +Creation and editing groups of subshapes of a geometrical object makes +handling subshapes much easier. This functionality is available in OCC +viewer only. + +

Create a group

+ +\image html image56.gif + +To create a group of subshapes of a geometrical object in the main +menu select New entity > Group > Create +\n The following menu will appear: + +\image html geomcreategroup.png + +In this Menu: + +
    +
  • Shape Type radio button define the type of elements for the +group (points, lines, planes or shapes).
  • +
  • Group Name - here you can enter the name of the group, by +default, it is Group_n.
  • +
  • Then, using the "Select" button, select the Main Shape (a +geometrical object on which the group will be created). You can select +the elements of your group in two ways:
  • +
      +
    • Clicking Select Sub-Shapes button you can select them +manually in the 3D Viewer, and add to the group by clicking the \b Add +button (keep down the Shift button on the keyboard to select several +elements and add all them together). The indexes of the selected +elements will be displayed in the list. To delete elements from the +list, select them and click \b Remove button.
    • +
    • Clicking Select All button you can add all object's +elements of a certain type in the list of the elements of the +group. To delete elements from the list, select them and click \b +Remove button.
    • +
    +
  • Finally, confirm your selection by clicking \b OK (also closes the +Menu) or \b Apply (leaves the Menu open for creation of other groups), +or skip it by clicking \b Close button.
  • +
+ +\n The Result of the operation will be a \b GEOM_Object. + +\n TUI Command: geompy.CreateGroup(MainShape, +ShapeType), where MainShape is a shape for which the group is +created, ShapeType is a type of shapes in the created group. +\n Arguments: 1 Shape + Type of subshape. + +Example: + +\image html image193.jpg + + +

Edit a group

+ +\image html image57.gif + +To \b Edit an existing group in the main menu select New entity > +Group > Edit. This menu is designed in the same way as the +Create a group menu. + +\n The \b Result of the operation will be a \b GEOM_Object. + +\n TUI Command: +
    +
  • geompy.AddObject(Group, SubShapeID), where Group is a +group to which a sub shape has to be added, SubShapeID is an ID of the +sub shape to be added to the group.
  • +
  • geompy.RemoveObject(Group, SubShapeID), where Group is a +group from which a sub shape has to be removed, SubShapeID is an ID of +the sub shape to be removed from the group.
  • +
  • geompy.GetObjectIDs(Group), where Group is a group for which its object's are returned. +\n Returns: List of IDs.
  • +
+ +\n Arguments: 1 Shape + its subshapes. + +\n Dialog Box: + +\image html editgroup.png + +Our TUI Scripts provide you with useful examples of +\ref tui_working_with_groups_page "Working with Groups". + +*/ \ No newline at end of file diff --git a/doc/salome/gui/GEOM/isos.htm b/doc/salome/gui/GEOM/isos.htm deleted file mode 100755 index d2eae1bec..000000000 --- a/doc/salome/gui/GEOM/isos.htm +++ /dev/null @@ -1,113 +0,0 @@ - - - - - -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 deleted file mode 100755 index 0ad6efe1a..000000000 --- a/doc/salome/gui/GEOM/line.htm +++ /dev/null @@ -1,159 +0,0 @@ - - - - - -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 deleted file mode 100755 index 8e9387c94..000000000 --- a/doc/salome/gui/GEOM/local_coordinate_system.htm +++ /dev/null @@ -1,183 +0,0 @@ - - - - - -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 any object in the object browser or 3D viewer, in this case the - coordinates of origin and axes direction of the LCS are calculated automatically - basing on the selected object.

- -

Arguments: - Name + reference object.

- -

 

- -

- -

 

- -

The last algorithm of LCS construction allows - to define the coordinates of origin by a point and axes directions by - a line or a vector.

- -

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 deleted file mode 100755 index 122025fef..000000000 --- a/doc/salome/gui/GEOM/measurement_tools.htm +++ /dev/null @@ -1,452 +0,0 @@ - - - - - -Measurement Tools - - - - - - - - - - - - -

Measurement Tools

- -

Point Coordinates

- -

import math

- -

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)

- -

 

- -

# check the obtained - coordinate values

- -

tolerance = 1.e-07

- -

def IsEqual(val1, - val2): return (math.fabs(val1 - val2) < tolerance)

- -

 

- -

if IsEqual(coords[0], - 15.) and IsEqual(coords[1], 23.) and IsEqual(coords[2], 80.):

- -

    print - "All values are OK."

- -

else :

- -

    print - "Coordinates of point must be (15, 23, 80), but returned (",

- -

    print - coords[0], ", ", coords[1], ", ", coords[2], ")"

- -

    pass -

- -

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 deleted file mode 100755 index dce4702d8..000000000 --- a/doc/salome/gui/GEOM/mirror_image.htm +++ /dev/null @@ -1,196 +0,0 @@ - - - - - -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 deleted file mode 100755 index 2db2e84a9..000000000 --- a/doc/salome/gui/GEOM/modify_the_location.htm +++ /dev/null @@ -1,219 +0,0 @@ - - - - - -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 deleted file mode 100755 index c42f36e7d..000000000 --- a/doc/salome/gui/GEOM/multi_rotation.htm +++ /dev/null @@ -1,190 +0,0 @@ - - - - - -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 deleted file mode 100755 index 3362e1f57..000000000 --- a/doc/salome/gui/GEOM/multi_transformation.htm +++ /dev/null @@ -1,183 +0,0 @@ - - - - - -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 deleted file mode 100755 index 05449ca5a..000000000 --- a/doc/salome/gui/GEOM/multi_translation.htm +++ /dev/null @@ -1,197 +0,0 @@ - - - - - -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 deleted file mode 100755 index 1fcbf4c89..000000000 --- a/doc/salome/gui/GEOM/newentity_blocks.htm +++ /dev/null @@ -1,340 +0,0 @@ - - - - - -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:

- -
    - -
  • geompy.MakeQuad4Vertices(V1, - V2, V3, V4), where V1, V2, V3, V4 are - four vertices from which a face is constructed. Edges are created automatically.

  • - -
  • geompy.MakeQuad2Edges(E1, - E2), where E1, E2 are edges from which the face is constructed, - two other edges are created automatically.

  • - -
  • geompy.MakeQuad(E1, E2, E3, E4), - where E1, E2, E3, E4 are four edges from which the face is constructed.

  • -
- -

 

- -

Arguments: -

- -
    - -
  • Name + 4 Points, or

  • - -
  • Name + 2 Edges, or

  • - -
  • Name + 4 Edges.

  • -
- -

 

- -

Dialog Box:

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

-

-

- -

 

- -

 

- -

Example:

- -

 

- -

- -

 

- -

 

- -

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:

- -
    - -
  • geompy.MakeHexa2Faces(F1, - F2), where F1 and F2 are faces - from which the hexahedron is constructed, other four faces are created - automatically.

  • - -
  • geompy.MakeHexa(F1, - F2, F3, F4, F5, F6), where F1 – F6 are six faces from which the - hexahedron is constructed.

  • -
- -

 

- -

Arguments: -

- -
    - -
  • Name + 2 Faces, or

  • - -
  • Name + 6 Faces.

  • -
- -

 

- -

Dialog Box:

- -

 

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

 

-

-

 

-

 

- -

 

- -

Example:

- -

 

- -

     

- -

     

- -

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

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/offset_surface.htm b/doc/salome/gui/GEOM/offset_surface.htm deleted file mode 100755 index 776c23f69..000000000 --- a/doc/salome/gui/GEOM/offset_surface.htm +++ /dev/null @@ -1,151 +0,0 @@ - - - - - -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 deleted file mode 100755 index cd5a9e6b7..000000000 --- a/doc/salome/gui/GEOM/partition.htm +++ /dev/null @@ -1,179 +0,0 @@ - - - - - -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.

- -

 

- -

As far as the intersection - of two objects can produce any type of geometrical objects, Reconstruction - Limit box allows to choose the preferrable result, i.e. a solid, - a shell, a list of faces, etc.

- -

TUI Command: - geompy.MakePartition(ListOfShapes, - ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, - ListOfMaterials), where ListOfShapes - is a list of shapes to be intersected and  ListOfTools - is a list of shapes to intersect the shapes from ListOfShapes.

- -

Since the implementation of a new version of - PartitionAlgo other parameters are ignored by the current functionality - and remain there only to support the old scripts.  

- -

Arguments: Name + 2 lists of shapes - (the shapes from the first list will be intersected with the shapes from - the second list) + 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 deleted file mode 100755 index 4d392fee0..000000000 --- a/doc/salome/gui/GEOM/pipe_creation.htm +++ /dev/null @@ -1,145 +0,0 @@ - - - - - -Pipe Creation - - - - - - - - - - - - -

Pipe Construction

- -

To generate - a Pipe - in the Main Menu select New Entity - > Generation  - - > Extrusion along a path

- -

 

- -

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 deleted file mode 100755 index 2bd45592a..000000000 --- a/doc/salome/gui/GEOM/plane.htm +++ /dev/null @@ -1,206 +0,0 @@ - - - - - -Plane - - - - - - - - - - - - -

Plane

- -

To create a Plane in the Main Menu select New - Entity - > Basic - > Plane

- -

 

- -

There are three algorithms to create - a plane 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 and a Size of the Plane.

- -

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 - by another Plane or Local Coordinate System and a Size of the Plane.

- -

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 deleted file mode 100755 index 6400c2995..000000000 --- a/doc/salome/gui/GEOM/point.htm +++ /dev/null @@ -1,201 +0,0 @@ - - - - - -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 deleted file mode 100755 index 3c1d4eb4e..000000000 --- a/doc/salome/gui/GEOM/primitives.htm +++ /dev/null @@ -1,379 +0,0 @@ - - - - - -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(25, - 35, 45)

- -

p2 = geompy.MakeVertex(70, - 70, 70)

- -

v = geompy.MakeVector(p1, - p2)

- -

 

- -

# create cylinders

- -

height = 40

- -

 

- -

radius1 = 15

- -

cylinder1 = geompy.MakeCylinder(p1, - v, radius1, height)

- -

 

- -

radius2 = 30

- -

cylinder2 = geompy.MakeCylinderRH(radius2, - height)

- -

 

- -

# add objects in the study

- -

id_cylinder1 = geompy.addToStudy(cylinder1,"Cylinder1")

- -

id_cylinder2 = geompy.addToStudy(cylinder2,"Cylinder2")

- -

 

- -

# display the cylinders

- -

gg.createAndDisplayGO(id_cylinder1)

- -

gg.setDisplayMode(id_cylinder1,1)

- -

gg.createAndDisplayGO(id_cylinder2)

- -

gg.setDisplayMode(id_cylinder2,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 deleted file mode 100755 index fc07f3be3..000000000 --- a/doc/salome/gui/GEOM/propagate.htm +++ /dev/null @@ -1,154 +0,0 @@ - - - - - -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 deleted file mode 100755 index 60a5c824b..000000000 --- a/doc/salome/gui/GEOM/repairing_operations.htm +++ /dev/null @@ -1,1058 +0,0 @@ - - - - - -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 deleted file mode 100755 index 316aed90f..000000000 --- a/doc/salome/gui/GEOM/revolution.htm +++ /dev/null @@ -1,142 +0,0 @@ - - - - - -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 deleted file mode 100755 index 5487b9d14..000000000 --- a/doc/salome/gui/GEOM/rotation.htm +++ /dev/null @@ -1,190 +0,0 @@ - - - - - -Rotation - - - - - - - - - - - - - -

Rotation

- -

To produce - a Rotation in the Main Menu select - Operations - > Transformation - > - Rotation

- -

 

- -

This operation rotates - the initial shape.

- -

 

- -

The - first Rotation algorithm - needs you to define an Object -  to be rotated, - an Axis of rotation and an Angle of rotation.

- -

TUI Command: - geompy.MakeRotation(Shape, Axis, - Angle)

- -

Arguments: - 1 shape + 1 vector for direction of rotation + 1 angle.

- -

 

- -

- -

 

- -

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.

- -

 

- -

The second algorithm allows - to define the rotated Object by - three points. Rotation axis will pass through the Central - Point and will be will be orthogonal to a plane defned by three - points. In this case rotation Angle - is the angle between two vectors directed from the first point to the - second and to the third.

- -

TUI - Command: geompy.MakeRotationThreePoints(Shape, - CentralPoint, Point1, Point2).

- -

Arguments: - 1 shape + 3 points.

- -

 

- -

- -

 

- -

Example:

- -

 

- -

 

- -

  

- -

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

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif deleted file mode 100755 index 0ec8b678c..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif deleted file mode 100755 index aff608b43..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif deleted file mode 100755 index 1a0f0f96d..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif deleted file mode 100755 index b364ba7c2..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif deleted file mode 100755 index 587e81bf9..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif deleted file mode 100755 index bda961eb7..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif b/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif deleted file mode 100755 index dd4046ce4..000000000 Binary files a/doc/salome/gui/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/scale_transform.htm b/doc/salome/gui/GEOM/scale_transform.htm deleted file mode 100755 index 0c1c6338e..000000000 --- a/doc/salome/gui/GEOM/scale_transform.htm +++ /dev/null @@ -1,152 +0,0 @@ - - - - - -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 deleted file mode 100755 index fd55db031..000000000 --- a/doc/salome/gui/GEOM/section.htm +++ /dev/null @@ -1,156 +0,0 @@ - - - - - -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 deleted file mode 100755 index 70800b28a..000000000 Binary files a/doc/salome/gui/GEOM/selectcolor.png and /dev/null differ diff --git a/doc/salome/gui/GEOM/sewing.htm b/doc/salome/gui/GEOM/sewing.htm deleted file mode 100755 index 6851c44d4..000000000 --- a/doc/salome/gui/GEOM/sewing.htm +++ /dev/null @@ -1,150 +0,0 @@ - - - - - -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 deleted file mode 100755 index 9355a95b6..000000000 --- a/doc/salome/gui/GEOM/shape_processing.htm +++ /dev/null @@ -1,388 +0,0 @@ - - - - - -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)

- -

 

- -
    - -
  • Fix - Shape (FixShape) - corrects invalid shapes.

  • - -
  • 3D Tolerance (FixShape.Tolerance3d) - - work tolerance for detection of the problems and correction of them.

  • - -
  • Max 3D Tolerance (FixShape.MaxTolerance3d) -  - maximal - possible tolerance of the shape after correction.

  • - -
  • Fix Face Size (FixFaceSize) - removes - small faces, such as spots and strips.

  • - -
  • Tolerance (FixFaceSize.Tolerance) - - defines minimum possible face size.

  • - -
  • Drop Small Edges (DropSmallEdges) - - removes edges, which merge with neighbouring edges.

  • - -
  • 3D Tolerance (DropSmallEdges.Tolerance3d) - - defines minimum possible distance between two parallel edges.

  • - -
  • Split Angle (SplitAngle) - splits faces - based on conical surfaces, surfaces of revolution and cylindrical surfaces - in segments using a certain angle .  

  • - -
  • Angle (SplitAngle.Angle) - the central - angle of the resulting segments (i.e. we obtain two segments if Angle=180, - four if Angle=90, etc).

  • - -
  • Max. Tolerance (SplitAngle.MaxTolerance) - - maximum possible tolerance among the resulting segments.

  • - -
  • Split Closed Faces - (SplitClosedFaces) - splits - closed faces in segments. The number of segments depends on the number - of splitting points.

  • - -
  • Number of splitting points (SplitClosedFaces.NbSplitPoints) - - the number of splitting points.

  • - -
  • Split Continuity (SplitContinuity) - splits shapes to reduce - continuities of curves and surfaces.

  • - -
  • 3D Tolerance - (SplitContinuity.Tolerance3d) - 3D tolerance for correction of geometry.

  • - -
  • Surface Continuity (SplitContinuity.SurfaceContinuity) - required - continuity for surfaces.

  • - -
  • Curve Continuity (SplitContinuity.CurveContinuity) - - required continuity for curves.

  • -
- -

This and the previous parameters can - take the following values:

- -

Parametric Continuity -

- -

C0 - (Positional Continuity): curves are joined (the end positions of curves - or surfaces are coincidental. The curves or surfaces may still meet at - an angle, giving rise to a sharp corner or edge).

- -

C1 - (Tangential Continuity): first derivatives are equal (the end vectors - of curves or surfaces are parallel, ruling out sharp edges).

- -

C2 - (Curvature Continuity): first and second derivatives are equal (the end - vectors of curves or surfaces are of the same magnitude).

- -

CN - N-th derivatives are equal (both the direction and the magnitude of the - Nth derivatives of curves or surfaces (d/du C(u)) are the same at junction.

- -

Geometric Continuity

- -

G1: - first derivatives are proportional at junction

- -

The curve tangents thus have the same - direction, but not necessarily the same magnitude. i.e., C1'(1) = (a,b,c) - and C2'(0) = (k*a, k*b, k*c).

- -

G2: - first and second derivatives are proportional at junction

- -

As the names imply, geometric continuity - requires the geometry to be continuous, while parametric continuity requires - that the underlying parameterization was continuous as well.

- -

Parametric continuity of order n implies - geometric continuity of order n, but not vice-versa.

- -
    - -
  • Bspline - Restriction (BsplineRestriction) - converts curves and surfaces - to Bsplines and processes them with the following parameters:

  • - -
  • Surface Mode - (BSplineRestriction.SurfaceMode) - approximation of surfaces if restriction - is necessary.

  • - -
  • 3D Curve Mode (BSplineRestriction.Curve3dMode) - conversion - of any 3D curve to BSpline and approximation.

  • - -
  • 2D Curve Mode (BSplineRestriction.Curve2dMode) - - conversion of any 2D curve to BSpline - and approximation.

  • - -
  • 3D - Tolerance (BSplineRestriction.Tolerance3d) - defines the possibility - of surfaces and 3D curves approximation with the specified parameters.

  • - -
  • 2D - Tolerance (BSplineRestriction.Tolerance2d) - defines the possibility - of surfaces and 2D curves approximation with the specified parameters.

  • - -
  • Required - Degree (BSplineRestriction.RequiredDegree) - required degree of - the resulting BSplines.

  • - -
  • Required - number of segments (BSplineRestriction.RequiredNbSegments) - required - maximum number of segments of resultant BSplines

  • - -
  • 3D - Continuity (BSplineRestriction.Continuity3d) - continuity of the - resulting surfaces and 3D curves.

  • - -
  • 2D - Continuity (BSplineRestriction.Continuity2d) - continuity of the - resulting 2D curves.

  • - -
  • To Bezier (ToBezier) - converts curves - and surfaces of any type to Bezier curves and surfaces.

  • - -
  • Surface Mode - (ToBezier.SurfaceMode) - if checked in, allows conversion of surfaces.

  • - -
  • 3D Curve Mode (ToBezier.Curve3dMode) - if checked in, allows - conversion of 2D curves.

  • - -
  • 2D Curve Mode (ToBezier.Curve2dMode) - if checked in, allows - conversion of 3D curves.

  • - -
  • Max Tolerance (ToBezier.MaxTolerance) - defines - tolerance for detection and correction - of problems.

  • - -
  • Same Parameter (SameParameter) –  fixes - edges of 2D and 3D curves not having the same parameter.

  • - -
  • 3D Tolerance (SameParameter.Tolerance3d) - – defines tolerance for fixing - of edges.

  • -
- -

 

- -

Dialog Box:

- -

 

- -

- -

 

- -

 

- -

Example:

- -

 

- -

Shape before applying Shape Processing (FixShape - operator).

- -

 

- -

   

- -

 

- -

The - same shape after applying Shape Processing.

- -

 

- -

- -

 

- -

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

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/shell.htm b/doc/salome/gui/GEOM/shell.htm deleted file mode 100755 index ede227480..000000000 --- a/doc/salome/gui/GEOM/shell.htm +++ /dev/null @@ -1,137 +0,0 @@ - - - - - -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 deleted file mode 100755 index 1bff414a8..000000000 --- a/doc/salome/gui/GEOM/sketcher.htm +++ /dev/null @@ -1,221 +0,0 @@ - - - - - -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:

- -
    - -
  • absolute coordinates - X,Y;

  • - -
  • relative coordinates - DX, DY (with respect to the current point);

  • - -
  • selection of an existing - point.

  • -
- -

4. Destination direction by means of:

- -
    - -
  • angle between the new - segment and the previous one;

  • - -
  • perpendicular to the - previous segment (same as previous, but angle is predefined and is equal - to 90 degrees);

  • - -
  • tangent to the previous - segment;

  • - -
  • vector components DX, - DY.

  • -
- -

5. Parameters of an element (for segment : - length or target X or Y coordinate value, for arc : radius and angle).

- -

 

- -

Dialog Box:

- -

 

- -

  

- -

 

- -

Example:

- -

 

- -

  

- -

 

- -

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

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/sketcher_tui.htm b/doc/salome/gui/GEOM/sketcher_tui.htm deleted file mode 100755 index 2294988a4..000000000 --- a/doc/salome/gui/GEOM/sketcher_tui.htm +++ /dev/null @@ -1,182 +0,0 @@ - - - - - -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 deleted file mode 100755 index a46e8a241..000000000 --- a/doc/salome/gui/GEOM/solid.htm +++ /dev/null @@ -1,138 +0,0 @@ - - - - - -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 deleted file mode 100755 index b23ecdcab..000000000 --- a/doc/salome/gui/GEOM/sphere.htm +++ /dev/null @@ -1,166 +0,0 @@ - - - - - -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/static/doxygen.css b/doc/salome/gui/GEOM/static/doxygen.css new file mode 100755 index 000000000..88e613d23 --- /dev/null +++ b/doc/salome/gui/GEOM/static/doxygen.css @@ -0,0 +1,170 @@ +H1 { + text-align: center; +} + +CAPTION { + font-weight: bold +} + +/* Link in the top navbar */ +A.qindex {} + +A.qindexRef {} + +/* Link to any cross-referenced Doxygen element */ +A.el { + text-decoration: none; + font-weight: bold +} + +A.elRef { + font-weight: bold +} + +/* Link to any cross-referenced Doxygen element inside a code section + (ex: header) +*/ +A.code { + text-decoration: none; + font-weight: normal; + color: #4444ee +} + +A.codeRef { + font-weight: normal; + color: #4444ee +} + +A:hover { + text-decoration: none; + background-color: lightblue +} + +DL.el { + margin-left: -1cm +} + +/* A code fragment (ex: header) */ +DIV.fragment { + width: 100%; + border: none; + background-color: #CCCCCC +} + +/* In the alpha list (coumpound index), style of an alphabetical index letter */ +DIV.ah { + background-color: #CCCCCC; + font-weight: bold; + color: #ffffff; + margin-bottom: 3px; + margin-top: 3px +} + +/* Method name (+ type) */ +TD.md { + background-color: lightblue; + font-weight: bold; +} + +/* Method parameter (some of them) */ +TD.mdname1 { + background-color: lightblue; + font-weight: bold; color: #602020; +} + +/* Method parameter (some of them) */ +TD.mdname { + background-color: lightblue; + font-weight: bold; + color: #602020; + width: 600px; +} + +/* Separator between methods group (usually empty, seems not supported by IE) */ +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold +} + +DIV.groupText { + margin-left: 16px; + font-style: italic; + font-size: smaller +} + +BODY { + background: #FFFFFF; +} + +/*div.div-page { + background-color: #FFFFFF; + margin-left: 1em; + margin-right: 1em; + margin-top: 1em; + margin-bottom: 0.1em; + + padding-left: 1em; + padding-right: 1em; + padding-top: 0.5em; + padding-bottom: 0.5em; + + border: 2px solid #0D299A; + border-width: 2px; + border-color: #0D299A; +}*/ + +div.tabs { + text-align: justify; + margin-left : 2px; + margin-right : 2px; + margin-top : 2px; + margin-bottom : 2px + font-weight: bold; + color: #FFFFFF; +} + +DIV.div-footer { + margin-left: 1em; + margin-right: 1em; + margin-bottom: 0.2em; + text-align: right; + font-size: 9pt; +} + +/* In File List, Coumpound List, etc, 1st column of the index */ +TD.indexkey { + background-color: #CCCCCC; + font-weight: bold; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} + +/* In File List, Coumpound List, etc, 2nd column of the index */ +TD.indexvalue { + background-color: #CCCCCC; + font-style: italic; + padding-right : 10px; + padding-top : 2px; + padding-left : 10px; + padding-bottom : 2px; + margin-left : 0px; + margin-right : 0px; + margin-top : 2px; + margin-bottom : 2px +} + +span.keyword { color: #008000 } +span.keywordtype { color: #604020 } +span.keywordflow { color: #e08000 } +span.comment { color: #800000 } +span.preprocessor { color: #806020 } +span.stringliteral { color: #002080 } +span.charliteral { color: #008080 } diff --git a/doc/salome/gui/GEOM/static/footer.html b/doc/salome/gui/GEOM/static/footer.html new file mode 100755 index 000000000..56d52a61a --- /dev/null +++ b/doc/salome/gui/GEOM/static/footer.html @@ -0,0 +1,10 @@ + + + + + +
+
Copyright © 2003-2007 CEA, EDF
+
+ + diff --git a/doc/salome/gui/GEOM/static/header.html b/doc/salome/gui/GEOM/static/header.html new file mode 100755 index 000000000..a70a95e30 --- /dev/null +++ b/doc/salome/gui/GEOM/static/header.html @@ -0,0 +1,12 @@ + + + + + $title + + +
+
+SALOME documentation central +
+
diff --git a/doc/salome/gui/GEOM/suppress_faces.htm b/doc/salome/gui/GEOM/suppress_faces.htm deleted file mode 100755 index 1322bddf2..000000000 --- a/doc/salome/gui/GEOM/suppress_faces.htm +++ /dev/null @@ -1,143 +0,0 @@ - - - - - -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 deleted file mode 100755 index 1ced853b9..000000000 --- a/doc/salome/gui/GEOM/suppress_holes.htm +++ /dev/null @@ -1,154 +0,0 @@ - - - - - -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 deleted file mode 100755 index 53228dc22..000000000 --- a/doc/salome/gui/GEOM/suppress_internal_wires.htm +++ /dev/null @@ -1,160 +0,0 @@ - - - - - -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:

- -
    - -
  • Name of the resulting - object

  • - -
  • User specified face

  • - -
  • User specified internal - wires (lying on this face except for its boundary), or, in case the Remove all internal wires box is checked, - all internal wires

  • -
- -

 

- -

- -

 

- -

Example:

- -

 

- -

   

- -

 

- -

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

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/transformation_operations.htm b/doc/salome/gui/GEOM/transformation_operations.htm deleted file mode 100755 index b5f37efb7..000000000 --- a/doc/salome/gui/GEOM/transformation_operations.htm +++ /dev/null @@ -1,1070 +0,0 @@ - - - - - -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

- -

rotation1 = geompy.MakeRotation(cylinder, vr, math.pi)

-

rotation2 = geompy.MakeRotationThreePoints(cylinder, p4, p1, p2)

- -

 

- -

# add objects in the study

- -

id_vr = geompy.addToStudy(vr, "Rotation 1 axis")

-

id_p4 = geompy.addToStudy(p4, "Rotation 2 center")

-

id_p1 = geompy.addToStudy(p1, "Rotation 2 point 1")

-

id_p2 = geompy.addToStudy(p2, "Rotation 2 point 2")

-

id_cylinder = geompy.addToStudy(cylinder, "Cylinder")

-

id_rotation1 = geompy.addToStudy(rotation1, "Rotation 1")

-

id_rotation2 = geompy.addToStudy(rotation2, "Rotation 2")

- -

 

- -

# display the results

- -

gg.createAndDisplayGO(id_vr)

-

gg.createAndDisplayGO(id_p4)

-

gg.createAndDisplayGO(id_p1)

-

gg.createAndDisplayGO(id_p2)

-

gg.createAndDisplayGO(id_cylinder)

-

gg.setDisplayMode(id_cylinder,1)

-

gg.createAndDisplayGO(id_rotation1)

-

gg.createAndDisplayGO(id_rotation2)

-

gg.setDisplayMode(id_rotation1,1)

-

gg.setDisplayMode(id_rotation2,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 another object through 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 another object through 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 another object through 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.setTransparency(id_box,0.5)

- -

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 deleted file mode 100755 index 8ab26d96a..000000000 --- a/doc/salome/gui/GEOM/translation.htm +++ /dev/null @@ -1,192 +0,0 @@ - - - - - -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 deleted file mode 100755 index 9c9c05cab..000000000 --- a/doc/salome/gui/GEOM/transparency.htm +++ /dev/null @@ -1,126 +0,0 @@ - - - - - -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 deleted file mode 100755 index 62b81e72d..000000000 --- a/doc/salome/gui/GEOM/turus.htm +++ /dev/null @@ -1,151 +0,0 @@ - - - - - -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 deleted file mode 100755 index 31fc7d1cd..000000000 --- a/doc/salome/gui/GEOM/vector.htm +++ /dev/null @@ -1,158 +0,0 @@ - - - - - -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 deleted file mode 100755 index fe4fb81c0..000000000 --- a/doc/salome/gui/GEOM/viewing_geometrical_objects.htm +++ /dev/null @@ -1,179 +0,0 @@ - - - - - -Viewing Geometrical Objects - - - - - - - - - - - - -

Viewing Geometrical Objects

- -

Newly created geometrical objects are automatically displayed in the - OCC 3D Viewer.

- -

 

- -

OCC 3D Viewer is described in - the documentation on GUI module.

- -

After the object has appeared in the Viewer, you can select it with - left mouse click to change its presentation parameters and access to other - useful options by right-clicking on the selected object.

- -

 

- -

- -

 

- -
    - -
  • Rename - allows - to change the name of the geometric object. -

  • - -
  • Display - Mode - allows to select between - Wireframe and Shading presentation.

  • - -
  • Color - - allows to change the filling color in the standard - Select Color menu.

  • - -
  • Transparency - allows to change the - transparency of mesh elements.

  • - -
  • Isos - - allows to change the number of isolines - displayed within a shape.

  • - -
  • Erase - allows to hide the selected mesh from the - viewer. TUI Command : sg.EraseOnly(ID)

  • - -
  • Erase all  - - allows to hide all objects from the viewer. TUI Command: sg.EraseAll()

  • - -
  • Display Only -allows to display only the selected - mesh, hiding all other from the viewer. TUI Command: sg.DisplayOnly(ID)

  • - -
  • Update - - refreshes the presentation of your mesh in the Object Browser, applying - all recent changes.

  • - -
  • Dump view - - exports an object from the viewer in bmp, - png, jpg or - jpeg image format.

  • - -
  • Change background - - allows to redefine the background color. By default it is black.  

  • -
- -

 

- -

Some of these functionalities are available through right-clicking on - the viewer background:

- -

 

- -

- -

 

- -
    - -
  • Select Only - provides a filter for exclusive selection of objects of a certain type. -

  • -
- -

 

- -

 

- - - - diff --git a/doc/salome/gui/GEOM/webhelp.cab b/doc/salome/gui/GEOM/webhelp.cab deleted file mode 100755 index b942f642f..000000000 Binary files a/doc/salome/gui/GEOM/webhelp.cab and /dev/null differ diff --git a/doc/salome/gui/GEOM/webhelp.jar b/doc/salome/gui/GEOM/webhelp.jar deleted file mode 100755 index 1d1697e76..000000000 Binary files a/doc/salome/gui/GEOM/webhelp.jar and /dev/null differ diff --git a/doc/salome/gui/GEOM/whcsh_home.htm b/doc/salome/gui/GEOM/whcsh_home.htm deleted file mode 100755 index bc99598c0..000000000 --- a/doc/salome/gui/GEOM/whcsh_home.htm +++ /dev/null @@ -1,600 +0,0 @@ - - - - - - diff --git a/doc/salome/gui/GEOM/whcshdata.htm b/doc/salome/gui/GEOM/whcshdata.htm deleted file mode 100755 index 2f9ae70a0..000000000 --- a/doc/salome/gui/GEOM/whcshdata.htm +++ /dev/null @@ -1,87 +0,0 @@ - - -Geometry Module Reference Manual - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whd_dpns.htm b/doc/salome/gui/GEOM/whd_dpns.htm deleted file mode 100755 index 3983ccbdd..000000000 --- a/doc/salome/gui/GEOM/whd_dpns.htm +++ /dev/null @@ -1,43 +0,0 @@ - - -Navigator Pane - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whd_hide0.gif b/doc/salome/gui/GEOM/whd_hide0.gif deleted file mode 100755 index 97ea0bb6d..000000000 Binary files a/doc/salome/gui/GEOM/whd_hide0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_hide1.gif b/doc/salome/gui/GEOM/whd_hide1.gif deleted file mode 100755 index 97ea0bb6d..000000000 Binary files a/doc/salome/gui/GEOM/whd_hide1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_hide2.gif b/doc/salome/gui/GEOM/whd_hide2.gif deleted file mode 100755 index 97ea0bb6d..000000000 Binary files a/doc/salome/gui/GEOM/whd_hide2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_next0.gif b/doc/salome/gui/GEOM/whd_next0.gif deleted file mode 100755 index d92dda522..000000000 Binary files a/doc/salome/gui/GEOM/whd_next0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_next1.gif b/doc/salome/gui/GEOM/whd_next1.gif deleted file mode 100755 index d92dda522..000000000 Binary files a/doc/salome/gui/GEOM/whd_next1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_next2.gif b/doc/salome/gui/GEOM/whd_next2.gif deleted file mode 100755 index d92dda522..000000000 Binary files a/doc/salome/gui/GEOM/whd_next2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_nvp10.htm b/doc/salome/gui/GEOM/whd_nvp10.htm deleted file mode 100755 index 05b5f908c..000000000 --- a/doc/salome/gui/GEOM/whd_nvp10.htm +++ /dev/null @@ -1,15 +0,0 @@ - - -Navigation Pane - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whd_nvp20.htm b/doc/salome/gui/GEOM/whd_nvp20.htm deleted file mode 100755 index 23c23dc4f..000000000 --- a/doc/salome/gui/GEOM/whd_nvp20.htm +++ /dev/null @@ -1,334 +0,0 @@ - - -navigation pane - - - - - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whd_prev0.gif b/doc/salome/gui/GEOM/whd_prev0.gif deleted file mode 100755 index 518561a0d..000000000 Binary files a/doc/salome/gui/GEOM/whd_prev0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_prev1.gif b/doc/salome/gui/GEOM/whd_prev1.gif deleted file mode 100755 index 518561a0d..000000000 Binary files a/doc/salome/gui/GEOM/whd_prev1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_prev2.gif b/doc/salome/gui/GEOM/whd_prev2.gif deleted file mode 100755 index 518561a0d..000000000 Binary files a/doc/salome/gui/GEOM/whd_prev2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_show0.gif b/doc/salome/gui/GEOM/whd_show0.gif deleted file mode 100755 index 60e8e6897..000000000 Binary files a/doc/salome/gui/GEOM/whd_show0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_show1.gif b/doc/salome/gui/GEOM/whd_show1.gif deleted file mode 100755 index 60e8e6897..000000000 Binary files a/doc/salome/gui/GEOM/whd_show1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_show2.gif b/doc/salome/gui/GEOM/whd_show2.gif deleted file mode 100755 index 60e8e6897..000000000 Binary files a/doc/salome/gui/GEOM/whd_show2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_sync0.gif b/doc/salome/gui/GEOM/whd_sync0.gif deleted file mode 100755 index 1a9785ce6..000000000 Binary files a/doc/salome/gui/GEOM/whd_sync0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_sync1.gif b/doc/salome/gui/GEOM/whd_sync1.gif deleted file mode 100755 index 1a9785ce6..000000000 Binary files a/doc/salome/gui/GEOM/whd_sync1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_sync2.gif b/doc/salome/gui/GEOM/whd_sync2.gif deleted file mode 100755 index 1a9785ce6..000000000 Binary files a/doc/salome/gui/GEOM/whd_sync2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab0.gif b/doc/salome/gui/GEOM/whd_tab0.gif deleted file mode 100755 index 955c42f47..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab1.gif b/doc/salome/gui/GEOM/whd_tab1.gif deleted file mode 100755 index b3ec41d6d..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab2.gif b/doc/salome/gui/GEOM/whd_tab2.gif deleted file mode 100755 index 08fb0ce4f..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab3.gif b/doc/salome/gui/GEOM/whd_tab3.gif deleted file mode 100755 index 1819c8e8f..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab3.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab4.gif b/doc/salome/gui/GEOM/whd_tab4.gif deleted file mode 100755 index 1a6fc4f4a..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab4.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab5.gif b/doc/salome/gui/GEOM/whd_tab5.gif deleted file mode 100755 index 934019260..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab5.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab6.gif b/doc/salome/gui/GEOM/whd_tab6.gif deleted file mode 100755 index fe312d238..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab6.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab7.gif b/doc/salome/gui/GEOM/whd_tab7.gif deleted file mode 100755 index 3b95ae24e..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab7.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tab8.gif b/doc/salome/gui/GEOM/whd_tab8.gif deleted file mode 100755 index c80acc8d5..000000000 Binary files a/doc/salome/gui/GEOM/whd_tab8.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_tabs.htm b/doc/salome/gui/GEOM/whd_tabs.htm deleted file mode 100755 index e8c498c88..000000000 --- a/doc/salome/gui/GEOM/whd_tabs.htm +++ /dev/null @@ -1,533 +0,0 @@ - - -WebHelp Tabs Frame in Navigation Pane - - - - - - - - - - - \ No newline at end of file diff --git a/doc/salome/gui/GEOM/whd_toc1.gif b/doc/salome/gui/GEOM/whd_toc1.gif deleted file mode 100755 index 11017258c..000000000 Binary files a/doc/salome/gui/GEOM/whd_toc1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_toc2.gif b/doc/salome/gui/GEOM/whd_toc2.gif deleted file mode 100755 index 975e5f6f4..000000000 Binary files a/doc/salome/gui/GEOM/whd_toc2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_toc3.gif b/doc/salome/gui/GEOM/whd_toc3.gif deleted file mode 100755 index 4b8122f0f..000000000 Binary files a/doc/salome/gui/GEOM/whd_toc3.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_toc4.gif b/doc/salome/gui/GEOM/whd_toc4.gif deleted file mode 100755 index 3f9a03686..000000000 Binary files a/doc/salome/gui/GEOM/whd_toc4.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_topic.xml b/doc/salome/gui/GEOM/whd_topic.xml deleted file mode 100755 index b1946d757..000000000 --- a/doc/salome/gui/GEOM/whd_topic.xml +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - - - - - -"]]> - - - - -"]]> - - - - -"; -OutputInTopicNavBarDataWebSearch.form();]]> - - - - - - - - - - -"]]> - - - diff --git a/doc/salome/gui/GEOM/whd_wbsh0.gif b/doc/salome/gui/GEOM/whd_wbsh0.gif deleted file mode 100755 index 383688e7c..000000000 Binary files a/doc/salome/gui/GEOM/whd_wbsh0.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_wbsh1.gif b/doc/salome/gui/GEOM/whd_wbsh1.gif deleted file mode 100755 index 383688e7c..000000000 Binary files a/doc/salome/gui/GEOM/whd_wbsh1.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whd_wbsh2.gif b/doc/salome/gui/GEOM/whd_wbsh2.gif deleted file mode 100755 index 383688e7c..000000000 Binary files a/doc/salome/gui/GEOM/whd_wbsh2.gif and /dev/null differ diff --git a/doc/salome/gui/GEOM/whfbody.htm b/doc/salome/gui/GEOM/whfbody.htm deleted file mode 100755 index ea648e4b3..000000000 --- a/doc/salome/gui/GEOM/whfbody.htm +++ /dev/null @@ -1,37 +0,0 @@ - - -Search Result - - - - - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whfdhtml.htm b/doc/salome/gui/GEOM/whfdhtml.htm deleted file mode 100755 index c2e65bea1..000000000 --- a/doc/salome/gui/GEOM/whfdhtml.htm +++ /dev/null @@ -1,30 +0,0 @@ - - -Search Frame - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whfform.htm b/doc/salome/gui/GEOM/whfform.htm deleted file mode 100755 index 0f8f90ab6..000000000 --- a/doc/salome/gui/GEOM/whfform.htm +++ /dev/null @@ -1,136 +0,0 @@ - - -Search Form - - - - - - - - - - - - - - diff --git a/doc/salome/gui/GEOM/whfhost.js b/doc/salome/gui/GEOM/whfhost.js deleted file mode 100755 index c3c7144fa..000000000 --- a/doc/salome/gui/GEOM/whfhost.js +++ /dev/null @@ -1,945 +0,0 @@ -// 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

Our TUI Scripts - provide you with useful examples of creation of Basic - Geometric Objects.