From: mkr Date: Wed, 19 Oct 2005 15:30:29 +0000 (+0000) Subject: New Help for GEOM. X-Git-Tag: V3_1_0a3~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3e8f3c0f8e2e822cb4dc3c8d56f34fe349752b75;p=modules%2Fgeom.git New Help for GEOM. --- diff --git a/doc/salome/GEOM/add_point_on_edge.htm b/doc/salome/GEOM/add_point_on_edge.htm new file mode 100755 index 000000000..2134b248d --- /dev/null +++ b/doc/salome/GEOM/add_point_on_edge.htm @@ -0,0 +1,165 @@ + + + + + +Add Point on Edge + + + + + + + + + + + + +

Add Point on Edge

+ +

To Add Point on Edge in the Main Menu select + Repair - > Add Point on Edge.

+ +

 

+ +

This operation splits an edge in two in accordance + with the specified mode (by length or by parameter) and a value specifying + the position of the point on edge (for example val =0.5; mode = Length). + This operation is available in OCC Viewer + only.

+ +

 

+ +

Result: GEOM_Object.

+ +

 

+ +

TUI Command : + geompy.DivideEdge(Shape, EdgeID, + Value, IsByParameter), where Shape is a shape which contains an + edge to be divided, EdgeID is the ID of the edge to be divided, if it + = -1, then Shape is an edge, Value is a paramter on the edge or a length. + IsByParameter if it is True then Value is the edge parameter in the range + [0:1] otherwise it is a length of the edge in the range [0:1]

+ +

 

+ +

Arguments: + Name + 1 Edge + 1 value setting the position of the point according to + one of the selected modes

+ +

 

+ +

Dialog + Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

     

+ +

 

+ +

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

+ +

 

+ + + + diff --git a/doc/salome/GEOM/arc.htm b/doc/salome/GEOM/arc.htm new file mode 100755 index 000000000..7d62f043c --- /dev/null +++ b/doc/salome/GEOM/arc.htm @@ -0,0 +1,135 @@ + + + + + +Arc + + + + + + + + + + + +

Arc

+ +

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

+ +

 

+ +

You can define + an Arc by by three + Points that lie on it. Point1 is the starting point of + the arc, Point2 is a middle point of the arc and Point3 is the ending + point of the arc.

+ +

The + Result of the operation will be a + GEOM_Object (edge).

+ +

 

+ +

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

+ +

Arguments: + Name + 3 vertices.

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

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

+ +

 

+ + + + diff --git a/doc/salome/GEOM/archimede.htm b/doc/salome/GEOM/archimede.htm new file mode 100755 index 000000000..bc1c43e8b --- /dev/null +++ b/doc/salome/GEOM/archimede.htm @@ -0,0 +1,135 @@ + + + + + +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/GEOM/basic_geometrical_objects.htm b/doc/salome/GEOM/basic_geometrical_objects.htm new file mode 100755 index 000000000..6e38ea76f --- /dev/null +++ b/doc/salome/GEOM/basic_geometrical_objects.htm @@ -0,0 +1,656 @@ + + + + + +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 on two points

+ +

vxy  = + geompy.MakeVector(px, py)

+ +

 

+ +

# create a line with a point and a vector

+ +

line1 = geompy.MakeLine(pz, + vxy)

+ +

 

+ +

#create a line on 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 vector on two points

+ +

vxy  = + geompy.MakeVector(px, py)

+ +

 

+ +

# create circle with point, vector and radius

+ +

circle1 = geompy.MakeCircle(pz, + vxy, 30)

+ +

 

+ +

#create circle on three points

+ +

circle2 = geompy.MakeCircleThreePnt(p0, + px, py)

+ +

 

+ +

# add objects in 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 vector on two points

+ +

vector  = + geompy.MakeVector(p0, p50)

+ +

 

+ +

# create ellipse with point, vector and radiuses

+ +

ellipse = geompy.MakeEllipse(p50, + vector, 50, 25)

+ +

 

+ +

# add objects in study

+ +

id_vector  = + geompy.addToStudy(vector, "Vector")

+ +

id_ellipse = geompy.addToStudy(ellipse,"Ellipse")

+ +

 

+ +

# display normal vector and ellipse

+ +

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 polyline on list of points

+ +

polyline = geompy.MakePolyline([p0, + p1, p2, p3, p4])

+ +

 

+ +

# create bezier on list of points

+ +

bezier = geompy.MakeBezier([p0, + p1, p2, p3, p4])

+ +

 

+ +

#create interpolation curve on list of points

+ +

interpol = geompy.MakeInterpol([p0, + p1, p2, p3, p4])

+ +

 

+ +

# add objects in 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 points and 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 vector on two points

+ +

vector1 = geompy.MakeVector(p1, + p2)

+ +

 

+ +

# create vector with the given components

+ +

vector2 = geompy.MakeVectorDXDYDZ(30, + 30, 100)

+ +

 

+ +

# add objects in 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 points and 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 vector with the given components

+ +

vector = geompy.MakeVectorDXDYDZ(100., + 100., 100.)

+ +

 

+ +

# create vector with two points

+ +

vector_arc = geompy.MakeVector(p2, + p5)

+ +

 

+ +

# create arc with three points

+ +

arc = geompy.MakeArc(p2, + p4, p5)

+ +

 

+ +

# create wire

+ +

wire = geompy.MakeWire([vector_arc, + arc])

+ +

 

+ +

# create face

+ +

isPlanarWanted = 1

+ +

face = geompy.MakeFace(wire, + isPlanarWanted)

+ +

trimsize = 1000.

+ +

 

+ +

# create plane with point, vector and trimsize

+ +

plane1 = geompy.MakePlane(p1, + vector, trimsize)

+ +

 

+ +

# create plane with three points and trimsize

+ +

plane2 = geompy.MakePlaneThreePnt(p1, + p2, p3, trimsize)

+ +

 

+ +

# create plane with given face

+ +

plane3 = geompy.MakePlaneFace(face, + trimsize)

+ +

 

+ +

# add objects in 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 points and 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/GEOM/basic_operations.htm b/doc/salome/GEOM/basic_operations.htm new file mode 100755 index 000000000..afe039963 --- /dev/null +++ b/doc/salome/GEOM/basic_operations.htm @@ -0,0 +1,242 @@ + + + + + +Basic Operations + + + + + + + + + + + +

Basic Operations

+ +

Partition

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertex and vector

+ +

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

+ +

p200 = geompy.MakeVertex(200., + 200., 200.)

+ +

pz   = + geompy.MakeVertex(  0., +   0., + 100.)

+ +

 

+ +

# create vector

+ +

vxyz = geompy.MakeVectorDXDYDZ(100., + 100., 100.)

+ +

 

+ +

# create box with two points

+ +

box = geompy.MakeBoxTwoPnt(p0, + p200)

+ +

 

+ +

# create 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 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 partition objects and 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 vertex and vector

+ +

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

+ +

p200 = geompy.MakeVertex(200., + 200., 200.)

+ +

 

+ +

# create box with two points

+ +

box = geompy.MakeBoxTwoPnt(p0, + p200)

+ +

 

+ +

# perform an Archimede operation on the given shape with given parameters

+ +

weight  = + 1000000.

+ +

waterdensity = 1.

+ +

meshingdeflection + = 0.01

+ +

archimede  = + geompy.Archimede(box, weight, waterdensity, meshingdeflection)

+ +

 

+ +

# add objects in study

+ +

id_box = geompy.addToStudy(box,"Box")

+ +

id_archimede = geompy.addToStudy(archimede,"Archimede")

+ +

 

+ +

# display box and 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/GEOM/blocks.htm b/doc/salome/GEOM/blocks.htm new file mode 100755 index 000000000..f3b20495e --- /dev/null +++ b/doc/salome/GEOM/blocks.htm @@ -0,0 +1,116 @@ + + + + + +Building of blocks + + + + + + + + + + + +

Building of blocks

+ +

 

+ + + +

 

+ +

 

+ +

To use these options:

+ +

 

+ +

In the main menu select Blocks + submenu.

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/GEOM/blocks_operations.htm b/doc/salome/GEOM/blocks_operations.htm new file mode 100755 index 000000000..6cff43bd2 --- /dev/null +++ b/doc/salome/GEOM/blocks_operations.htm @@ -0,0 +1,258 @@ + + + + + +Blocks Operations + + + + + + + + + + + +

Blocks Operations

+ +

Multi Transformation

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertices

+ +

p_25_25_50 = geompy.MakeVertex(25., + 25., 50.)

+ +

p_50_25_25 = geompy.MakeVertex(50., + 25., 25.)

+ +

p_25_50_25 = geompy.MakeVertex(25., + 50., 25.)

+ +

box = geompy.MakeBoxDXDYDZ(50, + 50, 50)

+ +

top_face = geompy.GetFaceNearPoint(box, + p_25_25_50)

+ +

yz_face = geompy.GetFaceNearPoint(box, + p_50_25_25)

+ +

xz_face = geompy.GetFaceNearPoint(box, + p_25_50_25)

+ +

top_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + top_face)

+ +

yz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + yz_face)

+ +

xz_face_ind = geompy.LocalOp.GetSubShapeIndex(box, + xz_face)

+ +

 

+ +

# Multi-transformate block and glue the result

+ +

box_tr1 = geompy.MakeMultiTransformation1D(box, + yz_face_ind, top_face_ind, 3)

+ +

box_tr2 = geompy.MakeMultiTransformation2D(box, + xz_face_ind, yz_face_ind, 3, top_face_ind, 0, 2)

+ +

 

+ +

# add objects in 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 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 box and sphere

+ +

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

+ +

sphere = geompy.MakeSphereR(100)

+ +

 

+ +

# make compound

+ +

compound = geompy.MakeCompound([box, + sphere])

+ +

 

+ +

# get all the blocks, contained in the given compound

+ +

make_block_explode + = geompy.MakeBlockExplode(compound, 1, 1)

+ +

 

+ +

# add objects in study

+ +

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

+ +

id_make_block_explode + = geompy.addToStudy(make_block_explode[0], "MakeBlockExplode")

+ +

 

+ +

# display results

+ +

gg.createAndDisplayGO(id_compound)

+ +

gg.createAndDisplayGO(id_make_block_explode)

+ +

gg.setDisplayMode(id_make_block_explode,1) +

+ +

 

+ +

Propagate

+ +

import geompy

+ +

import salome

+ +

 

+ +

# create box and sphere

+ +

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

+ +

 

+ +

# check and improve

+ +

check_box = geompy.CheckAndImprove(box)

+ +

  

+ +

# build all possible propagation groups

+ +

listChains = geompy.Propagate(check_box)

+ +

 

+ +

# add objects in study

+ +

geompy.addToStudy(check_box, + "Box")

+ +

for chain in listChains:

+ +

    geompy.addToStudyInFather(check_box, + chain, "propagation chain")

+ +

salome.sg.updateObjBrowser(1) +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/boolean_operations.htm b/doc/salome/GEOM/boolean_operations.htm new file mode 100755 index 000000000..86dc17fa8 --- /dev/null +++ b/doc/salome/GEOM/boolean_operations.htm @@ -0,0 +1,348 @@ + + + + + +Boolean Operations + + + + + + + + + + + +

Boolean Operations

+ +

Fuse

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertex and vector

+ +

p1 = geompy.MakeVertex(25, + 55, 0)

+ +

p2 = geompy.MakeVertex( + 0,  0, 0)

+ +

v = geompy.MakeVector(p1, + p2)

+ +

 

+ +

# create cylinder

+ +

height = 35

+ +

radius1 = 20

+ +

cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

+ +

 

+ +

# create sphere

+ +

sphere = geompy.MakeSphereR(40)

+ +

 

+ +

# make fuse

+ +

fuse = geompy.MakeFuse(cylinder, + sphere)

+ +

 

+ +

# add objects in 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 vertex and vector

+ +

p1 = geompy.MakeVertex(25, + 55, 0)

+ +

p2 = geompy.MakeVertex( + 0,  0, 0)

+ +

v = geompy.MakeVector(p1, + p2)

+ +

 

+ +

# create cylinder

+ +

height = 35

+ +

radius1 = 20

+ +

cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

+ +

 

+ +

# create sphere

+ +

sphere = geompy.MakeSphereR(40)

+ +

 

+ +

# make common

+ +

common = geompy.MakeCommon(cylinder, + sphere)

+ +

 

+ +

# add objects in study

+ +

id_common = geompy.addToStudy(common, + "Common")

+ +

 

+ +

# display results

+ +

gg.createAndDisplayGO(id_common)

+ +

gg.setDisplayMode(id_common,1) +

+ +

 

+ +

Cut

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertex and vector

+ +

p1 = geompy.MakeVertex(25, + 55, 0)

+ +

p2 = geompy.MakeVertex( + 0,  0, 0)

+ +

v = geompy.MakeVector(p1, + p2)

+ +

 

+ +

# create cylinder

+ +

height = 35

+ +

radius1 = 20

+ +

cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

+ +

 

+ +

# create sphere

+ +

sphere = geompy.MakeSphereR(40)

+ +

 

+ +

# make cut

+ +

cut = geompy.MakeCut(cylinder, + sphere)

+ +

 

+ +

# add objects in study

+ +

id_cut = geompy.addToStudy(cut, + "Cut")

+ +

 

+ +

# display results

+ +

gg.createAndDisplayGO(id_cut)

+ +

gg.setDisplayMode(id_cut,1) +

+ +

 

+ +

Section

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertex and vector

+ +

p1 = geompy.MakeVertex(25, + 55, 0)

+ +

p2 = geompy.MakeVertex( + 0,  0, 0)

+ +

v = geompy.MakeVector(p1, + p2)

+ +

 

+ +

# create cylinder

+ +

height = 35

+ +

radius1 = 20

+ +

cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

+ +

 

+ +

# create sphere

+ +

sphere = geompy.MakeSphereR(40)

+ +

 

+ +

# make section

+ +

section = geompy.MakeSection(cylinder, + sphere)

+ +

 

+ +

# add objects in study

+ +

id_section = geompy.addToStudy(section, + "Section")

+ +

 

+ +

# display results

+ +

gg.createAndDisplayGO(id_section)

+ +

gg.setDisplayMode(id_section,1) +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/box.htm b/doc/salome/GEOM/box.htm new file mode 100755 index 000000000..74feb2e36 --- /dev/null +++ b/doc/salome/GEOM/box.htm @@ -0,0 +1,172 @@ + + + + + +Box + + + + + + + + + + + +

Box

+ +

To create a Box + in the Main Menu select New Entity - > Primitives - > Box

+ +

 

+ +

There are 2 algorithms for creation of a Box. +

+ +

The + Result of each operation will be a + GEOM_Object (SOLID).

+ +

 

+ +

Firstly, you can define a Box + by two specified Vertices (its + opposite corners), and with edges, parallel to the coordinate axes.

+ +

TUI Command + : geompy.MakeBoxTwoPnt(Point1, + Point2)

+ +

Arguments: Name + + 2 vertices (opposite corners of the box).

+ +

 

+ +

+ +

 

+ +

Secondly, + you can define a Box by specified dimensions along the coordinate + axes and with edges, parallel to them.  The + center of the box will be at point (DX/2, DY/2, DZ/2).

+ +

TUI Command + : geompy.MakeBoxDXDYDZ(DX, + DY, DZ)

+ +

Arguments: Name + + 3 values (dimensions at origin).

+ +

+ +

 

+ +

NB! The is + a third way to create a Box, which is currently accessible only via TUI commands.

+ +

You + can define a Box by the coordinates + of two Vertices (in this way + you don't need to create them in advance).

+ +

TUI Command: + geompy.MakeBox(x1,y1,z1,x2,y2,z2) +

+ +

Arguments: Name + X, + Y and Z coordinates of both points.

+ +

 

+ +

Example:

+ +

+ +

 

+ +

Our TUI Scripts + provide you with useful examples of creation of Primitives. +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/building_by_blocks.htm b/doc/salome/GEOM/building_by_blocks.htm new file mode 100755 index 000000000..246c6f436 --- /dev/null +++ b/doc/salome/GEOM/building_by_blocks.htm @@ -0,0 +1,330 @@ + + + + + +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 quadrangle face from four edges

+ +

qface1 = geompy.MakeQuad(edge1, + edge2, edge3, edge4)

+ +

 

+ +

# create quadrangle face on two edges

+ +

qface2 = geompy.MakeQuad2Edges(edge1, + edge3)

+ +

 

+ +

# create quadrangle with specified corners

+ +

qface3 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)

+ +

 

+ +

# add objects in 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 vertices, edges and quadrangle faces

+ +

gg.createAndDisplayGO(id_p1)

+ +

gg.createAndDisplayGO(id_p2)

+ +

gg.createAndDisplayGO(id_p3)

+ +

gg.createAndDisplayGO(id_p4)

+ +

gg.createAndDisplayGO(id_edge1)

+ +

gg.createAndDisplayGO(id_edge2)

+ +

gg.createAndDisplayGO(id_edge3)

+ +

gg.createAndDisplayGO(id_edge4)

+ +

gg.createAndDisplayGO(id_qface1)

+ +

gg.setDisplayMode(id_qface1,1)

+ +

gg.createAndDisplayGO(id_qface2)

+ +

gg.setDisplayMode(id_qface2,1)

+ +

gg.createAndDisplayGO(id_qface3)

+ +

gg.setDisplayMode(id_qface3,1) +

+ +

 

+ +

Hexagonal Solid

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertices

+ +

p1 = geompy.MakeVertex( +  0.,   0., +   0.)

+ +

p2 = geompy.MakeVertex(150., +  30.,   0.)

+ +

p3 = geompy.MakeVertex( +  0., 120., +  50.)

+ +

p4 = geompy.MakeVertex( +  0.,  40., +  70.)

+ +

p5 = geompy.MakeVertex(100., +  20.,  45.)

+ +

p6 = geompy.MakeVertex( +  0., 70., +  40.)

+ +

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

+ +

p8 = geompy.MakeVertex( + 70.,-15.,  70.)

+ +

p9 = geompy.MakeVertex( +  0.,  0., +  40.)

+ +

p10 = geompy.MakeVertex( +  0., 70., +   0.)

+ +

p11 = geompy.MakeVertex( + 70., 70.,   0.)

+ +

p12 = geompy.MakeVertex( + 70., -15.,   0.)

+ +

p13 = geompy.MakeVertex( +  0.,  0., +   0.)

+ +

 

+ +

# create faces

+ +

qface1 = geompy.MakeQuad4Vertices(p1, + p2, p3, p4)

+ +

qface2 = geompy.MakeQuad4Vertices(p1, + p2, p5, p4)

+ +

qface3 = geompy.MakeQuad4Vertices(p13, + p12, p11, p10)

+ +

qface4 = geompy.MakeQuad4Vertices(p9, + p8, p7, p6)

+ +

qface5 = geompy.MakeQuad4Vertices(p13, + p9, p6, p10)

+ +

qface6 = geompy.MakeQuad4Vertices(p13, + p9, p8, p12)

+ +

qface7 = geompy.MakeQuad4Vertices(p12, + p8, p7, p11)

+ +

qface8 = geompy.MakeQuad4Vertices(p11, + p7, p6, p10)

+ +

 

+ +

# create hexahedral solid between two given faces

+ +

solid1 = geompy.MakeHexa2Faces(qface1, + qface2)

+ +

 

+ +

# create hexahedral solids, bounded by the six given faces

+ +

solid2 = geompy.MakeHexa(qface3, + qface4, qface5, qface6, qface7, qface8)

+ +

 

+ +

# add objects in study

+ +

id_solid1 = geompy.addToStudy(solid1,"Solid1")

+ +

id_solid2 = geompy.addToStudy(solid2,"Solid2")

+ +

 

+ +

# display solids

+ +

gg.createAndDisplayGO(id_solid1)

+ +

gg.setDisplayMode(id_solid1,1)

+ +

gg.createAndDisplayGO(id_solid2)

+ +

gg.setDisplayMode(id_solid2,1) +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/chamfer.htm b/doc/salome/GEOM/chamfer.htm new file mode 100755 index 000000000..4ad8cfcbe --- /dev/null +++ b/doc/salome/GEOM/chamfer.htm @@ -0,0 +1,192 @@ + + + + + +Chamfer + + + + + + + + + + + + +

Chamfer

+ +

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

+ +

 

+ +

This operation allows you to make chamfer + of the edges of a Shape.

+ +

The Result will + be a GEOM_Object.

+ +

 

+ +

To create + chamfer on all edges of the given shape, you need to define the Main Object to create a chamfer on and + the Dimension (radius) of the + chamfer.  

+ +

TUI Command: + geompy.MakeChamferAll(Shape, D) +

+ +

Arguments: Name + + 1 SHAPE + 1 value (Chamfer dimension).

+ +

 

+ +

 

+ +

 

+ +

To create chamfer on the specified edges of + the given shape,  you + need to define the Main Object + to create a fillet on, select the necessary edges in the object browser + or 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 in the object browser + or in the viewer and define the Dimension + of the Chamfer.

+ +

TUI Command: + geompy.MakeChamferFace(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/GEOM/changing_display_parameters.htm b/doc/salome/GEOM/changing_display_parameters.htm new file mode 100755 index 000000000..c2ed2dffe --- /dev/null +++ b/doc/salome/GEOM/changing_display_parameters.htm @@ -0,0 +1,176 @@ + + + + + +Changing Display Parameters + + + + + + + + + + + +

Changing Displaying Parameters

+ +

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 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 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/GEOM/changing_displaying_parameters.htm b/doc/salome/GEOM/changing_displaying_parameters.htm new file mode 100755 index 000000000..42ab05be2 --- /dev/null +++ b/doc/salome/GEOM/changing_displaying_parameters.htm @@ -0,0 +1,256 @@ + + + + + +Changing displaying parameters + + + + + + + + + + + +

Changing displaying parameters

+ +

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

+ +

 

+ + + +

 

+ +

To set displaying parameters of a geometrical object:

+ +

 

+ +

Right-click on this geometrical object in + the viewer and from the pop-up menu select Properties.

+ +

 

+ +

 

+ +

Wireframe/Shading

+ +

 

+ +

Description: + Set the display mode of the selected shape.

+ +

 

+ +

TUI + Command: gg.setDisplayMode(ID, Short)

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

 

+ +

Color

+ +

 

+ +

Description: + Change the color of a shape.

+ +

 

+ +

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

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

Transparency

+ +

 

+ +

Description: + Change the transparency (between 0 & 1) of a shape.

+ +

 

+ +

TUI Command: + gg.setTransparency(ID, Double)

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

Isos

+ +

 

+ +

Description: + Changes the number of isolines displayed within a shape.

+ +

 

+ +

Arguments: + 2 values (number of isolines).

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

Our TUI Scripts provide you with useful examples + of Changing Displaying Parameters. +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/check_free_boundaries.htm b/doc/salome/GEOM/check_free_boundaries.htm new file mode 100755 index 000000000..d5da15b92 --- /dev/null +++ b/doc/salome/GEOM/check_free_boundaries.htm @@ -0,0 +1,154 @@ + + + + + +Check Free Boundaries + + + + + + + + + + + + +

Check Free Boundaries

+ +

To Check Free Boundaries in the Main Menu + select Repair - > Check Free Boundaries.

+ +

 

+ +

This operation detects wires and edges that + correspond to the shape's boundary, and highlights it

+ +

 

+ +

Result: GEOM_Object. +

+ +

 

+ +

TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), + where Shape is a shape to be checked, NoError is false if an error occurred + while checking free boundaries, ClosedWires is a list of closed free boundary + wires, OpenWires is a list of open free boundary wires.

+ +

 

+ +

Arguments: + Shape

+ +

 

+ +

Dialog + Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

  

+ +

 

+ +

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

+ +

 

+ + + + diff --git a/doc/salome/GEOM/check_free_faces.htm b/doc/salome/GEOM/check_free_faces.htm new file mode 100755 index 000000000..68757732c --- /dev/null +++ b/doc/salome/GEOM/check_free_faces.htm @@ -0,0 +1,148 @@ + + + + + +Check Free Faces + + + + + + + + + + + + +

Check Free Faces

+ +

To Check Free Faces in the Main Menu select + Repair - > Check Free Faces.

+ +

 

+ +

This operation retrieves all free faces from + a given shape. A free face is a face not shared between two shells of + the shape.

+ +

 

+ +

Result: GEOM_Object. + Returns a list of IDs of all free faces, contained in the shape.

+ +

TUI Command : GetFreeFacesIDs(Shape), where + Shape is a shape to be checked.

+ +

Arguments: + Shape

+ +

 

+ +

 

+ +

+ +

 

+ +

Examples:

+ +

 

+ +

 

+ +

 

+ +

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

+ +

 

+ + + + diff --git a/doc/salome/GEOM/circle.htm b/doc/salome/GEOM/circle.htm new file mode 100755 index 000000000..22ad198ca --- /dev/null +++ b/doc/salome/GEOM/circle.htm @@ -0,0 +1,150 @@ + + + + + +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/GEOM/close_contour.htm b/doc/salome/GEOM/close_contour.htm new file mode 100755 index 000000000..3dd603fc4 --- /dev/null +++ b/doc/salome/GEOM/close_contour.htm @@ -0,0 +1,149 @@ + + + + + +Close Contour + + + + + + + + + + + +

Close Contour

+ +

To produce + a Close Contour operation in the + Main Menu select Repair - > Close + Contour.

+ +

 

+ +

This operation closes an open contour and modifies + the underlying face (if needed) in accordance with user specified mode:

+ + + +

This operation is available in OCC + Viewer only.

+ +

 

+ +

Result: GEOM_Object.

+ +

 

+ +

TUI Command: + geompy.CloseContour(Shape, Wires, + IsCommonVertex), where Shape is a shape to be processed, Wires + is a list of edges or wires IDÂ’s which has to be closed within the shape + (if the list contains only one element = -1, the shape itself is considered + as a wire),  IsCommonVertex + if this parameter is True a closure has to be done by creation of a common + vertex, otherwise an edge is added between the end vertices.

+ +

 

+ +

Arguments: Name + 1 shape + contour (Wire, + or a set of Edges) + mode of closure (by vertex or by edge)

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

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

+ +

 

+ + + + diff --git a/doc/salome/GEOM/common.htm b/doc/salome/GEOM/common.htm new file mode 100755 index 000000000..1e07126a1 --- /dev/null +++ b/doc/salome/GEOM/common.htm @@ -0,0 +1,141 @@ + + + + + +Common + + + + + + + + + + + + +

Common

+ +

To produce + a Common in the Main Menu select + Operations - > Boolean - > Common

+ +

 

+ +

This + operation cuts the common part of two shapes and transforms + it into an independent geometrical object.

+ +

 

+ +

The + Result will be a GEOM_Object + (COMPOUND).

+ +

TUI Command: +  geompy.MakeCommon(s1, + s2)

+ +

Arguments: + Name + 2 shapes.

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/complex_objects.htm b/doc/salome/GEOM/complex_objects.htm new file mode 100755 index 000000000..00e9e0437 --- /dev/null +++ b/doc/salome/GEOM/complex_objects.htm @@ -0,0 +1,484 @@ + + + + + +Complex Objects + + + + + + + + + + + +

Complex Objects

+ +

Creation of a Prism

+ +

import geompy

+ +

import salome

+ +

gg = salome.ImportComponentGUI("GEOM")

+ +

 

+ +

# create vertex and 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 vector with the given components

+ +

vector = geompy.MakeVectorDXDYDZ(50., + 50., 50.)

+ +

 

+ +

#create vectors with 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 with 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 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 vertex and vector

+ +

p1 = geompy.MakeVertex( +  10.,  10., +  10.)

+ +

p2 = geompy.MakeVertex( +  15.,  15., +  50.)

+ +

p3 = geompy.MakeVertex( +  40.,  40., +   0.)

+ +

 

+ +

#create vectors with two points

+ +

vector1 = geompy.MakeVector(p1, + p2)

+ +

vector2 = geompy.MakeVector(p1, + p3)

+ +

 

+ +

# create vector with the given components

+ +

vector3 = geompy.MakeVectorDXDYDZ(-20., + -20., 100.)

+ +

 

+ +

# create wire

+ +

wire = geompy.MakeWire([vector1, + vector2])

+ +

 

+ +

# create revolution

+ +

revolution = geompy.MakeRevolution(wire, + vector3, 2.3)

+ +

 

+ +

# add objects in study

+ +

id_vector3    = + geompy.addToStudy(vector3,"Axis")

+ +

id_wire       = + geompy.addToStudy(wire,"Wire")

+ +

id_revolution = geompy.addToStudy(revolution,"Revolution")

+ +

 

+ +

# display vector, wire and 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 vertex and vector

+ +

p1 = geompy.MakeVertex( +  -30.,  -30., +  50.)

+ +

p2 = geompy.MakeVertex( +  -60.,  -60., +  30.)

+ +

p3 = geompy.MakeVertex( +  -30.,  -30., +  10.)

+ +

 

+ +

# create arc with 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 filling

+ +

filling = geompy.MakeFilling(compound, + mindeg, maxdeg, tol3d, tol2d, nbiter)

+ +

 

+ +

# add objects in study

+ +

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

+ +

id_filling = geompy.addToStudy(filling,"Filling")

+ +

 

+ +

# display compound and 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 vector on two points

+ +

vxy = geompy.MakeVector(px, + py)

+ +

 

+ +

# create arc with three points

+ +

arc = geompy.MakeArc(py, + pz, px)

+ +

 

+ +

# create wire

+ +

wire = geompy.MakeWire([vxy, + arc])

+ +

 

+ +

# create edge

+ +

edge = geompy.MakeEdge(p0, + pxyz)

+ +

 

+ +

# create pipe

+ +

pipe = geompy.MakePipe(wire, + edge)

+ +

 

+ +

# add objects in study

+ +

id_wire = geompy.addToStudy(wire,"Wire")

+ +

id_edge = geompy.addToStudy(edge,"Edge")

+ +

id_pipe = geompy.addToStudy(pipe,"Pipe")

+ +

 

+ +

# display wire, edge (path) and pipe

+ +

gg.createAndDisplayGO(id_wire)

+ +

gg.createAndDisplayGO(id_edge)

+ +

gg.createAndDisplayGO(id_pipe)

+ +

gg.setDisplayMode(id_pipe,1) +

+ + + + diff --git a/doc/salome/GEOM/compound.htm b/doc/salome/GEOM/compound.htm new file mode 100755 index 000000000..2649dacef --- /dev/null +++ b/doc/salome/GEOM/compound.htm @@ -0,0 +1,133 @@ + + + + + +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/GEOM/cone.htm b/doc/salome/GEOM/cone.htm new file mode 100755 index 000000000..08858fe3f --- /dev/null +++ b/doc/salome/GEOM/cone.htm @@ -0,0 +1,169 @@ + + + + + +Cone + + + + + + + + + + + + +

 Cone

+ +

To create a Cone + in the Main Menu select New Entity - > Primitives - > Cone

+ +

 

+ +

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 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 centre 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/GEOM/cshdat_robohelp.htm b/doc/salome/GEOM/cshdat_robohelp.htm new file mode 100755 index 000000000..afb68b6ee --- /dev/null +++ b/doc/salome/GEOM/cshdat_robohelp.htm @@ -0,0 +1,258 @@ + + +GEOM reference manual + + + + + + + + + + + + + + + + + diff --git a/doc/salome/GEOM/cshdat_webhelp.htm b/doc/salome/GEOM/cshdat_webhelp.htm new file mode 100755 index 000000000..2d66f403c --- /dev/null +++ b/doc/salome/GEOM/cshdat_webhelp.htm @@ -0,0 +1,251 @@ + + +GEOM reference manual + + + + + + + + + + + + + + + + + diff --git a/doc/salome/GEOM/curve.htm b/doc/salome/GEOM/curve.htm new file mode 100755 index 000000000..fd55288e3 --- /dev/null +++ b/doc/salome/GEOM/curve.htm @@ -0,0 +1,162 @@ + + + + + +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 the three possible + types of curves: Polyline, Besier or B-spline (Interpolated) curve.

+ +

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/GEOM/cut.htm b/doc/salome/GEOM/cut.htm new file mode 100755 index 000000000..5828dfcd3 --- /dev/null +++ b/doc/salome/GEOM/cut.htm @@ -0,0 +1,137 @@ + + + + + +Cut + + + + + + + + + + + + +

Cut

+ +

To produce + a Cut in the Main Menu select + Operations - > Boolean - > Cut

+ +

 

+ +

This operation cuts a shape with another + one.

+ +

The + Result will be a  GEOM_Object + (COMPOUND).

+ +

Arguments: + Name + 2 shapes.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

Our TUI Scripts provide you with useful examples + of the use of Boolean Operations. +

+ +

 

+ + + + diff --git a/doc/salome/GEOM/cylinder.htm b/doc/salome/GEOM/cylinder.htm new file mode 100755 index 000000000..087d2d73d --- /dev/null +++ b/doc/salome/GEOM/cylinder.htm @@ -0,0 +1,160 @@ + + + + + +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/GEOM/default.css b/doc/salome/GEOM/default.css new file mode 100755 index 000000000..de2e5d955 --- /dev/null +++ b/doc/salome/GEOM/default.css @@ -0,0 +1,101 @@ +BODY { + background-color:#ffffff; + font-family:"Times New Roman" , serif; } +H1 { + font-weight:bold; + font-size:24.0pt; } +LI.kadov-H1 { + font-weight:bold; + font-size:24.0pt; } +H2 { + font-weight:bold; + font-size:18.0pt; } +LI.kadov-H2 { + font-weight:bold; + font-size:18.0pt; } +H3 { + font-weight:bold; + font-size:14.0pt; } +LI.kadov-H3 { + font-weight:bold; + font-size:14.0pt; } +H4 { + font-weight:bold; + font-size:12.0pt; } +LI.kadov-H4 { + font-weight:bold; + font-size:12.0pt; } +H5 { + font-weight:bold; + font-size:10.0pt; } +LI.kadov-H5 { + font-weight:bold; + font-size:10.0pt; } +H6 { + font-weight:bold; + font-size:8.0pt; } +LI.kadov-H6 { + font-weight:bold; + font-size:8.0pt; } +P { + font-size:12.0pt; + margin-top:0pt; + margin-bottom:0pt; } +LI.kadov-P { + font-size:12.0pt; } +A.expandspot { + color:#008000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.expandtext { + font-style:italic; + font-weight:normal; + color:#ff0000; } +A.dropspot { + cursor:hand; + color:#008000; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +A.glossterm { + color:#800000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.glosstext { + font-style:italic; + font-weight:normal; + color:#0000ff; } +OL { + margin-top:0px; + margin-bottom:0px; } +UL { + margin-top:0px; + margin-bottom:0px; } +A:active { } +A:hover { + x-text-underline:Off; + text-decoration:none; } +A:link { + x-text-underline:Off; + text-decoration:none; } +A:visited { + x-text-underline:Off; + text-decoration:none; } +P.TODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +LI.kadov-P-CTODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } diff --git a/doc/salome/GEOM/default_ns.css b/doc/salome/GEOM/default_ns.css new file mode 100755 index 000000000..3eeb3c496 --- /dev/null +++ b/doc/salome/GEOM/default_ns.css @@ -0,0 +1,118 @@ +BODY { + background-color:#ffffff; + font-family:"Times New Roman" , serif; } +H1 { + font-weight:bold; + font-size:24.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H1 { + font-weight:bold; + font-size:24.0pt; } +H2 { + font-weight:bold; + font-size:18.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H2 { + font-weight:bold; + font-size:18.0pt; } +H3 { + font-weight:bold; + font-size:14.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H3 { + font-weight:bold; + font-size:14.0pt; } +H4 { + font-weight:bold; + font-size:12.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H4 { + font-weight:bold; + font-size:12.0pt; } +H5 { + font-weight:bold; + font-size:10.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H5 { + font-weight:bold; + font-size:10.0pt; } +H6 { + font-weight:bold; + font-size:8.0pt; + font-family:"Times New Roman" , serif; } +LI.kadov-H6 { + font-weight:bold; + font-size:8.0pt; } +P { + font-size:12.0pt; + margin-top:1pt; + margin-bottom:1pt; + font-family:"Times New Roman" , serif; } +LI.kadov-P { + font-size:12.0pt; } +A.expandspot { + color:#008000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.expandtext { + font-style:italic; + font-weight:normal; + color:#ff0000; } +A.dropspot { + cursor:hand; + color:#008000; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +A.glossterm { + color:#800000; + cursor:hand; + font-style:italic; + x-text-underline:off; + x-text-overline:off; + x-text-line-through:off; + text-decoration:none none none; } +SPAN.glosstext { + font-style:italic; + font-weight:normal; + color:#0000ff; } +OL { + margin-top:0px; + margin-bottom:0px; + font-family:"Times New Roman" , serif; } +UL { + margin-top:0px; + margin-bottom:0px; + font-family:"Times New Roman" , serif; } +A:active { } +A:hover { + x-text-underline:Off; + text-decoration:none; } +A:link { + x-text-underline:Off; + text-decoration:none; } +A:visited { + x-text-underline:Off; + text-decoration:none; } +P.TODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +LI.kadov-P-CTODO { + font-weight:normal; + font-style:italic; + font-family:"Arial Black" , sans-serif; } +ol ol { + margin-top:1px; } +ol ul { + margin-top:1px; } +ul ul { + margin-top:1px; } +ul ol { + margin-top:1px; } diff --git a/doc/salome/GEOM/edge.htm b/doc/salome/GEOM/edge.htm new file mode 100755 index 000000000..184e5ba47 --- /dev/null +++ b/doc/salome/GEOM/edge.htm @@ -0,0 +1,130 @@ + + + + + +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/GEOM/ehelp.xml b/doc/salome/GEOM/ehelp.xml new file mode 100755 index 000000000..190aa2369 --- /dev/null +++ b/doc/salome/GEOM/ehelp.xml @@ -0,0 +1,10 @@ + + + + + + + + WebSearch + + \ No newline at end of file diff --git a/doc/salome/GEOM/ehlpdhtm.js b/doc/salome/GEOM/ehlpdhtm.js new file mode 100755 index 000000000..6cfd2e463 --- /dev/null +++ b/doc/salome/GEOM/ehlpdhtm.js @@ -0,0 +1,4239 @@ +// 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/GEOM/explode.htm b/doc/salome/GEOM/explode.htm new file mode 100755 index 000000000..46e1d3560 --- /dev/null +++ b/doc/salome/GEOM/explode.htm @@ -0,0 +1,180 @@ + + + + + +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/GEOM/explode_on_blocks.htm b/doc/salome/GEOM/explode_on_blocks.htm new file mode 100755 index 000000000..7022e94bd --- /dev/null +++ b/doc/salome/GEOM/explode_on_blocks.htm @@ -0,0 +1,163 @@ + + + + + +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 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 + 1 integer (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/GEOM/extrusion.htm b/doc/salome/GEOM/extrusion.htm new file mode 100755 index 000000000..27efe7e60 --- /dev/null +++ b/doc/salome/GEOM/extrusion.htm @@ -0,0 +1,169 @@ + + + + + +Extrusion + + + + + + + + + + + + +

 Extrusion

+ +

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

+ +

 

+ +

To create an Extrusion (Prism) you should define + the Base Shape (a basis of the + extrusion), the Vector + (a normal of the extrusion) and the Height + of extrusion.  

+ +

The + Result of the operation will be a + GEOM_Object (edge, face, solid or compsolid).

+ +

TUI + Command : geompy.MakePrismVecH(Base, + Vector, Height)

+ +

Arguments: Name + 1 shape (vertex, + edge, wire, face or shell) serving as base object + 1 vector (for direction) + + 1 value (dimension).

+ +

 

+ +

+ +

 

+ +

NB! The + is another way to create an Extrusion, which + is currently accessible only via TUI commands.

+ +

You + can define the Extrusion by + the Base Shape and the Start and End Point + of the Vector  (in + this way you don't need to create it in advance).

+ +

TUI + Command: geompy.MakePrism(Base, + Point1, Point2)

+ +

 

+ +

 

+ +

Examples:

+ +

 

+ +

Base Shape                                                          Prisms

+ +

 

+ +

 

+ +

Our TUI Scripts + provide you with useful examples of creation of Complex + Geometric Objects.

+ +

 

+ + + + diff --git a/doc/salome/GEOM/face.htm b/doc/salome/GEOM/face.htm new file mode 100755 index 000000000..0b8231d67 --- /dev/null +++ b/doc/salome/GEOM/face.htm @@ -0,0 +1,151 @@ + + + + + +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.

+ +

 

+ +

+ +

 

+ +

TUI commands + give you some advanced possibilities.

+ +

 

+ +

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/GEOM/files/introduction_to_geom.htm b/doc/salome/GEOM/files/introduction_to_geom.htm new file mode 100755 index 000000000..c9d49a18f --- /dev/null +++ b/doc/salome/GEOM/files/introduction_to_geom.htm @@ -0,0 +1,138 @@ + + + + + +Introduction to GEOM + + + + + + + + + + + +

Introduction to GEOM

+ +

GEOM 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

  • + +
  • Geometrical repairing of objects

  • + +
  • Geometrical boolean operations

  • + +
  • Geometrical transformations

  • + +
  • Generation of complex objects

  • +
+

 

+

+ +

 

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions.htm new file mode 100755 index 000000000..1630c691f --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions.htm @@ -0,0 +1,885 @@ + + + + + +Titre + + + + + + + + + + + + +

Creating basic geometrical objects

+ +

In GEOM you can create basic geometrical objects (1D + & 2D elements) such as:

+ +

+ + + + + + +

 

+ +

 

+ +

To create basic geometrical objects:

+ +

 

+ +

In the main menu select New + Entity > Basic.

+ +

 

+ +  + +

Point

+ +

 

+ +

Description: + Creates a point.

+ +

 

+ +

Result: GEOM_Object + (vertex).

+ +

 

+ +

TUI Command : +   geompy.MakeVertex(X, + Y, Z) -

+ +

geompy.MakeVertexWithRef(Reference, + X, Y, Z)

+ +

geompy.MakeVertexOnCurve(Edge, Parameter) +

+ +

 

+ +

Arguments:

+ +
    + +
  • 1st + Constructor: Name + X, Y and Z coordinates of the point.

  • + +
  • 2nd + Constructor: Name + 1 reference point + 3 coordinates defining + the position of this point regarding the reference one

  • + +
  • 2nd + Constructor: Name + 1 edge  + + 1 Parameter defining the position of the point on the given edge.

  • +
+ +

 

+ +

Dialog Box:

+ +

 

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

+

+

+ +

 

+ +

 

+ +

   

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Line

+ +

 

+ +

Description: + Creates a line.

+ +

 

+ +

Result: GEOM_Object + (edge).

+ +

 

+ +

TUI Command: + geompy.MakeLine(Point1, Point2), + where Point1 and Point2 are points through  which + the line passes.

+ +

 

+ +

Arguments: + Name + 2 vertices.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Circle

+ +

 

+ +

Description: + Creates a circle.

+ +

 

+ +

Result: GEOM_Object + (edge).

+ +

 

+ +

TUI Command: + geompy.MakeCircle(Point, Vector, Radius), + where Point defines the center of the circle, Vector gives the circleÂ’s + normal and Radius is the circleÂ’s  radius.

+ +

 

+ +

Arguments: +

+ +
    + +
  • 1st + Constructor: Name + 1 vertex (for the center) + 1 edge (for the direction) + + Radius.

  • + +
  • 2nd + Constructor: Name + 3 points which will form the circle.

  • +
+ +

 

+ +

 

+ +

 

+ +

Dialog Box:

+ +

 

+ + +++ + + + +
+

+

+ +

 

+ +

 

+ +

 

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Ellipse

+ +

 

+ +

Description: + Creates an ellipse.

+ +

 

+ +

Result: GEOM_Object + (edge).

+ +

 

+ +

TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor, + RadiusMinor), where Point defines the center of the ellipse, Vector + gives the ellipseÂ’s normal, RadiusMajor and RadiusMinor  are + correspondingly a major and minor radiuses of the ellipse.

+ +

 

+ +

Arguments: + Name + 1 vertex (for the center) + 1 edge (for the direction) + 1 X Radius + + 1 Y Radius.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Arc

+ +

 

+ +

Description: + Creates an arc.

+ +

 

+ +

Result: GEOM_Object + (edge).

+ +

 

+ +

TUI Command: + geompy.MakeArc(Point1, Point2, Point3), + where Point1 is the starting point of the arc, Point2 is a middle point + of the arc and Point3 is the ending point of the arc.

+ +

 

+ +

Arguments: + Name + 3 vertices.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Curve

+ +

 

+ +

Description: + Creates a curve in 3D space.

+ +

 

+ +

Result: + GEOM_Object (edge).

+ +

 

+ +

TUI Command: +

+ +
    + +
  • geompy.MakePolyline(ListOfShapes), + where ListOfShape is a list of points through which the curve passes .

  • + +
  • geompy.MakeInterpol(ListOfShapes), + where ListOfShape is a list of points through which the curve passes .

  • + +
  • geompy.MakeBezier(ListOfShapes), + where 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.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

Polyline +                                          Bezier +                                      B-Spline

+ +

          

+ +

 

+ +

 

+ +

Vector

+ +

 

+ +

Description: + Creates a vector.

+ +

 

+ +

Result: GEOM_Object + (edge).

+ +

 

+ +

TUI Command: + geompy.MakeVector(Point1, Point2), + where Point1 is the first point of the vector and the Point2 is the last + point of the vector.

+ +

 

+ +

Arguments :

+ +
    + +
  • 1st + Constructor : Name + 2 vertices.

  • + +
  • 2nd + Constructor : Name + 3 values (Coordinates of the 2nd vertex. The + first vertex is in the origin).

  • +
+ +

 

+ +

Dialog Box:

+ +

 

+ +

      

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Plane

+ +

 

+ +

Description: + Creates a plane.

+ +

 

+ +

Result: GEOM_Object + (face).

+ +

 

+ +

TUI Command: + geompy.MakePlane(Point, Vector, TrimSize), + where Point is a point through which  the + plane passes, Vector gives a normal of the plane and TrimSize is a half + size of a side of quadrangle face, representing the plane.

+ +

 

+ +

Arguments:

+ +
    + +
  • 1st + Constructor : Name + 1 vertex + 1 vector  + + 1 value (to define the size of the plane).

  • + +
  • 2nd + Constructor : Name + 1 vertex + 3 points (for the direction) + 1 value + (to define the size of the plane).

  • + +
  • 3rd + Constructor : Name + 1 selection + 1 value (to define the size of + the plane).

  • +
+ +

 

+ +

Dialog Box:

+ +

 

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

+

+

+ +

 

+ +

 

+ +

         

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

Working + Plane

+ +

 

+ +

Description: + Sets the working plane (and the camera position).

+ +

 

+ +

Arguments: +

+ +
    + +
  • Name + 1 selection (face + or planar face),

  • + +
  • Name +  2 + vectors,

  • + +
  • Name + XYZ coordinate + system

  • +
+ +

 

+ +

 

+ +

Dialog Box:

+ +

 

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

+

+

+ +

 

+ +

 

+ +

 

+ +

 

+ +

 

+ +

Local + coordinate system

+ +

 

+ +

Description: +  The user + may manually enter values of X, Y, and Z coordinates of origin in the + corresponding fields of the dialog box, or select a point in the object + browser or 3D viewer, in this case coordinates of origin are automatically + filled in with the coordinates of the selected point.

+ +

The user then specifies components of X and + Y axes direction.

+ +

Preview of the new LCS (small trihedron located + and oriented according to parameters of LCS) is displayed in the 3D viewer + and updated as soon as the user modifies some parameter.

+ +

Then the user presses «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.

+ +

 

+ +

 

+ +

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

+ +
    + +
  • 1st + Constructor : Name + Coordinates of origin, X axis direction, Y axis + direction

  • + +
  • 2nd + Constructor : Name + reference object.

  • + +
  • 3rd + Constructor : Name + 1 point of origin + X axis direction, Y axis + direction.

  • +
+ +

 

+ +

.

+ +

 

+ +

Dialog Box:

+ +

 

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

+

+

+ +

 

+ +

Example:

+ +

 

+ +

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif new file mode 100755 index 000000000..216da7531 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif new file mode 100755 index 000000000..0667288b6 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif new file mode 100755 index 000000000..5ee22f391 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif new file mode 100755 index 000000000..a83d6d108 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif new file mode 100755 index 000000000..82a696852 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif new file mode 100755 index 000000000..f74b5f036 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif new file mode 100755 index 000000000..72dd5f5cc Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif new file mode 100755 index 000000000..ed0f4522d Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_booleangui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions.htm new file mode 100755 index 000000000..c290d8bf3 --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions.htm @@ -0,0 +1,153 @@ + + + + + +Titre + + + + + + + + + + + + +

Using boolean operations

+ +

 

+ +

In GEOM for construction of more complex geometrical objects + (2D & 3D elements) you can use the following boolean operations:

+ +

 

+ + + + + +

 

+ +

There is a general TUI command covering + all these operations, which can be used alongside with separate commands + for each operation.

+ +

geompy.MakeBoolean(Shape1, + Shape2, Operation), where Shape1 is the first argument and Shape2 + is the second argument of Boolean operation, Operation is a type of the + Boolean operation (1 – Common, 2 – Cut, 3 – Fuse, 4 – Section).

+ +

 

+ +

Our TUI + Scripts provide you with useful examples of the use of Boolean + Operations.

+ +

 

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif new file mode 100755 index 000000000..129d17d63 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif new file mode 100755 index 000000000..56ec71d40 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif new file mode 100755 index 000000000..d210eb981 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif new file mode 100755 index 000000000..3372d41c4 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_buildgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_buildgui_functions.htm new file mode 100755 index 000000000..42c0ee8ea --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_buildgui_functions.htm @@ -0,0 +1,458 @@ + + + + + +Titre + + + + + + + + + + + +

Building geometrical objects

+ +

In GEOM you can create basic and advanced geometrical objects + (2D & 3D elements) using the following building functions:

+ +

 

+ + + +

 

+ +

 

+ +

 

+ +

To use Explode:

+ +

 

+ +

In the main menu select New + Entity > Explode.

+ +

 

+ +

Explode

+ +

 

+ +

Description: + Returns a list of subshapes (vertices, edges, wires etc.) of the given + shape.

+ +

 

+ +

Result : + List of GEOM_Objects.

+ +

 

+ +

TUI Command: +

+ +
    + +
  • geompy.SubShape(Shape, + ListOfID), where Shape is a shape whose subshape(s) is (are) retrieved, + ListOfID is a list of requested sub shapes IDs. To get a subshape ID use + method GetSubShapeID().

  • + +
  • geompy.SubShapeAll(Shape, + TypeOfShape), where Shape is a shape to be exploded on sub shapes + of type TypeOfShape.

  • +
+ +

 

+ +

Arguments: + 1 SHAPE + 1 type of SubShape.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

 

+ +

To use building functions:

+ +

 

+ +

In the main menu select + New Entity > Build + submenu.

+ +

 

+ +

Edge

+ +

 

+ +

Description: + Creates an edge.

+ +

 

+ +

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

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Wire

+ +

 

+ +

Description: + Creates a wire.

+ +

 

+ +

Result: GEOM_Object + (WIRE).

+ +

 

+ +

TUI Command : + geompy.MakeWire(ListOfShape), + where ListOfShape is a list of edges and/or wires from which the wire + to be constructed.

+ +

 

+ +

Arguments: + Name + List of connected wires or edges..

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Face

+ +

 

+ +

Description: + Creates a face.

+ +

 

+ +

Result: GEOM_Object + (FACE).

+ +

 

+ +

TUI Command: + geompy.MakeFace(Wire, WantPlanarFace), + where Wire is a wire and if boolean parameter WantPlanarFace is planar + then only a planar face or no face is constructed.

+ +

 

+ +

Arguments: + Name + 1 wire.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Shell

+ +

 

+ +

Description: + Creates a shell.

+ +

 

+ +

Result: GEOM_Object + (SHELL).

+ +

 

+ +

TUI Command: + geompy.MakeShell(ListOfShape), + where ListOfShape is a list of faces and (or) shells from which the shell + is constructed.

+ +

 

+ +

Arguments: + Name + List of faces having connected edges.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

Solid

+ +

 

+ +

Description: + Creates a solid - closed geometrical 3D element.

+ +

 

+ +

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

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

 

+ +

Compound

+ +

 

+ +

Description: + Creates a compound.

+ +

 

+ +

Result: GEOM_Object + (COMPOUND).

+ +

 

+ +

TUI Command: + geompy.MakeCompound(ListOfShape), + where ListOfShape is a list of shapes from which the compound is constructed.

+ +

 

+ +

Arguments: + Name + List of shapes.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions.htm new file mode 100755 index 000000000..54d59fb05 --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions.htm @@ -0,0 +1,226 @@ + + + + + +Titre + + + + + + + + + + + +

Displaying\hiding objects

+ +

Visualization is available in both, OCC and VTK viewers. + These viewers work independently, i.e. visibility of objects and their + graphic attributes may differ in OCC and VTK viewer. It is reasonable to use the OCC viewer for + GEOM module.

+ +

 

+ +

Displaying\hiding + different geometrical objects in the viewer is possible using the following + operations:

+ +

 

+ + + +

 

+ +

To display\hide one or several objects in the viewer:

+ +

 

+ +

In the main menu select View + or right-click on the necessary object in the Object Browser and + from the associated pop-up menu choose the required operation.

+ +

 

+ +

 

+ +

DisplayAll +

+ +

 

+ +

Description: + Displays all geometrical objects which have been created or imported in + the current study.

+ +

 

+ +

TUI + Command: sg.DisplayAll()

+ +

 

+ +

 

+ +

EraseAll

+ +

 

+ +

Description: + Erases all shapes displayed in the viewer.

+ +

 

+ +

TUI + Command: sg.EraseAll()

+ +

 

+ +

 

+ +

Display

+ +

 

+ +

Description: + Displays an object in 3D viewer.

+ +

 

+ +

TUI + Command:

+ +

 

+ +

 

+ +

DisplayOnly

+ +

 

+ +

Description: + Displays only the selected geometrical element.

+ +

 

+ +

TUI + Command: sg.DisplayOnly(ID)

+ +

 

+ +

 

+ +

Erase

+ +

 

+ +

Description + : Erases only the selected shape.

+ +

 

+ +

TUI + Command : sg.EraseOnly(ID)

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif new file mode 100755 index 000000000..83388cc3d Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif new file mode 100755 index 000000000..473edc6c0 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif new file mode 100755 index 000000000..d71f45519 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif new file mode 100755 index 000000000..5bed6049e Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif new file mode 100755 index 000000000..4890bda6c Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_generationgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions.htm new file mode 100755 index 000000000..322971bfa --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions.htm @@ -0,0 +1,307 @@ + + + + + +Titre + + + + + + + + + + + +

Generating complex objects

+ +

Generation operations in GEOM are used to create advanced + geometrical objects (3D elements). They are:

+ +

 

+ + + +

 

+ +

To use generation operations:

+ +

 

+ +

In the main menu select New + Entity > Generation.

+ +

 

+ +

Extrusion

+ +

Description: + Creates an extruded shape.

+ +

 

+ +

Result: GEOM_Object + (edge, face, solid or compsolid).

+ +

 

+ +

TUI Command : + geompy.MakePrism(baseShape, Vector, + Height), where baseShape is a basis of the prism, Vector is a normal + of the prism and Height is a height of the prism.

+ +

 

+ +

Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction) + 1 value (dimension).

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

Revolution

+ +

+ +

Description: + Creates an extruded shape by revolution.

+ +

 

+ +

Result: GEOM_Object + (edge, face, solid or compsolid).

+ +

 

+ +

TUI Command: + geompy.MakeRevolution(Shape, Axis, + Angle), where Shape is a shape to rotate, Axis is the axis of the + revolution and Angle is an angle by which Shape has to be rotated around + Axis.

+ +

 

+ +

Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 vector (for direction) + 1 value (angle).

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

Filling

+ +

 

+ +

Description: + Creates a curving face using several curves.

+ +

 

+ +

Result: GEOM_Object + (face).

+ +

 

+ +

TUI Command: + geompy.MakeFilling(Shape, MinDegree, + MaxDegree, Tol2D, Tol3D, NbIter), where Shape is a shape to fill, + MinDegree and MaxDegree are correspondingly maximal and minimal degree, + Tol2D is a tolerance for 2D and Tol3D is a tolerance for 3D, NbIter is + a number of iterations.

+ +

 

+ +

Arguments: + Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number + of iterations, 2D tolerance, 3D tolerance).

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ +

Pipe

+ +

+ +

Description: + Creates an extruded shape.

+ +

 

+ +

Result: GEOM_Object + (edge, face, solid or compsolid).

+ +

 

+ +

TUI Command: + geompy.MakePipe(baseShape, pathShape), + where baseShape is a shape to be extruded, pathShape is a path along which + baseShape is extruded.

+ +

 

+ +

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.

+ +

 

+ +

Dialog Box:

+ +

 

+ +

+ +

 

+ +

Example:

+ +

 

+ +

 

+ +

 

+ + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif new file mode 100755 index 000000000..d7adb4c4e Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif new file mode 100755 index 000000000..4f7986042 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif new file mode 100755 index 000000000..178eb6403 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif new file mode 100755 index 000000000..18fa56742 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm new file mode 100755 index 000000000..9baefc0bc --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_geomtoolsgui_functions.htm @@ -0,0 +1,145 @@ + + + + + +Titre + + + + + + + + + + + +

Importing\exporting geometrical objects

+ +

In GEOM you can import + and export geometrical objects from\into BREP, IGES, STEP files.

+ +  + +

To import geometrical objects from a BREP, IGES, STEP file:

+ +

 

+ +

From the File + menu choose Import and + select the required format of the file for importation. Then you will + see a standard dialog box allowing to search for and choose *.brep, *.iges + or *.step  file:

+ +

 

+ +

+ +

 

+ +

Select the required file and click OK. You file will be imported into GEOM + and its contents (geometrical objects) will be displayed in the Object Browser.

+ +

 

+ +

 

+ +

To export geometrical objects into a BREP, IGES, STEP file:

+ +

 

+ +

Select the object you wish to export, then + from the File menu choose Export and select the required format + of the file for exportation. You will see a standard dialog box allowing + to enter the name and select the location for the file which will be exported:

+ +

 

+ +

+ +

 

+ +

Click OK + to confirm your exportation.  

+ +

 

+ +

 

+ +
  •  

  • + +

     

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions.htm new file mode 100755 index 000000000..cedecfb90 --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions.htm @@ -0,0 +1,597 @@ + + + + + +Titre + + + + + + + + + + + + +

    Using measurement tools

    + +

    Measurement tools in GEOM are necessary for getting different + data concerning created or imported geometrical objects. They are:

    + +

     

    + + + +

     

    + +

    Our TUI Scripts + show how to use Measurement Tools + with  TUI + commands.

    + +

     

    + +

    To use measurement tools:

    + +

     

    + +

    In the main menu select Measures + submenu.

    + +

     

    + +

     

    + +

      Point coordinates

    + +

     

    + +

    Description: + Returns the coordinates of a point.

    + +

     

    + +

    Result: Point + coordinates (X, Y, Z) in 3D space in the form of Python Tuple.

    + +

     

    + +

    TUI command: + geompy.PointCoordinates(Point), + where Point is a point whose coordinates are inquired.

    + +

     

    + +

     

    + +

    Arguments: + 1 point.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Basic properties +

    + +

     

    + +

    Description: + Return the properties (Length, Surface & Volume) of a definite geometrical + object.

    + +

     

    + +

    Result: Display + Length, Surface & Volume in the form of Python Tuple.

    + +

     

    + +

    TUI command: + geompy.BasicProperties(Shape), + where Shape is a shape whose properties are inquired.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    + Center of mass

    + +

     

    + +

    Description: + Creates a gravity center of a shape and returns its coordinates.

    + +

     

    + +

    Result: GEOM_Object + (vertex).

    + +

     

    + +

    TUI Command: + geompy.MakeCDG(Shape), where + Shape is the shape for which a center of gravity is computed.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Inertia +

    + +

     

    + +

    Description: + Returns the inertia axis of a geometrical object.

    + +

     

    + +

    Result: Display + the matrix and moments of inretia in the form of Python Tuple (I11, I12, + I13,

    + +

     I21, + I22, I23,

    + +

     I31, + I32, I33,

    + +

     Ix, + Iy, Iz).

    + +

     

    + +

    TUI command: + geompy.Inertia(Shape), where + Shape is a shape for which a matrix of inertia and moment of inertia are + returned.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Bounding + box

    + +

     

    + +

    Description: + Returns the dimensions of the bounding box of a geometrical object.

    + +

     

    + +

    Result: Displays + the dimensions of the bounding box of a geometrical object in the form + of Python Tuple (Xmin, Xmax, Ymin, Ymax, Zmin, Zmax).

    + +

     

    + +

    TUI command: geompy.BoundingBox(Shape), where Shape is a shape for which a bounding + box is computed.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Min. distance

    + +

     

    + +

    Description: + Returns the min. distance between 2 geometrical objects.

    + +

     

    + +

    Result: Displays + the min. distance.

    + +

     

    + +

    TUI command: geompy.MinDistance(Shape1, + Shape2), where Shape1 and Shape2 + are shapes between which the minimal distance computed.

    + +

     

    + +

    Arguments: + 2 shapes.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    + Tolerance

    + +

     

    + +

    Description: + Returns the tolerance of a geometrical object.

    + +

     

    + +

    Result: Displays + the tolerance values (FaceMinTol, FaceMaxTol, EgdeMinTol, EgdeMaxTol, + VertexMinTol, VertexMaxTol).

    + +

     

    + +

    TUI command: geompy.Tolerance(Shape), where Shape is a shape for which minimal + and maximal tolerances are returned.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    WhatIs +

    + +

     

    + +

    Description: + Returns the type of a geometrical object.

    + +

     

    + +

    Result: Displays + all elements composing your geometrical object.

    + +

     

    + +

    TUI command: + geompy.WhatIs(Shape), where Shape + is a shape from which a description is returned.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Check +

    + +

     

    + +

    Description: + Returns True if this geometrical object is valid.

    + +

     

    + +

    Result: Boolean.

    + +

     

    + +

    TUI Command: + geompy.CheckShape(Shape), + where is shape which is checked for validity.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

     

    + +

     

    + +

    Check compound + of blocks

    + +

     

    + +

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

    • +
    + +

     

    + +

    Informs of the following possible errors:

    + +
      + +
    • not a block,

    • + +
    • not glued,

    • + +
    • not connected,

    • + +
    • extra + or degenerated edge.

    • +
    + +

     

    + +

    Result: Boolean; + highlight in the viewer.

    + +

     

    + +

    TUI Command: + geompy.CheckCompoundOfBlocks(Compound), + where the Compound is a shape, investigated in order to see, if it is + a valid compound of blocks. Validity flag is returned, encountered errors + are printed in the python console.

    + +

     

    + +

    Arguments: + 1 shape.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif new file mode 100755 index 000000000..02e4c8ff8 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif new file mode 100755 index 000000000..1aebb4f08 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif new file mode 100755 index 000000000..f11323ae3 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif new file mode 100755 index 000000000..c429db810 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif new file mode 100755 index 000000000..1c8dd915f Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif new file mode 100755 index 000000000..7968c6143 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif new file mode 100755 index 000000000..a2db5a6e1 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif new file mode 100755 index 000000000..8de970b29 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_operationgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions.htm new file mode 100755 index 000000000..d67650a0a --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions.htm @@ -0,0 +1,637 @@ + + + + + +Titre + + + + + + + + + + + + +

    Basic operations

    + +

    In GEOM you can perform + basic operations with geometrical objects aimed at creation of more complex + shapes. These operations are:

    + +

     

    + + + +

     

    + +

    To perform basic operations on geometrical objects:

    + +

     

    + +

    In the main menu select Operations.

    + +

     

    + +

     

    + +

    Partition

    + +

     

    + +

    Description: + Builds a shape by intersection.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakePartition(ListOfShapes, + ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, + ListOfMaterials), where ListOfShapes is a list of shapes to be + intersected, ListOfTools is a list of shapes to intersect the shapes from + ListOfShapes, ListOfKeepInside is a list of shapes outside which the results + will be deleted, ListOfRemoveInside is a list of shapes inside which the + results will be deleted, Limit is a type of the result shapes, if RemoveWebs + is True the Glue 3D algorithm will be performed on the results, ListOfMaterials + is a list of materials indices for each shape, it makes sense only if + RemoveWebs is True.

    + +

     

    + +

    Arguments: + Up to 4 shapes + reconstruction limit.

    + +
      + +
    • 1st + Constructor: Name + 2 shapes (first shape will be intersected by the + second shape) + reconstruction limit.

    • + +
    • 2nd + Constructor: Name + 1 shape which will be intersected + 1 cutting + face.

    • +
    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Archimede

    + +

     

    + +

    Description: + Creates a plane corresponding to the modeled water-line of the object + plunged into the water (in Z direction).

    + +

     

    + +

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

    + +

     

    + +

    GUI Arguments: + Name + 1 shape  + + 3 values (Weight, Water Density & Meshing Deflection).

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

       

    + +

     

    + +

     

    + +

    Fillet

    + +

     

    + +

    Description: + Make fillets of the edges of a shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakeFillet(Shape, Radius, + ShapeType, ListOfShapeID), where Shape is a shape to create a fillet + on, Radius is a radius of the fillet, ShapeType is a type of shapes to + be processed, ListOfShapeID is a list of subshapeÂ’s Ids to be processed.

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st + Constructor: Name + 1 shape + 1 value (fillet radius).

    • + +
    • 2nd + Constructor: Name + 1 shape + 1 Selection of edges + 1 value (Fillet + radius).

    • + +
    • 3rd + Constructor: Name + 1 shape + 1 Selection of faces + 1 value (Fillet + radius).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

       

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Chamfer

    + +

     

    + +

    Description: + Makes chamfer of the edges of a Shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    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.

    • + +
    • geompy.MakeChamferFace(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.

    • +
    + +

     

    + +

    Arguments:

    + +

     

    + +
      + +
    • 1st + Constructor : Name + 1 SHAPE + 1 value (Chamfer dimension).

    • + +
    • 2nd + Constructor : Name + 1 SHAPE + 2 faces + 2 values (Chamfer dimensions).

    • + +
    • 3rd + Constructor : Name + 1 SHAPE + 1 Selection of faces + 2 values (Chamfer + dimensions).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

       

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Block + multi-transformation

    + +

     

    + +

    Description: + Makes several translations of a block (solid) in one + or two directions depending on + the arguments specified by the user.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    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 numeber of transformations.

    • + +
    • geompy. + MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, + DirFaceID2V, NbTimesV), where Block is a block to be transformed, + DirFaceID1U and DirFace1V are IDÂ’s 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:

    + +

     

    + +
      + +
    • 1D + transformation: Name + 1 hexahedral + solid + 1 or 2 faces + 1 integer (number of blocks)

    • + +
    • 2D + transformation: Name + 1 hexahedral + solid +

    • + +
        + +
      • 2 + faces and 1 integer, or

      • + +
      • 3 or 4 faces and 2 integers

      • +
      +
    + +

     

    + +

    Dialog Box:

    + + +++ + + + +
    +

    +

    + +

     

    + +

    Example:

    + +

     

    + +

        

    + +

     

    + +

     

    + +

    Explode + on Blocks

    + +

     

    + +

    Description: + Returns blocks of the given compound. The user may define the type 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 .

    + +

     

    + +

    Result: 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 + 1 integer (min. and max. number + of faces in the block to be extracted).

    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

     

    + +

    Propagate

    + +

     

    + +

    Description: + Breaks a multitude of edges of a shape into groups (builds all possible + propagation groups).

    + +

     

    + +

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

    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

         

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif new file mode 100755 index 000000000..03b8391c3 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif new file mode 100755 index 000000000..e38dcabd8 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif new file mode 100755 index 000000000..7a9aaadb4 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif new file mode 100755 index 000000000..716e51b9f Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions.htm new file mode 100755 index 000000000..96c0d677f --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions.htm @@ -0,0 +1,395 @@ + + + + + +Titre + + + + + + + + + + + +

    Constructing primitives

    + +

    In + GEOM you can create different types of primitive geometrical objects (3D + elements):

    + +

     

    + + + +

     

    + +

    To construct primitive geometrical objects:

    + +

     

    + +

    In the main menu select New + Entity > Primitives.

    + +

     

    + +

    Box

    + +

     

    + +

    Description: Creates a box.

    + +

     

    + +

    Result: GEOM_Object (SOLID).

    + +

     

    + +

    TUI Command : geompy.MakeBox(X1, + Y1, Z1, X2, Y2, Z2),  where + (X1, Y1, X2) and (X2, Y2, Z2) are coordinates of two points which define + a diagonal of the box.

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st Constructor + : Name + 2 vertices (opposite + corners of the box).

    • + +
    • 2nd Constructor + : Name + 3 values (dimensions + at origin).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Cylinder

    + +

     

    + +

    Description: Creates a cylinder.

    + +

     

    + +

    Result: GEOM_Object (solid).

    + +

     

    + +

    TUI Command: geompy.MakeCylinder(Point, + Axis, Radius, Height), where Point is a central point of the cylinder + base, Axis (vector value) is an axis of the cylinder, Radius and Height + are correspondingly a radius and a height of the cylinder.

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st Constructor: + Name + 1 vertex + 1 vector + 2 values + (Dimensions: radius and height).

    • + +
    • 2nd Constructor: + Name + 2 values (Dimensions at origin: + radius and height).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Sphere

    + +

     

    + +

    Description: Creates a sphere.

    + +

     

    + +

    Result: GEOM_Object (solid).

    + +

     

    + +

    TUI Command: geompy.MakeSphere(Point, + Radius), where Point is a center of the sphere and Radius is a + radius of the sphere.

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st Constructor + : Name + 1 vertex + 1 value + (Radius).

    • + +
    • 2nd Constructor + : Name + 1  value + (Radius from the origin).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Torus

    + +

     

    + +

    Description: Creates a torus.

    + +

     

    + +

    Result: GEOM_Object (solid).

    + +

     

    + +

    TUI Command: geompy.MakeTorus(Point, + Vector, RadiusMajor, RadiusMinor), where Point is a central point + of the torus, Vector is an axis of symmetry, RadiusMajor and RadiusMinor +  are correspondingly + a major and minor radiuses of the torus.

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st Constructor: + Name + 1 vertex + 1 vector (for + direction) + 2 values (1 & 2 Radius).

    • + +
    • 2nd Constructor: + Name + 2 values (1 & 2 Radius + from the origin).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Cone

    + +

     

    + +

    Description: Creates a cone.

    + +

     

    + +

    Result: GEOM_Object (SOLID).

    + +

     

    + +

    TUI Command: geompy.MakeCone(Point, + Axis, Radius1, Radius2), where Point is a central point of the + cone base, Axis (vector value) is an axis of the cone, Radius1 and Radius2 + are correspondingly the first and the second radiuses of the cone

    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st Constructor: + Name + 1 vertex + 1 vector (for + direction) + 3 values (Radius of the base part, radius of the upper part, + height).

    • + +
    • 2nd Constructor: + Name + 3 values (Radius of the base + part, radius of the upper part, height).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif new file mode 100755 index 000000000..871c6f09b Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif new file mode 100755 index 000000000..ffdbac7e8 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif new file mode 100755 index 000000000..7e683cc04 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif new file mode 100755 index 000000000..9aa79cf8c Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif new file mode 100755 index 000000000..0f4889b96 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_repairgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions.htm new file mode 100755 index 000000000..56d2c9c22 --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions.htm @@ -0,0 +1,898 @@ + + + + + +Titre + + + + + + + + + + + + +

    Repairing geometrical objects

    + +

    Repairing operations are + used for adjustment and modification of created geometrical shapes. The + are:

    + +

     

    + + + +

     

    + +

    The operations Suppress + faces, Close contour, Suppress internal wires, Suppress holes and + Add point on edge are + available only if you are using OCC + viewer.

    + +

     

    + +

    To apply repairing operations:

    + +

     

    + +

    In the main menu select Repair + submenu.

    + +

     

    + +

    Shape + processing

    + +

     

    + +

    Description: + Processes a shape using various operators.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.ProcessShape(Shape, Operators, + Parameters, Values), where Shape is a processed shape, Operators + is a list of names of operators ("FixShape", "SplitClosedFaces", + etc.), Parameters is a list of names of parameters (“FixShape.Tolerance3d”, + etc), Values is a list of values of parameters in the same order as the + Parameters list.

    + +

     

    + +

    Arguments: + 1 or more shapes.

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

    1

    +

    SplitAngle – + this operator is intended for splitting faces based on conical surfaces, + surfaces of revolution and cylindrical surfaces by angle

    +

    SplitAngle.Angle – angle (in radians) defining + size of result segments.

    +

    SplitAngle.MaxTolerance – maximal possible + tolerance on result shape

    +

    2

    +

    SplitClosedFaces + – this operator is intended for dividing all closed faces in the shape + according to the number of points.

    +

    SplitClosedFaces.NbSplitPoints – number of + points for cutting each closed faces.

    +

    3

    +

    FixFaceSize + – this operator is intended for removing small faces (case of the spot + face and strip face)

    +

    FixFaceSize.Tolerance – work tolerance defining + which faces will be removed.

    +

    4

    +

    DropSmallEdges + – this operator is intended for removing small edges or merging with neigbour. +  

    +

    DropSmallEdges.Tolerance3d – work tolerance + for detection and removing small edges.

    +

    5

    +

    BsplineRestriction + –this operator is intended for re-approximation BSplines curves and surfaces + or conversion of the curves and surfaces to BSplines with specified parameters. +

    +

    BSplineRestriction.SurfaceMode - mode of approximation + of surfaces if restriction is necessary

    +

    BSplineRestriction.Curve3dMode -mode of conversion + of any 3D curve to BSpline and approximation.

    +

    BSplineRestriction.Curve2dMode - mode of conversion + of any 2D curve to BSpline and approximation

    +

    BSplineRestriction.Tolerance3d – work tolerance + for definition of the possibility of the approximation of the surfaces + and 3D curves with specified parameters.

    +

    BSplineRestriction.Tolerance2d - work tolerance + for definition of the possibility of the approximation of the 2D curves + with specified parameters.

    +

    BSplineRestriction.Continuity3d – desired continuity + of the resultant surfaces and 3D curves.

    +

    BSplineRestriction.Continuity2d – desired continuity + of the resultant 2D curves.

    +

    BSplineRestriction.RequiredDegree - required + degree of the resultant BSplines

    +

    BSplineRestriction.RequiredNbSegments - required + maximum number of segments of resultant BSplines.

    +

    6

    +

    SplitContinuity + – this operator is intended for splitting shapes to achieve continuities + of curves and surfaces less than specified ones.

    +

    SplitContinuity.Tolerance3d - 3D tolerance + for correction of geometry.

    +

    SplitContinuity.SurfaceContinuity - required + continuity for surfaces.

    +

    SplitContinuity.CurveContinuity - required + continuity for curves.

    +

    7

    +

    ToBezier - this + operator is intended for conversion of the curves and surfaces of the + all types into Bezier curves and surfaces.

    +

    ToBezier.SurfaceMode - mode of conversion of + the surfaces.

    +

    ToBezier.Curve3dMode – mode for conversion + of the 3D curves.

    +

    ToBezier.Curve2dMode – mode for conversion + of the 2D curves.

    +

    ToBezier.MaxTolerance – max possible tolerance + on the resultant shape.

    +

    8

    +

    FixShape – this + operator is intended for correction of the invalid shapes

    +

    FixShape.Tolerance3d – work tolerance for detection + of the problems and correction of them.

    +

    FixShape.MaxTolerance3d - maximal possible + tolerance of the shape after correction.

    +

    9

    +

    SameParameter + – this operator is intended for fixing edges having not same parameter + 2D and 3D curves.

    +

    SameParameter.Tolerance3d – tolerance for detection + and fix problems.

    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    Shape before applying Shape Processing (FixShape + operator).

    + +

     

    + +

       

    + +

     

    + +

    The + same shape after applying Shape Processing.

    + +

     

    + +

    + +

     

    + +

     

    + +

    Suppress faces

    + +

     

    + +

    Description: + Suppresses a face of a shape.

    + +

     

    + +

    Result: GEOM_Object + (ListOfGeomShapes).

    + +

     

    + +

    TUI Command: + geompy.SuppressFaces(Shape, ListOfID), + where Shape is a shape to be processed, ListOfID is a list of faces ID's + to be removed.

    + +

     

    + +

    Arguments: + Name + Faces which should be removed (you can select them in the 3D viewer).

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Close contour

    + +

     

    + +

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

    • +
    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.CloseContour(Shape, Wires, + IsCommonVertex), where Shape is a shape to be processed, Wires + is a list of edges or wires IDÂ’s which has to be closed within the shape + (if the list contains only one element = -1, the shape itself is considered + as a wire),  IsCommonVertex + if this parameter is True a closure has to be done by creation of a common + vertex, otherwise an edge is added between the end vertices.

    + +

     

    + +

    Arguments: Name + 1 shape + contour (Wire, + or a set of Edges) + mode of closure (by vertex or by edge)

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

    Suppress + internal wires

    + +

     

    + +

    Description : + Removes all internal wires or specified internal wires from user specified + faces.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.SuppressInternalWires(Shape, + Wires), where Shape is a shape where wires are to be removed, Wires + is a list of wires IDÂ’s to be removed; if the list is empty then all internal + wires are removed.

    + +

     

    + +

     

    + +

    Arguments:

    + +
      + +
    • Name of the resulting + object

    • + +
    • User specified face

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

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

       

    + +

     

    + +

     

    + +

    Suppress + holes

    + +

     

    + +

    Description : +

    + +
      + +
    • 1st + Constructor : Suppresses a hole in a shape.

    • + +
    • 2nd + Constructor : Suppresses a hole in a face.

    • +
    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.SuppressHoles(Shape, + ListOfWireID), where Shape is a + shape where holes must be removed, ListOfWireID is a list of wire sub + shapes IDÂ’s. If it is empty, then all holes are removed.

    + +

     

    + +

    Arguments: Name + + 1 shape + Wires which should be removed.

    + +

    Remove all + holes checkbox allows to fill all holes of a definite shape.

    + +

    Detect button + allows to display the number of free boundaries in your shape:

    + +

     

    + +

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

      

    + +

    Example:

    + +

     

    + +

       

    + +

     

    + +

     

    + +

     

    + +

    Sewing

    + +

     

    + +

    Description: + Sew several  shapes.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command : + geompy.MakeSewing(ListOfShape, Precision), + where ListOfShape is list of shapes to be sewed, Precision is a precision + for sewing.

    + +

     

    + +

    Arguments: + Name + 1 or more shapes + 1 value (sew precision).

    + +

    Detect + button allows to display the number of free boundaries in your + shape:

    + +

     

    + +

    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Add point on edge

    + +

     

    + +

    Description: + 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).

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command : + geompy.DivideEdge(Shape, EdgeID, + Value, IsByParameter), where Shape is a shape which contains an + edge to be divided, EdgeID is the ID of the edge to be divided, if it + = -1, then Shape is an edge, Value is a paramter on the edge or a length. + IsByParameter if it is True then Value is the edge parameter in the range + [0:1] otherwise it is a length of the edge in the range [0:1]

    + +

     

    + +

    Arguments: + Name + 1 Edge + 1 value setting the position of the point according to + one of the selected modes

    + +

     

    + +

    Dialog + Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

         

    + +

     

    + +

     

    + +

     

    + +

    Glue faces

    + +

     

    + +

    Description: + Glues faces that are coincident with respect to the given tolerance

    + +

    value.

    + +

     

    + +

    Result: + GEOM_Object.

    + +

     

    + +

    TUI Command + : geompy.MakeGlueFaces(theShape, + theTolerance), where theShape is a compound of shapesto be glued, + theTolerance is a maximum distance between two faces, which can be considered + as coincident.

    + +

     

    + +

    Arguments: + Name + 1 Compound + + Tolerance value

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

      

    + +

     

    + +

     

    + +

     

    + +

    Check free boundaries

    + +

     

    + +

    Description: + Detects wires and edges that correspond to the shape's boundary, and highlights + it

    + +

     

    + +

    Result: GEOM_Object. +

    + +

     

    + +

    TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape), + where Shape is a shape to be checked, NoError is false if an error occurred + while checking free boundaries, ClosedWires is a list of closed free boundary + wires, OpenWires is a list of open free boundary wires.

    + +

     

    + +

    Arguments: + Shape

    + +

     

    + +

    Dialog + Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

      

    + +

     

    + +

     

    + +

     

    + +

    Check free + faces

    + +

     

    + +

    Description: + Retrieves all free faces from a given shape. A free face is + a face not shared between two shells of the shape.

    + +

     

    + +

    Result: GEOM_Object. + Returns a list of IDs of all free faces, contained in the shape.

    + +

     

    + +

    TUI Command : GetFreeFacesIDs(Shape), where + Shape is a shape to be checked.

    + +

     

    + +

    Arguments: + Shape

    + +

     

    + +

    Dialog + Box:

    + +

     

    + +

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif new file mode 100755 index 000000000..d4b54ec3c Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif new file mode 100755 index 000000000..b39eb2034 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif new file mode 100755 index 000000000..3917bf3e2 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions.htm b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions.htm new file mode 100755 index 000000000..956e7ec71 --- /dev/null +++ b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions.htm @@ -0,0 +1,669 @@ + + + + + +Titre + + + + + + + + + + + + +

    Using transformation operations

    + +

    In GEOM there is a set + of operations allowing to transform the initial geometrical object into + other objects, which will be also created. These operations are

    + +

     

    + + + +

     

    + +

    All these operations are accessible in the + main menu, via Operations / Transformation.

    + +

     

    + +

    Translation

    + +

     

    + +

    Description: + Makes a translation of a shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

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

    + +
      + +
    • 1st + Constructor: Name + 1 shape + + 3 values (coordinates).

    • + +
    • 2st + Constructor: Name + 1 shape + + 2 vertices.

    • + +
    • 3st + Constructor: Name + 1 shape + + 1 vector.

    • +
    + +

     

    + +

    Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

       

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Rotation +

    + +

     

    + +

    Description: + Rotates the initial shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakeRotation(Shape, Axis, + Angle), where Shape is a shape to be rotated, Axis is an axis of + rotation, Angle is an angle of rotation.

    + +

     

    + +

    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.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Modify the Location

    + +

     

    + +

    Description: + Modification of location of an object.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject + is a shape, location of which is modified, theStartLCS is a location to + move the shape from, theEndLCS is a location to move the shape to.

    + +

     

    + +

    Arguments: + Name + 1 GEOM_Object + [Starting Coordinate System] + End Coordinate System.

    + +

    Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

      

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + +

     

    + +

    Mirror +

    + +

     

    + +

    Description: + Symmetrical copy of a shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakeMirrorByPlane(Shape, + Plane), where Shape is a shape to be mirrored, Plane is a plane + of symmetry.

    + +

     

    + +

    Arguments: +

    + +
      + +
    • 1st + Constructor: Name + 1 shape + + 1 vertex.

    • + +
    • 2st + Constructor: Name + 1 shape + + 1 vector.

    • + +
    • 3st + Constructor: Name + 1 shape + + 1 plane.

    • +
    + +

    Create a copy + checkbox allows to keep the initial object, otherwise it + will be removed.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Scale transform +

    + +

     

    + +

    Description: + Creates a scaled shape basing on the initial shape.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakeScaleTransform(Shape, + CenterOfScale, Factor), where Shape is a shape to be scaled, CenterOfScale + is a center point of scale, Factor is a factor of the scale.

    + +

     

    + +

    Arguments: + Name + 1 shape(s) + 1 vertex + 1 Scale Factor.

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Offset surface

    + +

     

    + +

    Description: + Each point is translated along a local normal by a given distance (signed + number, negative value meaning inner offset). Offset operation is applicable + to faces, shells and solids.

    + +

     

    + +

    Result: 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 of the resulting + object

    • + +
    • GEOM_Object (face, shell, + solid, compound)

    • + +
    • offset value

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

    + +

     

    + +

     

    + +

    Multi-Translation

    + +

     

    + +

    Description: + Makes several translations of a shape in one + or two directions.

    + +

     

    + +

    Result: GEOM_Object + (compound).

    + +

     

    + +

    TUI Command:

    + +
      + +
    • geompy.MakeMultiTranslation1D(Shape, + Dir, Step, NbTimes), where Shape is a shape to be translated, Dir + is a direction of translation, Step is a step of the translation, NbTimes + is a number of times the shape must be moved.

    • + +
    • 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, Dir2 is the second direction of translation, Step2 of the second + translation, NbTimes2 is a number of translations to be done along Dir2.

    • +
    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st + Constructor (in one direction): + Name + 1 shape + 1 vector (for direction) + 1 step value + 1 value (repetition).

    • + +
    • 2nd + Constructor (in two directions): + Name + 1 shape + 2 vectors defining the direction + 2 step values + 2 + values (repetitions).

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    One direction:

    + +

     

    + +

     

    + +

     

    + +

    Two directions:

    + +

     

    + +

     

    + +

     

    + +

     

    + +

    Multi-Rotation

    + +

     

    + +

    Description: + Creates several rotated geometrical objects in one + or two directions + basing on the initial geometrical object.

    + +

     

    + +

    Result: GEOM_Object + (compound).

    + +

     

    + +

    TUI Command:

    + +
      + +
    • geompy.MakeMultiRotation1D(Shape, + Axis, NbTimes), where Shape is a shape to be rotated, Axis is an + Axis of rotation, NbTimes is a number of the shape must be rotated.

    • + +
    • geompy.MakeMultiRotation2D(Shape, + Axis, Angle, NbTimes1, Step, NbTimes2), where Shape is a shape + to be rotated, Axis is an axis of rotation, Angle is an angle of rotation, + NbTimes1 is a number of rotation, Step is a step of translation, NbTimes2 + is a number of translation.

    • +
    + +

     

    + +

    Arguments:

    + +
      + +
    • 1st + Constructor (in one direction): + Name + 1 shape + 1 vector for direction + 1 value (repetition).

    • + +
    • 2nd + Constructor (in two directions): + Name + 1 shape + 1 vector for direction + 1 angle + 1 value (repetition) + + 1 step value + 1 value (repetition); Reverse + checkbox allows to set the direction of rotation.

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    One direction:

    + +

     

    + +

     

    + +

     

    + +

    Two directions:

    + +

     

    + +

     

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif new file mode 100755 index 000000000..7a140ed93 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif new file mode 100755 index 000000000..d3fdead87 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif new file mode 100755 index 000000000..980336276 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif new file mode 100755 index 000000000..2059e9d9d Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif new file mode 100755 index 000000000..29aaddb0a Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif differ diff --git a/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif new file mode 100755 index 000000000..d55ff89b3 Binary files /dev/null and b/doc/salome/GEOM/files/salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif differ diff --git a/doc/salome/GEOM/fillet.htm b/doc/salome/GEOM/fillet.htm new file mode 100755 index 000000000..9c7c45168 --- /dev/null +++ b/doc/salome/GEOM/fillet.htm @@ -0,0 +1,179 @@ + + + + + +Fillet + + + + + + + + + + + + +

    Fillet

    + +

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

    + +

     

    + +

    This operation creates + fillets on the edges of a shape.

    + +

    The + Result will be a GEOM_Object.

    + +

     

    + +

    To create fillets on all edges of the given + shape, you need to define the Main Object + to create a fillet on and the Radius + of the Fillet.  

    + +

    TUI Command: + geompy.MakeFilletAll(Shape, R)

    + +

    Arguments: Name + 1 shape + 1 value + (fillet radius).

    + +

     

    + +

    + +

     

    + +

    To create fillets  on + the specified edges or faces of the given shape,  you + need to define the Main Object + to create a fillet on, select the necessary edges or faces in the object + browser or in the 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/GEOM/filling.htm b/doc/salome/GEOM/filling.htm new file mode 100755 index 000000000..2d6edb477 --- /dev/null +++ b/doc/salome/GEOM/filling.htm @@ -0,0 +1,153 @@ + + + + + +Filling + + + + + + + + + + + + +

     Filling + Surface with Curves

    + +

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

    + +

     

    + +

    To create a curving face using several curves + you need to define the Curves, + which will be the components of your face, Minimum + and Maximum Degree, Tolerance + for 2D and for 3D +  and + the Number of Iterations.

    + +

    The + Result of the operation will be a + GEOM_Object (face).

    + +

     

    + +

    TUI Command: + geompy.MakeFilling(Shape, MinDegree, + MaxDegree, Tol2D, Tol3D, NbIter),

    + +

    Arguments: + Name + 1 List of edges + 5 Parameters (Min. degree, Max. degree, Number + of iterations, 2D tolerance, 3D tolerance).

    + +

     

    + +

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Our TUI Scripts provide you with useful examples + of creation of Complex Geometric + Objects.

    + +

     

    + + + + diff --git a/doc/salome/GEOM/fuse.htm b/doc/salome/GEOM/fuse.htm new file mode 100755 index 000000000..6108eb671 --- /dev/null +++ b/doc/salome/GEOM/fuse.htm @@ -0,0 +1,147 @@ + + + + + +Fuse + + + + + + + + + + + + +

    Fuse

    + +

    To produce + a Fuse in the Main Menu select + Operations - > Boolean - > Fuse

    + +

     

    + +

    This operation creates a shape from two + shapes.

    + +

     

    + +

    The Result + will be a GEOM_Object (COMPOUND).

    + +

    Arguments: + Name + 2 shapes.

    + +

    TUI + Command:  geompy.MakeFuse(s1, + s2)

    + +

     

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Our TUI Scripts + provide you with useful examples of the use of Boolean + Operations.

    + +

     

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

    + +

    edge = geompy.MakeEdge(p0, + pxyz)

    + +

     

    + +

    # add object in study

    + +

    id_edge = geompy.addToStudy(edge,"Edge")

    + +

     

    + +

    # display 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 vector on two + points

    + +

    vxy = geompy.MakeVector(px, + py)

    + +

     

    + +

    # create arc with three + points

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vxy, + arc])

    + +

     

    + +

    # add object in study

    + +

    id_wire = geompy.addToStudy(wire,"Wire")

    + +

     

    + +

    # display 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 vector on two + points

    + +

    vxy = geompy.MakeVector(px, + py)

    + +

     

    + +

    # create arc with three + points

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create 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 face from 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 study

    + +

    id_face1 = geompy.addToStudy(face1,"Face1")

    + +

    id_face2 = geompy.addToStudy(face2,"Face2")

    + +

    id_face3 = geompy.addToStudy(face3,"Face3")

    + +

     

    + +

    # display 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 face from two + wires

    + +

    face = geompy.MakeFaces([sketcher1, + sketcher2],isPlanarFace)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrism(face, + p0, pxyz)

    + +

     

    + +

    # explode prism on faces

    + +

    prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])

    + +

     

    + +

    # create shell from the + set of faces

    + +

    shell = geompy.MakeShell([prism_faces[0], + prism_faces[2], prism_faces[3],

    + +

                              prism_faces[7], + prism_faces[9]])

    + +

     

    + +

    # add objects in study

    + +

    id_shell = geompy.addToStudy(shell,"Shell")

    + +

     

    + +

    # display 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 prism

    + +

    prism = geompy.MakePrism(face, + p0, pz)

    + +

     

    + +

    # explode prism on faces

    + +

    prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])

    + +

     

    + +

    # create shell from the + 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 solid, bounded + by the given shells

    + +

    solid = geompy.MakeSolid([shell])

    + +

     

    + +

    # add objects in study

    + +

    id_solid = geompy.addToStudy(solid,"Solid")

    + +

     

    + +

    # display solid

    + +

    gg.createAndDisplayGO(id_solid)

    + +

    gg.setDisplayMode(id_solid,1) +

    + +

     

    + +

    Creation of a Compound

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    #create vertices

    + +

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

    + +

    pz = geompy.MakeVertex( + 0.,  0., + 40.)

    + +

     

    + +

    # create sketchers

    + +

    sketcher = geompy.MakeSketcher("Sketcher:F + -50 -50:TT 100 -50:R 0:C 50 70:R 0:L 100:WW")

    + +

     

    + +

    # create faces from two + wires

    + +

    face = geompy.MakeFace(sketcher,1)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrism(face, + p0, pz)

    + +

     

    + +

    # explode prism on faces

    + +

    prism_faces = geompy.SubShapeAllSorted(prism, + geompy.ShapeType["FACE"])

    + +

     

    + +

    # create shell from the + 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 solid, bounded + by the given shells

    + +

    solid = geompy.MakeSolid([shell])

    + +

     

    + +

    # add objects in study

    + +

    id_solid = geompy.addToStudy(solid,"Solid")

    + +

     

    + +

    # display solid

    + +

    gg.createAndDisplayGO(id_solid)

    + +

    gg.setDisplayMode(id_solid,1) +

    + + + + diff --git a/doc/salome/GEOM/geompy_doc/GEOM__TestMeasures_8py.html b/doc/salome/GEOM/geompy_doc/GEOM__TestMeasures_8py.html new file mode 100644 index 000000000..06a37f66a --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/GEOM__TestMeasures_8py.html @@ -0,0 +1,29 @@ + + + + + + Main Page + + + +  +
    + +
    + + + + + +

    GEOM_TestMeasures.py File Reference

    + + + + +

    Namespaces

    namespace  GEOM_TestMeasures
    +
    Generated on Tue Oct 18 00:47:36 2005 for SALOME - GEOM - v.2.1.0 by + +doxygen 1.3.7
    + + diff --git a/doc/salome/GEOM/geompy_doc/doxygen.css b/doc/salome/GEOM/geompy_doc/doxygen.css new file mode 100644 index 000000000..dc9da5220 --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/doxygen.css @@ -0,0 +1,218 @@ +H1 { + text-align: center; + font-family: Geneva, Arial, Helvetica, sans-serif; +} +H2 { + font-family: Geneva, Arial, Helvetica, sans-serif; +} +CAPTION { font-weight: bold } +DIV.qindex { + width: 100%; + background-color: #eeeeff; + border: 1px solid #B0B0B0; + text-align: center; + margin: 2px; + padding: 2px; + line-height: 120%; +} +A.qindex { + text-decoration: none; + font-weight: bold; + color: #1A419D; + padding: 2px; +} +A.qindex:visited { + text-decoration: none; + font-weight: bold; + color: #1A419D + padding: 2px; +} +A.qindex:hover { + text-decoration: none; + background-color: #ddddff; + padding: 2px; +} +A.qindexHL { + text-decoration: none; + font-weight: bold; + background-color: #6666cc; + color: #ffffff; + padding: 2px 6px; + border: 1px double #9295C2; +} +A.qindexHL:hover { + text-decoration: none; + background-color: #6666cc; + color: #ffffff; + padding: 2px 6px; +} +A.qindexHL:visited { text-decoration: none; background-color: #6666cc; color: #ffffff } +A.el { text-decoration: none; font-weight: bold } +A.elRef { font-weight: bold } +A.code { text-decoration: none; font-weight: normal; color: #1A419D} +A.codeRef { font-weight: normal; color: #1A419D} +A:hover { text-decoration: none; background-color: #f2f2ff } +DL.el { margin-left: -1cm } +PRE.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + margin-top: 4px; + margin-bottom: 4px; + margin-left: 2px; + margin-right: 8px; + padding-left: 6px; + padding-right: 6px; + padding-top: 4px; + padding-bottom: 4px; +} +DIV.fragment { + border: 1px solid #CCCCCC; + background-color: #f5f5f5; + padding: 6px; +} +DIV.ah { background-color: black; font-weight: bold; color: #ffffff; margin-bottom: 3px; margin-top: 3px } +TD.md { background-color: #F4F4FB; font-weight: bold; } +TD.mdname1 { background-color: #F4F4FB; font-weight: bold; color: #602020; } +TD.mdname { background-color: #F4F4FB; font-weight: bold; color: #602020; width: 600px; } +DIV.groupHeader { + margin-left: 16px; + margin-top: 12px; + margin-bottom: 6px; + font-weight: bold; + font-family: Geneva, Arial, Helvetica, sans-serif; +} +DIV.groupText { margin-left: 16px; font-style: italic; font-size: smaller } +BODY { + background: white; + color: black; + margin-right: 20px; + margin-left: 20px; +} +TD.indexkey { + background-color: #eeeeff; + 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; + border: 1px solid #CCCCCC; +} +TD.indexvalue { + background-color: #eeeeff; + 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; + border: 1px solid #CCCCCC; +} +TR.memlist { + background-color: #f0f0f0; +} +P.formulaDsp { text-align: center; } +IMG.formulaDsp { } +IMG.formulaInl { vertical-align: middle; } +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 } +.mdTable { + border: 1px solid #868686; + background-color: #F4F4FB; +} +.mdRow { + padding: 8px 10px; +} +.mdescLeft { + font-size: smaller; + font-style: italic; + background-color: #FAFAFA; + padding-left: 8px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; +} +.mdescRight { + font-size: smaller; + font-style: italic; + background-color: #FAFAFA; + padding-left: 4px; + border-top: 1px none #E0E0E0; + border-right: 1px none #E0E0E0; + border-bottom: 1px none #E0E0E0; + border-left: 1px none #E0E0E0; + margin: 0px; + padding-bottom: 0px; + padding-right: 8px; +} +.memItemLeft { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 12px; +} +.memItemRight { + padding: 1px 0px 0px 8px; + margin: 4px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px; + border-left-width: 1px; + border-top-style: solid; + border-top-color: #E0E0E0; + border-right-color: #E0E0E0; + border-bottom-color: #E0E0E0; + border-left-color: #E0E0E0; + border-right-style: none; + border-bottom-style: none; + border-left-style: none; + background-color: #FAFAFA; + font-family: Geneva, Arial, Helvetica, sans-serif; + font-size: 13px; +} +.search { color: #003399; + font-weight: bold; +} +FORM.search { + margin-bottom: 0px; + margin-top: 0px; +} +INPUT.search { font-size: 75%; + color: #000080; + font-weight: normal; + background-color: #eeeeff; +} +TD.tiny { font-size: 75%; +} +a { + color: #252E78; +} +a:visited { + color: #3D2185; +} diff --git a/doc/salome/GEOM/geompy_doc/doxygen.png b/doc/salome/GEOM/geompy_doc/doxygen.png new file mode 100644 index 000000000..9da55f95f Binary files /dev/null and b/doc/salome/GEOM/geompy_doc/doxygen.png differ diff --git a/doc/salome/GEOM/geompy_doc/geompy_8py__incl.jpg b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.jpg new file mode 100644 index 000000000..b1a0ce260 Binary files /dev/null and b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.jpg differ diff --git a/doc/salome/GEOM/geompy_doc/geompy_8py__incl.map b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.map new file mode 100644 index 000000000..5a14779e7 --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.map @@ -0,0 +1 @@ +base referer diff --git a/doc/salome/GEOM/geompy_doc/geompy_8py__incl.md5 b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.md5 new file mode 100644 index 000000000..1f2d2ba0e --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/geompy_8py__incl.md5 @@ -0,0 +1 @@ +0848e1ec9d428b6f7446355ed9f585a7 \ No newline at end of file diff --git a/doc/salome/GEOM/geompy_doc/namespaceGEOM__TestMeasures.html b/doc/salome/GEOM/geompy_doc/namespaceGEOM__TestMeasures.html new file mode 100644 index 000000000..24ab2972a --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/namespaceGEOM__TestMeasures.html @@ -0,0 +1,70 @@ + + + + + + Main Page + + + +  +
    + +
    + + + + + +

    Package GEOM_TestMeasures

    Module "GEOM_TestMeasures". +More... +

    + + + + + +

    Functions

     TestMeasureOperations (geompy, math)
    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    TestMeasureOperations geompy ,
    math 
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Tue Oct 18 00:47:37 2005 for SALOME - GEOM - v.2.1.0 by + +doxygen 1.3.7
    + + diff --git a/doc/salome/GEOM/geompy_doc/namespacegeompy.html b/doc/salome/GEOM/geompy_doc/namespacegeompy.html new file mode 100644 index 000000000..189eb4505 --- /dev/null +++ b/doc/salome/GEOM/geompy_doc/namespacegeompy.html @@ -0,0 +1,8409 @@ + + + + + + Main Page + + + +  +
    + +
    + + + + + +

    Package geompy

    Module geompy. +More... +

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

    Functions

     init_geom (theStudy)
     SubShapeName (aSubObj, aMainObj)
     Get name for sub-shape aSubObj of shape aMainObj.

     addToStudy (aShape, aName)
     Publish in study aShape with name aName.

     addToStudyInFather (aFather, aShape, aName)
     Publish in study aShape with name aName as sub-object of previously published aFather.

     MakeVertex (theX, theY, theZ)
     Create point by three coordinates.

     MakeVertexWithRef (theReference, theX, theY, theZ)
     Create a point, distant from the referenced point on the given distances along the coordinate axes.

     MakeVertexOnCurve (theRefCurve, theParameter)
     Create a point, corresponding to the given parameter on the given curve.

     MakeVectorDXDYDZ (theDX, theDY, theDZ)
     Create a vector with the given components.

     MakeVector (thePnt1, thePnt2)
     Create a vector between two points.

     MakeLine (thePnt, theDir)
     Create a line, passing through the given point and parrallel to the given direction.

     MakeLineTwoPnt (thePnt1, thePnt2)
     Create a line, passing through the given points.

     MakePlane (thePnt, theVec, theTrimSize)
     Create a plane, passing through the given point and normal to the given vector.

     MakePlaneThreePnt (thePnt1, thePnt2, thePnt3, theTrimSize)
     Create a plane, passing through the three given points.

     MakePlaneFace (theFace, theTrimSize)
     Create a plane, similar to the existing one, but with another size of representing face.

     MakeMarker (OX, OY, OZ, XDX, XDY, XDZ, YDX, YDY, YDZ)
     Create a local coordinate system.

     MakeMarkerPntTwoVec (theOrigin, theXVec, theYVec)
     Create a local coordinate system.

     MakeArc (thePnt1, thePnt2, thePnt3)
     Create an arc of circle, passing through three given points.

     MakeCircle (thePnt, theVec, theR)
     Create a circle with given center, normal vector and radius.

     MakeCircleThreePnt (thePnt1, thePnt2, thePnt3)
     Create a circle, passing through three given points.

     MakeEllipse (thePnt, theVec, theRMajor, theRMinor)
     Create an ellipse with given center, normal vector and radiuses.

     MakePolyline (thePoints)
     Create a polyline on the set of points.

     MakeBezier (thePoints)
     Create bezier curve on the set of points.

     MakeInterpol (thePoints)
     Create B-Spline curve on the set of points.

     MakeSketcher (theCommand, theWorkingPlane=[0, 0, 0, 0, 0, 1, 1, 0, 0])
     Create a sketcher (wire or face), following the textual description, passed through theCommand argument.

     MakeSketcherOnPlane (theCommand, theWorkingPlane)
     Create a sketcher (wire or face), following the textual description, passed through theCommand argument.

     MakeBox (x1, y1, z1, x2, y2, z2)
     Create a box by coordinates of two opposite vertices.

     MakeBoxDXDYDZ (theDX, theDY, theDZ)
     Create a box with specified dimensions along the coordinate axes and with edges, parallel to the coordinate axes.

     MakeBoxTwoPnt (thePnt1, thePnt2)
     Create a box with two specified opposite vertices, and with edges, parallel to the coordinate axes.

     MakeCylinder (thePnt, theAxis, theR, theH)
     Create a cylinder with given base point, axis, radius and height.

     MakeCylinderRH (theR, theH)
     Create a cylinder with given radius and height at the origin of coordinate system.

     MakeSpherePntR (thePnt, theR)
     Create a sphere with given center and radius.

     MakeSphere (x, y, z, theR)
     Create a sphere with given center and radius.

     MakeSphereR (theR)
     Create a sphere with given radius at the origin of coordinate system.

     MakeCone (thePnt, theAxis, theR1, theR2, theH)
     Create a cone with given base point, axis, height and radiuses.

     MakeConeR1R2H (theR1, theR2, theH)
     Create a cone with given height and radiuses at the origin of coordinate system.

     MakeTorus (thePnt, theVec, theRMajor, theRMinor)
     Create a torus with given center, normal vector and radiuses.

     MakeTorusRR (theRMajor, theRMinor)
     Create a torus with given radiuses at the origin of coordinate system.

     MakePrism (theBase, thePoint1, thePoint2)
     Create a shape by extrusion of the base shape along a vector, defined by two points.

     MakePrismVecH (theBase, theVec, theH)
     Create a shape by extrusion of the base shape along the vector, i.e.

     MakePipe (theBase, thePath)
     Create a shape by extrusion of the base shape along the path shape.

     MakeRevolution (theBase, theAxis, theAngle)
     Create a shape by revolution of the base shape around the axis on the given angle, i.e.

     MakeEdge (thePnt1, thePnt2)
     Create a linear edge with specified ends.

     MakeWire (theEdgesAndWires)
     Create a wire from the set of edges and wires.

     MakeFace (theWire, isPlanarWanted)
     Create a face on the given wire.

     MakeFaceWires (theWires, isPlanarWanted)
     Create a face on the given wires set.

     MakeFaces (theWires, isPlanarWanted)
     Shortcut to MakeFaceWires().

     MakeShell (theFacesAndShells)
     Create a shell from the set of faces and shells.

     MakeSolid (theShells)
     Create a solid, bounded by the given shells.

     MakeCompound (theShapes)
     Create a compound of the given shapes.

     NumberOfFaces (theShape)
     Gives quantity of faces in the given shape.

     NumberOfEdges (theShape)
     Gives quantity of edges in the given shape.

     ChangeOrientation (theShape)
     Reverses an orientation the given shape.

     OrientationChange (theShape)
     Shortcut to ChangeOrientation().

     GetFreeFacesIDs (theShape)
     Retrieve all free faces from the given shape.

     GetSharedShapes (theShape1, theShape2, theShapeType)
     Get all sub-shapes of theShape1 of the given type, shared with theShape2.

     GetShapesOnPlane (theShape, theShapeType, theAx1, theState)
     Find in theShape all sub-shapes of type theShapeType, situated relatively the specified plane by the certain way, defined through theState parameter.

     GetShapesOnPlaneIDs (theShape, theShapeType, theAx1, theState)
     Works like the above method, but returns list of sub-shapes indices.

     GetShapesOnCylinder (theShape, theShapeType, theAxis, theRadius, theState)
     Find in theShape all sub-shapes of type theShapeType, situated relatively the specified cylinder by the certain way, defined through theState parameter.

     GetShapesOnCylinderIDs (theShape, theShapeType, theAxis, theRadius, theState)
     Works like the above method, but returns list of sub-shapes indices.

     GetShapesOnSphere (theShape, theShapeType, theCenter, theRadius, theState)
     Find in theShape all sub-shapes of type theShapeType, situated relatively the specified sphere by the certain way, defined through theState parameter.

     GetShapesOnSphereIDs (theShape, theShapeType, theCenter, theRadius, theState)
     Works like the above method, but returns list of sub-shapes indices.

     GetShapesOnQuadrangle (theShape, theShapeType, theTopLeftPoint, theTopRigthPoint, theBottomLeftPoint, theBottomRigthPoint, theState)
     Find in theShape all sub-shapes of type theShapeType, situated relatively the specified quadrangle by the certain way, defined through theState parameter.

     GetShapesOnQuadrangleIDs (theShape, theShapeType, theTopLeftPoint, theTopRigthPoint, theBottomLeftPoint, theBottomRigthPoint, theState)
     Works like the above method, but returns list of sub-shapes indices.

     GetInPlace (theShapeWhere, theShapeWhat)
     Get sub-shape(s) of theShapeWhere, which are coincident with theShapeWhat or could be a part of it.

     GetSubShape (aShape, ListOfID)
     Obtain a composite sub-shape of <ashape>, composed from sub-shapes of <ashape>, selected by their unique IDs inside <ashape>.

     GetSubShapeID (aShape, aSubShape)
     Obtain unique ID of sub-shape <asubshape> inside <ashape>.

     SubShapeAll (aShape, aType)
     Explode a shape on subshapes of a given type.

     SubShapeAllIDs (aShape, aType)
     Explode a shape on subshapes of a given type.

     SubShapeAllSorted (aShape, aType)
     Explode a shape on subshapes of a given type.

     SubShapeAllSortedIDs (aShape, aType)
     Explode a shape on subshapes of a given type.

     SubShape (aShape, aType, ListOfInd)
     Obtain a compound of sub-shapes of <ashape>, selected by they indices in list of all sub-shapes of type <atype>.

     SubShapeSorted (aShape, aType, ListOfInd)
     Obtain a compound of sub-shapes of <ashape>, selected by they indices in sorted list of all sub-shapes of type <atype>.

     ProcessShape (theShape, theOperators, theParameters, theValues)
     Apply a sequence of Shape Healing operators to the given object.

     SuppressFaces (theObject, theFaces)
     Remove faces from the given object (shape).

     MakeSewing (ListShape, theTolerance)
     Sewing of some shapes into single shape.

     Sew (theObject, theTolerance)
     Sewing of the given object.

     SuppressInternalWires (theObject, theWires)
     Remove internal wires and edges from the given object (face).

     SuppressHoles (theObject, theWires)
     Remove internal closed contours (holes) from the given object.

     CloseContour (theObject, theWires, isCommonVertex)
     Close an open wire.

     DivideEdge (theObject, theEdgeIndex, theValue, isByParameter)
     Addition of a point to a given edge object.

     GetFreeBoundary (theObject)
     Get a list of wires (wrapped in GEOM_Object-s), that constitute a free boundary of the given shape.

     MakeCopy (theOriginal)
     Create a copy of the given object.

     MakeFilling (theShape, theMinDeg, theMaxDeg, theTol2D, theTol3D, theNbIter)
     Create a filling from the given compound of contours.

     MakeGlueFaces (theShape, theTolerance)
     Replace coincident faces in theShape by one face.

     MakeBoolean (theShape1, theShape2, theOperation)
     Perform one of boolean operations on two given shapes.

     MakeCommon (s1, s2)
     Shortcut to MakeBoolean(s1, s2, 1).

     MakeCut (s1, s2)
     Shortcut to MakeBoolean(s1, s2, 2).

     MakeFuse (s1, s2)
     Shortcut to MakeBoolean(s1, s2, 3).

     MakeSection (s1, s2)
     Shortcut to MakeBoolean(s1, s2, 4).

     MakePartition (ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[], Limit=ShapeType["SHAPE"], RemoveWebs=0, ListMaterials=[])
     Perform partition operation.

     Partition (ListShapes, ListTools=[], ListKeepInside=[], ListRemoveInside=[], Limit=ShapeType["SHAPE"], RemoveWebs=0, ListMaterials=[])
     Shortcut to MakePartition().

     MakeHalfPartition (theShape, thePlane)
     Perform partition of the Shape with the Plane.

     MakeTranslationTwoPoints (theObject, thePoint1, thePoint2)
     Translate the given object along the vector, specified by its end points, creating its copy before the translation.

     MakeTranslation (theObject, theDX, theDY, theDZ)
     Translate the given object along the vector, specified by its components, creating its copy before the translation.

     MakeTranslationVector (theObject, theVector)
     Translate the given object along the given vector, creating its copy before the translation.

     MakeRotation (theObject, theAxis, theAngle)
     Rotate the given object around the given axis on the given angle, creating its copy before the rotatation.

     MakeScaleTransform (theObject, thePoint, theFactor)
     Scale the given object by the factor, creating its copy before the scaling.

     MakeMirrorByPlane (theObject, thePlane)
     Create an object, symmetrical to the given one relatively the given plane.

     MakeMirrorByAxis (theObject, theAxis)
     Create an object, symmetrical to the given one relatively the given axis.

     MakeMirrorByPoint (theObject, thePoint)
     Create an object, symmetrical to the given one relatively the given point.

     MakePosition (theObject, theStartLCS, theEndLCS)
     Modify the Location of the given object by LCS creating its copy before the setting.

     MakeOffset (theObject, theOffset)
     Create new object as offset of the given one.

     MakeMultiTranslation1D (theObject, theVector, theStep, theNbTimes)
     Translate the given object along the given vector a given number times.

     MakeMultiTranslation2D (theObject, theVector1, theStep1, theNbTimes1, theVector2, theStep2, theNbTimes2)
     Conseqently apply two specified translations to theObject specified number of times.

     MultiRotate1D (theObject, theAxis, theNbTimes)
     Rotate the given object around the given axis a given number times.

     MultiRotate2D (theObject, theAxis, theAngle, theNbTimes1, theStep, theNbTimes2)
     Rotate the given object around the given axis on the given angle a given number times and multi-translate each rotation result.

     MakeMultiRotation1D (aShape, aDir, aPoint, aNbTimes)
     The same, as MultiRotate1D(), but axis is given by direction and point.

     MakeMultiRotation2D (aShape, aDir, aPoint, anAngle, nbtimes1, aStep, nbtimes2)
     The same, as MultiRotate2D(), but axis is given by direction and point.

     MakeFilletAll (theShape, theR)
     Perform a fillet on all edges of the given shape.

     MakeFillet (theShape, theR, theShapeType, theListShapes)
     Perform a fillet on the specified edges/faces of the given shape.

     MakeChamferAll (theShape, theD)
     Perform a symmetric chamfer on all edges of the given shape.

     MakeChamferEdge (theShape, theD1, theD2, theFace1, theFace2)
     Perform a chamfer on edges, common to the specified faces, with distance D1 on the Face1.

     MakeChamferFaces (theShape, theD1, theD2, theFaces)
     Perform a chamfer on all edges of the specified faces, with distance D1 on the first specified face (if several for one edge).

     MakeChamfer (aShape, d1, d2, aShapeType, ListShape)
     Shortcut to MakeChamferEdge() and MakeChamferFaces().

     Archimede (theShape, theWeight, theWaterDensity, theMeshDeflection)
     Perform an Archimde operation on the given shape with given parameters.

     PointCoordinates (Point)
     Get point coordinates.

     BasicProperties (theShape)
     Get summarized length of all wires, area of surface and volume of the given shape.

     BoundingBox (theShape)
     Get parameters of bounding box of the given shape.

     Inertia (theShape)
     Get inertia matrix and moments of inertia of theShape.

     MinDistance (theShape1, theShape2)
     Get minimal distance between the given shapes.

     Tolerance (theShape)
     Get min and max tolerances of sub-shapes of theShape.

     WhatIs (theShape)
     Obtain description of the given shape (number of sub-shapes of each type).

     MakeCDG (theShape)
     Get a point, situated at the centre of mass of theShape.

     CheckShape (theShape)
     Check a topology of the given shape.

     Import (theFileName, theFormatName)
     Import a shape from the BREP or IGES or STEP file (depends on given format) with given name.

     ImportBREP (theFileName)
     Shortcut to Import() for BREP format.

     ImportIGES (theFileName)
     Shortcut to Import() for IGES format.

     ImportSTEP (theFileName)
     Shortcut to Import() for STEP format.

     Export (theObject, theFileName, theFormatName)
     Export the given shape into a file with given name.

     ExportBREP (theObject, theFileName)
     Shortcut to Export() for BREP format.

     ExportIGES (theObject, theFileName)
     Shortcut to Export() for IGES format.

     ExportSTEP (theObject, theFileName)
     Shortcut to Export() for STEP format.

     MakeQuad (E1, E2, E3, E4)
     Create a quadrangle face from four edges.

     MakeQuad2Edges (E1, E2)
     Create a quadrangle face on two edges.

     MakeQuad4Vertices (V1, V2, V3, V4)
     Create a quadrangle face with specified corners.

     MakeHexa (F1, F2, F3, F4, F5, F6)
     Create a hexahedral solid, bounded by the six given faces.

     MakeHexa2Faces (F1, F2)
     Create a hexahedral solid between two given faces.

     GetPoint (theShape, theX, theY, theZ, theEpsilon)
     Get a vertex, found in the given shape by its coordinates.

     GetEdge (theShape, thePoint1, thePoint2)
     Get an edge, found in the given shape by two given vertices.

     GetEdgeNearPoint (theShape, thePoint)
     Find an edge of the given shape, which has minimal distance to the given point.

     GetFaceByPoints (theShape, thePoint1, thePoint2, thePoint3, thePoint4)
     Returns a face, found in the given shape by four given corner vertices.

     GetFaceByEdges (theShape, theEdge1, theEdge2)
     Get a face of block, found in the given shape by two given edges.

     GetOppositeFace (theBlock, theFace)
     Find a face, opposite to the given one in the given block.

     GetFaceNearPoint (theShape, thePoint)
     Find a face of the given shape, which has minimal distance to the given point.

     GetFaceByNormale (theBlock, theVector)
     Find a face of block, whose outside normale has minimal angle with the given vector.

     CheckCompoundOfBlocks (theCompound)
     Check, if the compound of blocks is given.

     RemoveExtraEdges (theShape)
     Remove all seam and degenerated edges from theShape.

     CheckAndImprove (theShape)
     Check, if the given shape is a blocks compound.

     MakeBlockExplode (theCompound, theMinNbFaces, theMaxNbFaces)
     Get all the blocks, contained in the given compound.

     GetBlockNearPoint (theCompound, thePoint)
     Find block, containing the given point inside its volume or on boundary.

     GetBlockByParts (theCompound, theParts)
     Find block, containing all the elements, passed as the parts, or maximum quantity of them.

     GetBlocksByParts (theCompound, theParts)
     Return all blocks, containing all the elements, passed as the parts.

     MakeMultiTransformation1D (Block, DirFace1, DirFace2, NbTimes)
     Multi-transformate block and glue the result.

     MakeMultiTransformation2D (Block, DirFace1U, DirFace2U, NbTimesU, DirFace1V, DirFace2V, NbTimesV)
     Multi-transformate block and glue the result.

     Propagate (theShape)
     Build all possible propagation groups.

     CreateGroup (theMainShape, theShapeType)
     Creates a new group which will store sub shapes of theMainShape.

     AddObject (theGroup, theSubShapeID)
     Adds a sub object with ID theSubShapeId to the group.

     RemoveObject (theGroup, theSubShapeID)
     Removes a sub object with ID theSubShapeId from the group.

     UnionList (theGroup, theSubShapes)
     Adds to the group all the given shapes.

     UnionIDs (theGroup, theSubShapes)
     Works like the above method, but argument theSubShapes here is a list of sub-shapes indices.

     DifferenceList (theGroup, theSubShapes)
     Removes from the group all the given shapes.

     DifferenceIDs (theGroup, theSubShapes)
     Works like the above method, but argument theSubShapes here is a list of sub-shapes indices.

     GetObjectIDs (theGroup)
     Returns a list of sub objects ID stored in the group.

     GetType (theGroup)
     Returns a type of sub objects stored in the group.

     GetMainShape (theGroup)
     Returns a main shape associated with the group.

     GetEdgesByLength (theShape, min_length, max_length, include_min=1, include_max=1)
     Create group of edges of theShape, whose length is in range [min_length, max_length].

     SelectEdges (min_length, max_length, include_min=1, include_max=1)
     Create group of edges of selected shape, whose length is in range [min_length, max_length].

     addPath (Path)
     Add Path to load python scripts from.

    +


    Function Documentation

    +

    + + + + +
    + + + + + + + + + +
    init_geom theStudy   ) 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SubShapeName aSubObj ,
    aMainObj 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    addToStudy aShape ,
    aName 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    addToStudyInFather aFather ,
    aShape ,
    aName 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeVertex theX ,
    theY ,
    theZ 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theX The X coordinate of the point.
    theY The Y coordinate of the point.
    theZ The Z coordinate of the point.
    +
    +
    Returns:
    New GEOM_Object, containing the created point.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeVertexWithRef theReference ,
    theX ,
    theY ,
    theZ 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theReference The referenced point.
    theX Displacement from the referenced point along OX axis.
    theY Displacement from the referenced point along OY axis.
    theZ Displacement from the referenced point along OZ axis.
    +
    +
    Returns:
    New GEOM_Object, containing the created point.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeVertexOnCurve theRefCurve ,
    theParameter 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theRefCurve The referenced curve.
    theParameter Value of parameter on the referenced curve.
    +
    +
    Returns:
    New GEOM_Object, containing the created point.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeVectorDXDYDZ theDX ,
    theDY ,
    theDZ 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theDX X component of the vector.
    theDY Y component of the vector.
    theDZ Z component of the vector.
    +
    +
    Returns:
    New GEOM_Object, containing the created vector.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeVector thePnt1 ,
    thePnt2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt1 Start point for the vector.
    thePnt2 End point for the vector.
    +
    +
    Returns:
    New GEOM_Object, containing the created vector.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeLine thePnt ,
    theDir 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt Point. The resulting line will pass through it.
    theDir Direction. The resulting line will be parallel to it.
    +
    +
    Returns:
    New GEOM_Object, containing the created line.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeLineTwoPnt thePnt1 ,
    thePnt2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt1 First of two points, defining the line.
    thePnt2 Second of two points, defining the line.
    +
    +
    Returns:
    New GEOM_Object, containing the created line.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePlane thePnt ,
    theVec ,
    theTrimSize 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    thePnt Point, the plane has to pass through.
    theVec Vector, defining the plane normal direction.
    theTrimSize Half size of a side of quadrangle face, representing the plane.
    +
    +
    Returns:
    New GEOM_Object, containing the created plane.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePlaneThreePnt thePnt1 ,
    thePnt2 ,
    thePnt3 ,
    theTrimSize 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    thePnt1 First of three points, defining the plane.
    thePnt2 Second of three points, defining the plane.
    thePnt3 Fird of three points, defining the plane.
    theTrimSize Half size of a side of quadrangle face, representing the plane.
    +
    +
    Returns:
    New GEOM_Object, containing the created plane.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakePlaneFace theFace ,
    theTrimSize 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theFace Referenced plane.
    theTrimSize New half size of a side of quadrangle face, representing the plane.
    +
    +
    Returns:
    New GEOM_Object, containing the created plane.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMarker OX ,
    OY ,
    OZ ,
    XDX ,
    XDY ,
    XDZ ,
    YDX ,
    YDY ,
    YDZ 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    OX,OY,OZ Three coordinates of coordinate system origin.
    XDX,XDY,XDZ Three components of OX direction
    YDX,YDY,YDZ Three components of OY direction
    +
    +
    Returns:
    New GEOM_Object, containing the created coordinate system.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMarkerPntTwoVec theOrigin ,
    theXVec ,
    theYVec 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theOrigin Point of coordinate system origin.
    theXVec Vector of X direction
    theYVec Vector of Y direction
    +
    +
    Returns:
    New GEOM_Object, containing the created coordinate system.
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeArc thePnt1 ,
    thePnt2 ,
    thePnt3 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    thePnt1 Start point of the arc.
    thePnt2 Middle point of the arc.
    thePnt3 End point of the arc.
    +
    +
    Returns:
    New GEOM_Object, containing the created arc.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeCircle thePnt ,
    theVec ,
    theR 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    thePnt Circle center.
    theVec Vector, normal to the plane of the circle.
    theR Circle radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created circle.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeCircleThreePnt thePnt1 ,
    thePnt2 ,
    thePnt3 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    thePnt1,thePnt2,thePnt3 Points, defining the circle.
    +
    +
    Returns:
    New GEOM_Object, containing the created circle.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeEllipse thePnt ,
    theVec ,
    theRMajor ,
    theRMinor 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    thePnt Ellipse center.
    theVec Vector, normal to the plane of the ellipse.
    theRMajor Major ellipse radius.
    theRMinor Minor ellipse radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created ellipse.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakePolyline thePoints   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    thePoints Sequence of points for the polyline.
    +
    +
    Returns:
    New GEOM_Object, containing the created polyline.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeBezier thePoints   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    thePoints Sequence of points for the bezier curve.
    +
    +
    Returns:
    New GEOM_Object, containing the created bezier curve.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeInterpol thePoints   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    thePoints Sequence of points for the B-Spline curve.
    +
    +
    Returns:
    New GEOM_Object, containing the created B-Spline curve.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeSketcher theCommand ,
    theWorkingPlane  = [0,
    ,
    ,
    ,
    ,
    ,
    ,
    ,
    0] 
    +
    + + + + + +
    +   + + +

    +
    + Edges of the resulting wire or face will be arcs of circles and/or linear segments.
    + Format of the description string have to be the following:

    +"Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"

    +Where:

      +
    • x1, y1 are coordinates of the first sketcher point (zero by default),
    • CMD is one of
        +
      • "R angle" : Set the direction by angle
      • "D dx dy" : Set the direction by DX & DY
      +
      +
        +
      • "TT x y" : Create segment by point at X & Y
      • "T dx dy" : Create segment by point with DX & DY
      • "L length" : Create segment by direction & Length
      • "IX x" : Create segment by direction & Intersect. X
      • "IY y" : Create segment by direction & Intersect. Y
      +
      +
        +
      • "C radius length" : Create arc by direction, radius and length(in degree)
      +
      +
        +
      • "WW" : Close Wire (to finish)
      • "WF" : Close Wire and build face (to finish)
      +
    +

    +

    Parameters:
    + + + +
    theCommand String, defining the sketcher in local coordinates of the working plane.
    theWorkingPlane Nine double values, defining origin, OZ and OX directions of the working plane.
    +
    +
    Returns:
    New GEOM_Object, containing the created wire.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeSketcherOnPlane theCommand ,
    theWorkingPlane 
    +
    + + + + + +
    +   + + +

    +
    + For format of the description string see the previous method.
    +

    Parameters:
    + + + +
    theCommand String, defining the sketcher in local coordinates of the working plane.
    theWorkingPlane Planar Face of the working plane.
    +
    +
    Returns:
    New GEOM_Object, containing the created wire.
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeBox x1 ,
    y1 ,
    z1 ,
    x2 ,
    y2 ,
    z2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeBoxDXDYDZ theDX ,
    theDY ,
    theDZ 
    +
    + + + + + +
    +   + + +

    +Center of the box will be at point (DX/2, DY/2, DZ/2).

    Parameters:
    + + + + +
    theDX Length of Box edges, parallel to OX axis.
    theDY Length of Box edges, parallel to OY axis.
    theDZ Length of Box edges, parallel to OZ axis.
    +
    +
    Returns:
    New GEOM_Object, containing the created box.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeBoxTwoPnt thePnt1 ,
    thePnt2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt1 First of two opposite vertices.
    thePnt2 Second of two opposite vertices.
    +
    +
    Returns:
    New GEOM_Object, containing the created box.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeCylinder thePnt ,
    theAxis ,
    theR ,
    theH 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    thePnt Central point of cylinder base.
    theAxis Cylinder axis.
    theR Cylinder radius.
    theH Cylinder height.
    +
    +
    Returns:
    New GEOM_Object, containing the created cylinder.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeCylinderRH theR ,
    theH 
    +
    + + + + + +
    +   + + +

    +Axis of the cylinder will be collinear to the OZ axis of the coordinate system.

    Parameters:
    + + + +
    theR Cylinder radius.
    theH Cylinder height.
    +
    +
    Returns:
    New GEOM_Object, containing the created cylinder.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeSpherePntR thePnt ,
    theR 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt Sphere center.
    theR Sphere radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created sphere.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeSphere ,
    ,
    ,
    theR 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    x,y,z Coordinates of sphere center.
    theR Sphere radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created sphere.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeSphereR theR   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theR Sphere radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created sphere.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeCone thePnt ,
    theAxis ,
    theR1 ,
    theR2 ,
    theH 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    thePnt Central point of the first cone base.
    theAxis Cone axis.
    theR1 Radius of the first cone base.
    theR2 Radius of the second cone base.
    +
    +
    Note:
    If both radiuses are non-zero, the cone will be truncated.

    +If the radiuses are equal, a cylinder will be created instead.

    +
    Parameters:
    + + +
    theH Cone height.
    +
    +
    Returns:
    New GEOM_Object, containing the created cone.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeConeR1R2H theR1 ,
    theR2 ,
    theH 
    +
    + + + + + +
    +   + + +

    +Axis of the cone will be collinear to the OZ axis of the coordinate system.

    Parameters:
    + + + +
    theR1 Radius of the first cone base.
    theR2 Radius of the second cone base.
    +
    +
    Note:
    If both radiuses are non-zero, the cone will be truncated.

    +If the radiuses are equal, a cylinder will be created instead.

    +
    Parameters:
    + + +
    theH Cone height.
    +
    +
    Returns:
    New GEOM_Object, containing the created cone.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeTorus thePnt ,
    theVec ,
    theRMajor ,
    theRMinor 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    thePnt Torus central point.
    theVec Torus axis of symmetry.
    theRMajor Torus major radius.
    theRMinor Torus minor radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created torus.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeTorusRR theRMajor ,
    theRMinor 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theRMajor Torus major radius.
    theRMinor Torus minor radius.
    +
    +
    Returns:
    New GEOM_Object, containing the created torus.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePrism theBase ,
    thePoint1 ,
    thePoint2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theBase Base shape to be extruded.
    thePoint1 First end of extrusion vector.
    thePoint2 Second end of extrusion vector.
    +
    +
    Returns:
    New GEOM_Object, containing the created prism.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePrismVecH theBase ,
    theVec ,
    theH 
    +
    + + + + + +
    +   + + +

    +all the space, transfixed by the base shape during its translation along the vector on the given distance.

    Parameters:
    + + + + +
    theBase Base shape to be extruded.
    theVec Direction of extrusion.
    theH Prism dimension along theVec.
    +
    +
    Returns:
    New GEOM_Object, containing the created prism.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakePipe theBase ,
    thePath 
    +
    + + + + + +
    +   + + +

    +The path shape can be a wire or an edge.

    Parameters:
    + + + +
    theBase Base shape to be extruded.
    thePath Path shape to extrude the base shape along it.
    +
    +
    Returns:
    New GEOM_Object, containing the created pipe.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeRevolution theBase ,
    theAxis ,
    theAngle 
    +
    + + + + + +
    +   + + +

    +all the space, transfixed by the base shape during its rotation around the axis on the given angle.

    Parameters:
    + + + + +
    theBase Base shape to be rotated.
    theAxis Rotation axis.
    theAngle Rotation angle in radians.
    +
    +
    Returns:
    New GEOM_Object, containing the created revolution.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeEdge thePnt1 ,
    thePnt2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    thePnt1 Point for the first end of edge.
    thePnt2 Point for the second end of edge.
    +
    +
    Returns:
    New GEOM_Object, containing the created edge.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeWire theEdgesAndWires   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theEdgesAndWires List of edges and/or wires.
    +
    +
    Returns:
    New GEOM_Object, containing the created wire.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeFace theWire ,
    isPlanarWanted 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theWire Wire to build the face on.
    isPlanarWanted If TRUE, only planar face will be built. If impossible, NULL object will be returned.
    +
    +
    Returns:
    New GEOM_Object, containing the created face.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeFaceWires theWires ,
    isPlanarWanted 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theWires List of wires to build the face on.
    isPlanarWanted If TRUE, only planar face will be built. If impossible, NULL object will be returned.
    +
    +
    Returns:
    New GEOM_Object, containing the created face.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeFaces theWires ,
    isPlanarWanted 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + +
    MakeShell theFacesAndShells   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theFacesAndShells List of faces and/or shells.
    +
    +
    Returns:
    New GEOM_Object, containing the created shell.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeSolid theShells   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShells Sequence of bounding shells.
    +
    +
    Returns:
    New GEOM_Object, containing the created solid.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    MakeCompound theShapes   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShapes List of shapes to put in compound.
    +
    +
    Returns:
    New GEOM_Object, containing the created compound.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    NumberOfFaces theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to count faces of.
    +
    +
    Returns:
    Quantity of faces.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    NumberOfEdges theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to count edges of.
    +
    +
    Returns:
    Quantity of edges.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    ChangeOrientation theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to be reversed.
    +
    +
    Returns:
    The reversed copy of theShape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    OrientationChange theShape   ) 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + +
    GetFreeFacesIDs theShape   ) 
    +
    + + + + + +
    +   + + +

    +Free face is a face, which is not shared between two shells of the shape.

    Parameters:
    + + +
    theShape Shape to find free faces in.
    +
    +
    Returns:
    List of IDs of all free faces, contained in theShape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GetSharedShapes theShape1 ,
    theShape2 ,
    theShapeType 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theShape1 Shape to find sub-shapes in.
    theShape2 Shape to find shared sub-shapes with.
    theShapeType Type of sub-shapes to be retrieved.
    +
    +
    Returns:
    List of sub-shapes of theShape1, shared with theShape2.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnPlane theShape ,
    theShapeType ,
    theAx1 ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved.
    theAx1 Vector (or line, or linear edge), specifying normal direction and location of the plane to find shapes on.
    theState The state of the subshapes to find. It can be one of ST_ON, ST_OUT, ST_ONOUT, ST_IN, ST_ONIN.
    +
    +
    Returns:
    List of all found sub-shapes.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnPlaneIDs theShape ,
    theShapeType ,
    theAx1 ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnCylinder theShape ,
    theShapeType ,
    theAxis ,
    theRadius ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + +
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved.
    theAxis Vector (or line, or linear edge), specifying axis of the cylinder to find shapes on.
    theRadius Radius of the cylinder to find shapes on.
    theState The state of the subshapes to find. It can be one of ST_ON, ST_OUT, ST_ONOUT, ST_IN, ST_ONIN.
    +
    +
    Returns:
    List of all found sub-shapes.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnCylinderIDs theShape ,
    theShapeType ,
    theAxis ,
    theRadius ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnSphere theShape ,
    theShapeType ,
    theCenter ,
    theRadius ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + +
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved.
    theCenter Point, specifying center of the sphere to find shapes on.
    theRadius Radius of the sphere to find shapes on.
    theState The state of the subshapes to find. It can be one of ST_ON, ST_OUT, ST_ONOUT, ST_IN, ST_ONIN.
    +
    +
    Returns:
    List of all found sub-shapes.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnSphereIDs theShape ,
    theShapeType ,
    theCenter ,
    theRadius ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnQuadrangle theShape ,
    theShapeType ,
    theTopLeftPoint ,
    theTopRigthPoint ,
    theBottomLeftPoint ,
    theBottomRigthPoint ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + +
    theShape Shape to find sub-shapes of.
    theShapeType Type of sub-shapes to be retrieved.
    theCenter Point, specifying center of the sphere to find shapes on.
    theRadius Radius of the sphere to find shapes on.
    theState The state of the subshapes to find. It can be one of ST_ON, ST_OUT, ST_ONOUT, ST_IN, ST_ONIN.
    +
    +
    Returns:
    List of all found sub-shapes.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetShapesOnQuadrangleIDs theShape ,
    theShapeType ,
    theTopLeftPoint ,
    theTopRigthPoint ,
    theBottomLeftPoint ,
    theBottomRigthPoint ,
    theState 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetInPlace theShapeWhere ,
    theShapeWhat 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShapeWhere Shape to find sub-shapes of.
    theShapeWhat Shape, specifying what to find.
    +
    +
    Returns:
    Group of all found sub-shapes or a single found sub-shape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetSubShape aShape ,
    ListOfID 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetSubShapeID aShape ,
    aSubShape 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SubShapeAll aShape ,
    aType 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Shape to be exploded.
    theShapeType Type of sub-shapes to be retrieved.
    +
    +
    Returns:
    List of sub-shapes of type theShapeType, contained in theShape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SubShapeAllIDs aShape ,
    aType 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Shape to be exploded.
    theShapeType Type of sub-shapes to be retrieved.
    +
    +
    Returns:
    List of IDs of sub-shapes.
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SubShapeAllSorted aShape ,
    aType 
    +
    + + + + + +
    +   + + +

    +Sub-shapes will be sorted by coordinates of their gravity centers.

    Parameters:
    + + + +
    theShape Shape to be exploded.
    theShapeType Type of sub-shapes to be retrieved.
    +
    +
    Returns:
    List of sub-shapes of type theShapeType, contained in theShape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SubShapeAllSortedIDs aShape ,
    aType 
    +
    + + + + + +
    +   + + +

    +Sub-shapes will be sorted by coordinates of their gravity centers.

    Parameters:
    + + + +
    theShape Shape to be exploded.
    theShapeType Type of sub-shapes to be retrieved.
    +
    +
    Returns:
    List of IDs of sub-shapes.
    +
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    SubShape aShape ,
    aType ,
    ListOfInd 
    +
    + + + + + +
    +   + + +

    +Each index is in range [1, Nb_Sub-Shapes_Of_Given_Type]

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    SubShapeSorted aShape ,
    aType ,
    ListOfInd 
    +
    + + + + + +
    +   + + +

    +Each index is in range [1, Nb_Sub-Shapes_Of_Given_Type]

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    ProcessShape theShape ,
    theOperators ,
    theParameters ,
    theValues 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theShape Shape to be processed.
    theOperators List of names of operators ("FixShape", "SplitClosedFaces", etc.).
    theParameters List of names of parameters ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.).
    theValues List of values of parameters, in the same order as parameters are listed in theParameters list.
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SuppressFaces theObject ,
    theFaces 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject Shape to be processed.
    theFaces Indices of faces to be removed, if EMPTY then the method removes ALL faces of the given object.
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeSewing ListShape ,
    theTolerance 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestHealing.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    Sew theObject ,
    theTolerance 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject Shape to be processed.
    theTolerance Required tolerance value.
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see MakeSewing() above
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SuppressInternalWires theObject ,
    theWires 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject Shape to be processed.
    theWires Indices of wires to be removed, if EMPTY then the method removes ALL internal wires of the given object.
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    SuppressHoles theObject ,
    theWires 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject Shape to be processed.
    theWires Indices of wires to be removed, if EMPTY then the method removes ALL internal holes of the given object
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    CloseContour theObject ,
    theWires ,
    isCommonVertex 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theObject Shape to be processed.
    theWires Indexes of edge(s) and wire(s) to be closed within theObject's shape, if -1, then theObject itself is a wire.
    isCommonVertex If TRUE : closure by creation of a common vertex, If FALS : closure by creation of an edge between ends.
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    DivideEdge theObject ,
    theEdgeIndex ,
    theValue ,
    isByParameter 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theObject Shape to be processed.
    theEdgeIndex Index of edge to be divided within theObject's shape, if -1, then theObject itself is the edge.
    theValue Value of parameter on edge or length parameter, depending on isByParameter.
    isByParameter If TRUE : theValue is treated as a curve parameter [0..1], if FALSE : theValue is treated as a length parameter [0..1]
    +
    +
    Returns:
    New GEOM_Object, containing processed shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + +
    GetFreeBoundary theObject   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theObject Shape to get free boundary of.
    +
    +
    Returns:
    [status, theClosedWires, theOpenWires] status: FALSE, if an error(s) occured during the method execution. theClosedWires: Closed wires on the free boundary of the given shape. theOpenWires: Open wires on the free boundary of the given shape.
    +Example: see GEOM_TestHealing.py
    +

    + + + + +
    + + + + + + + + + +
    MakeCopy theOriginal   ) 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeFilling theShape ,
    theMinDeg ,
    theMaxDeg ,
    theTol2D ,
    theTol3D ,
    theNbIter 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + + +
    theShape the compound of contours
    theMinDeg a minimal degree
    theMaxDeg a maximal degree
    theTol2D a 2d tolerance
    theTol3D a 3d tolerance
    theNbIter a number of iteration
    +
    +
    Returns:
    New GEOM_Object, containing the created filling surface.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeGlueFaces theShape ,
    theTolerance 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Initial shape.
    theTolerance Maximum distance between faces, which can be considered as coincident.
    +
    +
    Returns:
    New GEOM_Object, containing a copy of theShape without coincident faces.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeBoolean theShape1 ,
    theShape2 ,
    theOperation 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theShape1 First argument for boolean operation.
    theShape2 Second argument for boolean operation.
    theOperation Indicates the operation to be done: 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
    +
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeCommon s1 ,
    s2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeCut s1 ,
    s2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeFuse s1 ,
    s2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeSection s1 ,
    s2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePartition ListShapes ,
    ListTools  = [],
    ListKeepInside  = [],
    ListRemoveInside  = [],
    Limit  = ShapeType["SHAPE"],
    RemoveWebs  = 0,
    ListMaterials  = []
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + + + +
    ListShapes Shapes to be intersected.
    ListTools Shapes to intersect theShapes.
    ListKeepInside Shapes, outside which the results will be deleted. Each shape from theKeepInside must belong to theShapes also.
    ListRemoveInside Shapes, inside which the results will be deleted. Each shape from theRemoveInside must belong to theShapes also.
    Limit Type of resulting shapes (corresponding to TopAbs_ShapeEnum).
    RemoveWebs If TRUE, perform Glue 3D algorithm.
    ListMaterials Material indices for each shape. Make sence, only if theRemoveWebs is TRUE.
    +
    +
    Returns:
    New GEOM_Object, containing the result shapes.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Partition ListShapes ,
    ListTools  = [],
    ListKeepInside  = [],
    ListRemoveInside  = [],
    Limit  = ShapeType["SHAPE"],
    RemoveWebs  = 0,
    ListMaterials  = []
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeHalfPartition theShape ,
    thePlane 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Shape to be intersected.
    thePlane Tool shape, to intersect theShape.
    +
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeTranslationTwoPoints theObject ,
    thePoint1 ,
    thePoint2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theObject The object to be translated.
    thePoint1 Start point of translation vector.
    thePoint2 End point of translation vector.
    +
    +
    Returns:
    New GEOM_Object, containing the translated object.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeTranslation theObject ,
    theDX ,
    theDY ,
    theDZ 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The object to be translated.
    theDX,theDY,theDZ Components of translation vector.
    +
    +
    Returns:
    New GEOM_Object, containing the translated object.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeTranslationVector theObject ,
    theVector 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The object to be translated.
    theVector The translation vector.
    +
    +
    Returns:
    New GEOM_Object, containing the translated object.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeRotation theObject ,
    theAxis ,
    theAngle 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theObject The object to be rotated.
    theAxis Rotation axis.
    theAngle Rotation angle in radians.
    +
    +
    Returns:
    New GEOM_Object, containing the rotated object.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeScaleTransform theObject ,
    thePoint ,
    theFactor 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theObject The object to be scaled.
    thePoint Center point for scaling.
    theFactor Scaling factor value.
    +
    +
    Returns:
    New GEOM_Object, containing the scaled shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeMirrorByPlane theObject ,
    thePlane 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The object to be mirrored.
    thePlane Plane of symmetry.
    +
    +
    Returns:
    New GEOM_Object, containing the mirrored shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeMirrorByAxis theObject ,
    theAxis 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The object to be mirrored.
    theAxis Axis of symmetry.
    +
    +
    Returns:
    New GEOM_Object, containing the mirrored shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeMirrorByPoint theObject ,
    thePoint 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The object to be mirrored.
    thePoint Point of symmetry.
    +
    +
    Returns:
    New GEOM_Object, containing the mirrored shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakePosition theObject ,
    theStartLCS ,
    theEndLCS 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestAll.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeOffset theObject ,
    theOffset 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theObject The base object for the offset.
    theOffset Offset value.
    +
    +
    Returns:
    New GEOM_Object, containing the offset object.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiTranslation1D theObject ,
    theVector ,
    theStep ,
    theNbTimes 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theObject The object to be translated.
    theVector Direction of the translation.
    theStep Distance to translate on.
    theNbTimes Quantity of translations to be done.
    +
    +
    Returns:
    New GEOM_Object, containing compound of all the shapes, obtained after each translation.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiTranslation2D theObject ,
    theVector1 ,
    theStep1 ,
    theNbTimes1 ,
    theVector2 ,
    theStep2 ,
    theNbTimes2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + + + + +
    theObject The object to be translated.
    theVector1 Direction of the first translation.
    theStep1 Step of the first translation.
    theNbTimes1 Quantity of translations to be done along theVector1.
    theVector2 Direction of the second translation.
    theStep2 Step of the second translation.
    theNbTimes2 Quantity of translations to be done along theVector2.
    +
    +
    Returns:
    New GEOM_Object, containing compound of all the shapes, obtained after each translation.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MultiRotate1D theObject ,
    theAxis ,
    theNbTimes 
    +
    + + + + + +
    +   + + +

    +Rotation angle will be 2*PI/theNbTimes.

    Parameters:
    + + + + +
    theObject The object to be rotated.
    theAxis The rotation axis.
    theNbTimes Quantity of rotations to be done.
    +
    +
    Returns:
    New GEOM_Object, containing compound of all the shapes, obtained after each rotation.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MultiRotate2D theObject ,
    theAxis ,
    theAngle ,
    theNbTimes1 ,
    theStep ,
    theNbTimes2 
    +
    + + + + + +
    +   + + +

    +Translation direction passes through center of gravity of rotated shape and its projection on the rotation axis.

    Parameters:
    + + + + + + + +
    theObject The object to be rotated.
    theAxis Rotation axis.
    theAngle Rotation angle in graduces.
    theNbTimes1 Quantity of rotations to be done.
    theStep Translation distance.
    theNbTimes2 Quantity of translations to be done.
    +
    +
    Returns:
    New GEOM_Object, containing compound of all the shapes, obtained after each transformation.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiRotation1D aShape ,
    aDir ,
    aPoint ,
    aNbTimes 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiRotation2D aShape ,
    aDir ,
    aPoint ,
    anAngle ,
    nbtimes1 ,
    aStep ,
    nbtimes2 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeFilletAll theShape ,
    theR 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Shape, to perform fillet on.
    theR Fillet radius.
    +
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeFillet theShape ,
    theR ,
    theShapeType ,
    theListShapes 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theShape Shape, to perform fillet on.
    theR Fillet radius.
    theShapeType Type of shapes in <thelistshapes>.
    theListShapes Global indices of edges/faces to perform fillet on.
    +
    +
    Note:
    Global index of sub-shape can be obtained, using method geompy.GetSubShapeID().
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeChamferAll theShape ,
    theD 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Shape, to perform chamfer on.
    theD Chamfer size along each face.
    +
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeChamferEdge theShape ,
    theD1 ,
    theD2 ,
    theFace1 ,
    theFace2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theShape Shape, to perform chamfer on.
    theD1 Chamfer size along theFace1.
    theD2 Chamfer size along theFace2.
    theFace1,theFace2 Global indices of two faces of theShape.
    +
    +
    Note:
    Global index of sub-shape can be obtained, using method geompy.GetSubShapeID().
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeChamferFaces theShape ,
    theD1 ,
    theD2 ,
    theFaces 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    theShape Shape, to perform chamfer on.
    theD1 Chamfer size along face from theFaces. If both faces, connected to the edge, are in theFaces, theD1 will be get along face, which is nearer to theFaces beginning.
    theD2 Chamfer size along another of two faces, connected to the edge.
    theFaces Sequence of global indices of faces of theShape.
    +
    +
    Note:
    Global index of sub-shape can be obtained, using method geompy.GetSubShapeID().
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeChamfer aShape ,
    d1 ,
    d2 ,
    aShapeType ,
    ListShape 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    Archimede theShape ,
    theWeight ,
    theWaterDensity ,
    theMeshDeflection 
    +
    + + + + + +
    +   + + +

    +The object presenting the resulting face is returned

    Parameters:
    + + + + + +
    theShape Shape to be put in water.
    theWeight Weight og the shape.
    theWaterDensity Density of the water.
    theMeshDeflection Deflection of the mesh, using to compute the section.
    +
    +
    Returns:
    New GEOM_Object, containing a section of theShape by a plane, corresponding to water level.
    +Example: see GEOM_TestAll.py
    +

    + + + + +
    + + + + + + + + + +
    PointCoordinates Point   ) 
    +
    + + + + + +
    +   + + +

    +

    Returns:
    [x, y, z]
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    BasicProperties theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to define properties of.
    +
    +
    Returns:
    [theLength, theSurfArea, theVolume] theLength: Summarized length of all wires of the given shape. theSurfArea: Area of surface of the given shape. theVolume: Volume of the given shape.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    BoundingBox theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to obtain bounding box of.
    +
    +
    Returns:
    [Xmin,Xmax, Ymin,Ymax, Zmin,Zmax] Xmin,Xmax: Limits of shape along OX axis. Ymin,Ymax: Limits of shape along OY axis. Zmin,Zmax: Limits of shape along OZ axis.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    Inertia theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to calculate inertia of.
    +
    +
    Returns:
    [I11,I12,I13, I21,I22,I23, I31,I32,I33, Ix,Iy,Iz] I(1-3)(1-3): Components of the inertia matrix of the given shape. Ix,Iy,Iz: Moments of inertia of the given shape.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MinDistance theShape1 ,
    theShape2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape1,theShape2 Shapes to find minimal distance between.
    +
    +
    Returns:
    Value of the minimal distance between the given shapes.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    Tolerance theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape, to get tolerances of.
    +
    +
    Returns:
    [FaceMin,FaceMax, EdgeMin,EdgeMax, VertMin,VertMax] FaceMin,FaceMax: Min and max tolerances of the faces. EdgeMin,EdgeMax: Min and max tolerances of the edges. VertMin,VertMax: Min and max tolerances of the vertices.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    WhatIs theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to be described.
    +
    +
    Returns:
    Description of the given shape.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    MakeCDG theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to define centre of mass of.
    +
    +
    Returns:
    New GEOM_Object, containing the created point.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + +
    CheckShape theShape   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theShape Shape to check validity of.
    +
    +
    Returns:
    TRUE, if the shape "seems to be valid" from the topological point of view. If theShape is invalid, prints a description of problem.
    +Example: see GEOM_TestMeasures.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    Import theFileName ,
    theFormatName 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theFileName The file, containing the shape.
    theFormatName Specify format for the file reading. Available formats can be obtained with InsertOp.ImportTranslators() method.
    +
    +
    Returns:
    New GEOM_Object, containing the imported shape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    ImportBREP theFileName   ) 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + +
    ImportIGES theFileName   ) 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + +
    ImportSTEP theFileName   ) 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    Export theObject ,
    theFileName ,
    theFormatName 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theObject Shape to be stored in the file.
    theFileName Name of the file to store the given shape in.
    theFormatName Specify format for the shape storage. Available formats can be obtained with InsertOp.ImportTranslators() method.
    +
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    ExportBREP theObject ,
    theFileName 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    ExportIGES theObject ,
    theFileName 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    ExportSTEP theObject ,
    theFileName 
    +
    + + + + + +
    +   + + +

    +Example: see GEOM_TestOthers.py

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeQuad E1 ,
    E2 ,
    E3 ,
    E4 
    +
    + + + + + +
    +   + + +

    +Order of Edges is not important. It is not necessary that edges share the same vertex.

    Parameters:
    + + +
    E1,E2,E3,E4 Edges for the face bound.
    +
    +
    Returns:
    New GEOM_Object, containing the created face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeQuad2Edges E1 ,
    E2 
    +
    + + + + + +
    +   + + +

    +The missing edges will be built by creating the shortest ones.

    Parameters:
    + + +
    E1,E2 Two opposite edges for the face.
    +
    +
    Returns:
    New GEOM_Object, containing the created face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeQuad4Vertices V1 ,
    V2 ,
    V3 ,
    V4 
    +
    + + + + + +
    +   + + +

    +The missing edges will be built by creating the shortest ones.

    Parameters:
    + + +
    V1,V2,V3,V4 Corner vertices for the face.
    +
    +
    Returns:
    New GEOM_Object, containing the created face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeHexa F1 ,
    F2 ,
    F3 ,
    F4 ,
    F5 ,
    F6 
    +
    + + + + + +
    +   + + +

    +Order of faces is not important. It is not necessary that Faces share the same edge.

    Parameters:
    + + +
    F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid.
    +
    +
    Returns:
    New GEOM_Object, containing the created solid.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    MakeHexa2Faces F1 ,
    F2 
    +
    + + + + + +
    +   + + +

    +The missing faces will be built by creating the smallest ones.

    Parameters:
    + + +
    F1,F2 Two opposite faces for the hexahedral solid.
    +
    +
    Returns:
    New GEOM_Object, containing the created solid.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetPoint theShape ,
    theX ,
    theY ,
    theZ ,
    theEpsilon 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theShape Block or a compound of blocks.
    theX,theY,theZ Coordinates of the sought vertex.
    theEpsilon Maximum allowed distance between the resulting vertex and point with the given coordinates.
    +
    +
    Returns:
    New GEOM_Object, containing the found vertex.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GetEdge theShape ,
    thePoint1 ,
    thePoint2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    thePoint1,thePoint2 Points, close to the ends of the desired edge.
    +
    +
    Returns:
    New GEOM_Object, containing the found edge.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetEdgeNearPoint theShape ,
    thePoint 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    thePoint Point, close to the desired edge.
    +
    +
    Returns:
    New GEOM_Object, containing the found edge.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetFaceByPoints theShape ,
    thePoint1 ,
    thePoint2 ,
    thePoint3 ,
    thePoint4 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    thePoint1-thePoint4 Points, close to the corners of the desired face.
    +
    +
    Returns:
    New GEOM_Object, containing the found face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    GetFaceByEdges theShape ,
    theEdge1 ,
    theEdge2 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    theEdge1,theEdge2 Edges, close to the edges of the desired face.
    +
    +
    Returns:
    New GEOM_Object, containing the found face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetOppositeFace theBlock ,
    theFace 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theBlock Must be a hexahedral solid.
    theFace Face of theBlock, opposite to the desired face.
    +
    +
    Returns:
    New GEOM_Object, containing the found face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetFaceNearPoint theShape ,
    thePoint 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    thePoint Point, close to the desired face.
    +
    +
    Returns:
    New GEOM_Object, containing the found face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetFaceByNormale theBlock ,
    theVector 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theShape Block or a compound of blocks.
    theVector Vector, close to the normale of the desired face.
    +
    +
    Returns:
    New GEOM_Object, containing the found face.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + +
    CheckCompoundOfBlocks theCompound   ) 
    +
    + + + + + +
    +   + + +

    +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 connexe.
    • The glue between two quadrangle faces should be applied.
      Parameters:
      + + +
      theCompound The compound to check.
      +
      +
      Returns:
      TRUE, if the given shape is a compound of blocks. If theCompound is not valid, prints all discovered errors.
      +Example: see GEOM_Spanner.py
    +
    +

    + + + + +
    + + + + + + + + + +
    RemoveExtraEdges theShape   ) 
    +
    + + + + + +
    +   + + +

    +Unite faces and edges, sharing one surface.

    Parameters:
    + + +
    theShape The compound or single solid to remove irregular edges from.
    +
    +
    Returns:
    Improved shape.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    CheckAndImprove theShape   ) 
    +
    + + + + + +
    +   + + +

    +Fix all detected errors.

    Note:
    Single block can be also fixed by this method.
    +
    Parameters:
    + + +
    theCompound The compound to check and improve.
    +
    +
    Returns:
    Improved compound.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeBlockExplode theCompound ,
    theMinNbFaces ,
    theMaxNbFaces 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + +
    theCompound The compound to explode.
    theMinNbFaces If solid has lower number of faces, it is not a block.
    theMaxNbFaces If solid has higher number of faces, it is not a block.
    +
    +
    Note:
    If theMaxNbFaces = 0, the maximum number of faces is not restricted.
    +
    Returns:
    List of GEOM_Objects, containing the retrieved blocks.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetBlockNearPoint theCompound ,
    thePoint 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theCompound Compound, to find block in.
    thePoint Point, close to the desired block. If the point lays on boundary between some blocks, we return block with nearest center.
    +
    +
    Returns:
    New GEOM_Object, containing the found block.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetBlockByParts theCompound ,
    theParts 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theCompound Compound, to find block in.
    theParts List of faces and/or edges and/or vertices to be parts of the found block.
    +
    +
    Returns:
    New GEOM_Object, containing the found block.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    GetBlocksByParts theCompound ,
    theParts 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theCompound Compound, to find blocks in.
    theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
    +
    +
    Returns:
    List of GEOM_Objects, containing the found blocks.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiTransformation1D Block ,
    DirFace1 ,
    DirFace2 ,
    NbTimes 
    +
    + + + + + +
    +   + + +

    +Transformation is defined so, as to superpose direction faces.

    Parameters:
    + + + + + +
    Block Hexahedral solid to be multi-transformed.
    DirFace1 ID of First direction face.
    DirFace2 ID of Second direction face.
    NbTimes Quantity of transformations to be done.
    +
    +
    Note:
    Unique ID of sub-shape can be obtained, using method GetSubShapeID().
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    MakeMultiTransformation2D Block ,
    DirFace1U ,
    DirFace2U ,
    NbTimesU ,
    DirFace1V ,
    DirFace2V ,
    NbTimesV 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + + + +
    Block Hexahedral solid to be multi-transformed.
    DirFace1U,DirFace2U IDs of Direction faces for the first transformation.
    DirFace1V,DirFace2V IDs of Direction faces for the second transformation.
    NbTimesU,NbTimesV Quantity of transformations to be done.
    +
    +
    Returns:
    New GEOM_Object, containing the result shape.
    +Example: see GEOM_Spanner.py
    +

    + + + + +
    + + + + + + + + + +
    Propagate theShape   ) 
    +
    + + + + + +
    +   + + +

    +Propagation group is a set of all edges, opposite to one (main) edge of this group directly or through other opposite edges. Notion of Opposite Edge make sence only on quadrangle face.

    Parameters:
    + + +
    theShape Shape to build propagation groups on.
    +
    +
    Returns:
    List of GEOM_Objects, each of them is a propagation group.
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    CreateGroup theMainShape ,
    theShapeType 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theMainShape is a GEOM object on which the group is selected
    theShapeType defines a shape type of the group
    +
    +
    Returns:
    a newly created GEOM group
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    AddObject theGroup ,
    theSubShapeID 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theGroup is a GEOM group to which the new sub shape is added
    theSubShapeID is a sub shape ID in the main object.
    +
    +
    Note:
    Use method GetSubShapeID() to get an unique ID of the sub shape
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    RemoveObject theGroup ,
    theSubShapeID 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + + +
    theGroup is a GEOM group from which the new sub shape is removed
    theSubShapeID is a sub shape ID in the main object.
    +
    +
    Note:
    Use method GetSubShapeID() to get an unique ID of the sub shape
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    UnionList theGroup ,
    theSubShapes 
    +
    + + + + + +
    +   + + +

    +No errors, if some shapes are alredy included.

    Parameters:
    + + + +
    theGroup is a GEOM group to which the new sub shapes are added.
    theSubShapes is a list of sub shapes to be added.
    +
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    UnionIDs theGroup ,
    theSubShapes 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    DifferenceList theGroup ,
    theSubShapes 
    +
    + + + + + +
    +   + + +

    +No errors, if some shapes are not included.

    Parameters:
    + + + +
    theGroup is a GEOM group from which the sub-shapes are removed.
    theSubShapes is a list of sub-shapes to be removed.
    +
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + +
    DifferenceIDs theGroup ,
    theSubShapes 
    +
    + + + + + +
    +   + + +

    +

    +

    + + + + +
    + + + + + + + + + +
    GetObjectIDs theGroup   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theGroup is a GEOM group for which a list of IDs is requested
    +
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    GetType theGroup   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theGroup is a GEOM group which type is returned.
    +
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + +
    GetMainShape theGroup   ) 
    +
    + + + + + +
    +   + + +

    +

    Parameters:
    + + +
    theGroup is a GEOM group for which a main shape object is requested
    +
    +
    Returns:
    a GEOM object which is a main shape for theGroup
    +Example: see GEOM_TestOthers.py
    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    GetEdgesByLength theShape ,
    min_length ,
    max_length ,
    include_min  = 1,
    include_max  = 1
    +
    + + + + + +
    +   + + +

    +If include_min/max == 0, edges with length == min/max_length will not be included in result.

    +

    + + + + +
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    SelectEdges min_length ,
    max_length ,
    include_min  = 1,
    include_max  = 1
    +
    + + + + + +
    +   + + +

    +If include_min/max == 0, edges with length == min/max_length will not be included in result.

    +

    + + + + +
    + + + + + + + + + +
    addPath Path   ) 
    +
    + + + + + +
    +   + + +

    +

    +


    Generated on Tue Oct 18 00:47:37 2005 for SALOME - GEOM - v.2.1.0 by + +doxygen 1.3.7
    + + diff --git a/doc/salome/GEOM/glue_faces.htm b/doc/salome/GEOM/glue_faces.htm new file mode 100755 index 000000000..d6a6ef4fd --- /dev/null +++ b/doc/salome/GEOM/glue_faces.htm @@ -0,0 +1,158 @@ + + + + + +Glue Faces + + + + + + + + + + + + +

    Glue Faces

    + +

    To + Glue Faces in the Main Menu select Repair - > Glue Faces.

    + +

     

    + +

    This operation + glues faces that are coincident with respect to the given tolerance + value.

    + +

     

    + +

    Result: + GEOM_Object.

    + +

    TUI Command + : geompy.MakeGlueFaces(theShape, + theTolerance), where theShape is a compound of shapesto 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/GEOM/groups.htm b/doc/salome/GEOM/groups.htm new file mode 100755 index 000000000..9fadb7869 --- /dev/null +++ b/doc/salome/GEOM/groups.htm @@ -0,0 +1,326 @@ + + + + + +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 on two points

    + +

    Box = geompy.MakeBoxTwoPnt(p0, + p200)

    + +

     

    + +

    # create group on box's faces

    + +

    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 to the group all the given shapes from the list

    + +

    # (no errors, if some shapes are already included)

    + +

    geompy.UnionList(group, + [SubFaceList[0], SubFaceList[2], SubFaceList[5]])

    + +

     

    + +

    # remove object from the group

    + +

    geompy.RemoveObject(group, + FaceID)

    + +

     

    + +

    # remove from the group all the given shapes

    + +

    # (no errors, if some shapes are not included)

    + +

    geompy.DifferenceList(group, + [SubFaceList[2], SubFaceList[3], SubFaceList[4]])

    + +

    id_group1 = geompy.addToStudy(group, + "Group1")

    + +

     

    + +

    # display group's contents

    + +

    gg.createAndDisplayGO(id_group1)

    + +

    salome.sg.updateObjBrowser(1) +

    + +

     

    + +

     

    + +

    Adding an object in 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 on two points

    + +

    Box = geompy.MakeBoxTwoPnt(p0, + p200)

    + +

     

    + +

    # create group on box's faces

    + +

    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 group's contents

    + +

    gg.createAndDisplayGO(id_group1)

    + +

    salome.sg.updateObjBrowser(1) +

    + +

     

    + +

    Removing an object from 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 on two points

    + +

    Box = geompy.MakeBoxTwoPnt(p0, + p200)

    + +

     

    + +

    # create group on box's faces

    + +

    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 to the group all the given shapes from the list

    + +

    # (no errors, if some shapes are already included)

    + +

    geompy.UnionList(group, + [SubFaceList[0], SubFaceList[2], SubFaceList[5]])

    + +

     

    + +

    # remove object from the group

    + +

    geompy.RemoveObject(group, + FaceID)

    + +

    id_group1 = geompy.addToStudy(group, + "Group1")

    + +

     

    + +

    # display group's contents

    + +

    gg.createAndDisplayGO(id_group1)

    + +

    salome.sg.updateObjBrowser(1) +

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/i_blue.jpg b/doc/salome/GEOM/i_blue.jpg new file mode 100755 index 000000000..ed3acfac2 Binary files /dev/null and b/doc/salome/GEOM/i_blue.jpg differ diff --git a/doc/salome/GEOM/image10.gif b/doc/salome/GEOM/image10.gif new file mode 100755 index 000000000..01327b7a8 Binary files /dev/null and b/doc/salome/GEOM/image10.gif differ diff --git a/doc/salome/GEOM/image10.jpg b/doc/salome/GEOM/image10.jpg new file mode 100755 index 000000000..89009bc1c Binary files /dev/null and b/doc/salome/GEOM/image10.jpg differ diff --git a/doc/salome/GEOM/image109.jpg b/doc/salome/GEOM/image109.jpg new file mode 100755 index 000000000..de4e1e134 Binary files /dev/null and b/doc/salome/GEOM/image109.jpg differ diff --git a/doc/salome/GEOM/image11.gif b/doc/salome/GEOM/image11.gif new file mode 100755 index 000000000..4a07b5e83 Binary files /dev/null and b/doc/salome/GEOM/image11.gif differ diff --git a/doc/salome/GEOM/image11.jpg b/doc/salome/GEOM/image11.jpg new file mode 100755 index 000000000..4f666fd34 Binary files /dev/null and b/doc/salome/GEOM/image11.jpg differ diff --git a/doc/salome/GEOM/image110.jpg b/doc/salome/GEOM/image110.jpg new file mode 100755 index 000000000..45f72b594 Binary files /dev/null and b/doc/salome/GEOM/image110.jpg differ diff --git a/doc/salome/GEOM/image112.jpg b/doc/salome/GEOM/image112.jpg new file mode 100755 index 000000000..33399b3e1 Binary files /dev/null and b/doc/salome/GEOM/image112.jpg differ diff --git a/doc/salome/GEOM/image113.jpg b/doc/salome/GEOM/image113.jpg new file mode 100755 index 000000000..fa01cfb36 Binary files /dev/null and b/doc/salome/GEOM/image113.jpg differ diff --git a/doc/salome/GEOM/image12.gif b/doc/salome/GEOM/image12.gif new file mode 100755 index 000000000..9e872c816 Binary files /dev/null and b/doc/salome/GEOM/image12.gif differ diff --git a/doc/salome/GEOM/image12.jpg b/doc/salome/GEOM/image12.jpg new file mode 100755 index 000000000..fac5c1274 Binary files /dev/null and b/doc/salome/GEOM/image12.jpg differ diff --git a/doc/salome/GEOM/image121.jpg b/doc/salome/GEOM/image121.jpg new file mode 100755 index 000000000..2dfe66e98 Binary files /dev/null and b/doc/salome/GEOM/image121.jpg differ diff --git a/doc/salome/GEOM/image122.jpg b/doc/salome/GEOM/image122.jpg new file mode 100755 index 000000000..847a39703 Binary files /dev/null and b/doc/salome/GEOM/image122.jpg differ diff --git a/doc/salome/GEOM/image124.jpg b/doc/salome/GEOM/image124.jpg new file mode 100755 index 000000000..2bc4bf342 Binary files /dev/null and b/doc/salome/GEOM/image124.jpg differ diff --git a/doc/salome/GEOM/image127.jpg b/doc/salome/GEOM/image127.jpg new file mode 100755 index 000000000..f0cf3d9c9 Binary files /dev/null and b/doc/salome/GEOM/image127.jpg differ diff --git a/doc/salome/GEOM/image128.jpg b/doc/salome/GEOM/image128.jpg new file mode 100755 index 000000000..c62cbf8bb Binary files /dev/null and b/doc/salome/GEOM/image128.jpg differ diff --git a/doc/salome/GEOM/image129.jpg b/doc/salome/GEOM/image129.jpg new file mode 100755 index 000000000..d8fcb94a6 Binary files /dev/null and b/doc/salome/GEOM/image129.jpg differ diff --git a/doc/salome/GEOM/image13.gif b/doc/salome/GEOM/image13.gif new file mode 100755 index 000000000..83f73a54a Binary files /dev/null and b/doc/salome/GEOM/image13.gif differ diff --git a/doc/salome/GEOM/image130.jpg b/doc/salome/GEOM/image130.jpg new file mode 100755 index 000000000..8874e8ea6 Binary files /dev/null and b/doc/salome/GEOM/image130.jpg differ diff --git a/doc/salome/GEOM/image133.jpg b/doc/salome/GEOM/image133.jpg new file mode 100755 index 000000000..0bc42a680 Binary files /dev/null and b/doc/salome/GEOM/image133.jpg differ diff --git a/doc/salome/GEOM/image14.gif b/doc/salome/GEOM/image14.gif new file mode 100755 index 000000000..a05dd647c Binary files /dev/null and b/doc/salome/GEOM/image14.gif differ diff --git a/doc/salome/GEOM/image145.jpg b/doc/salome/GEOM/image145.jpg new file mode 100755 index 000000000..a035c8d89 Binary files /dev/null and b/doc/salome/GEOM/image145.jpg differ diff --git a/doc/salome/GEOM/image147.jpg b/doc/salome/GEOM/image147.jpg new file mode 100755 index 000000000..e38c1dad2 Binary files /dev/null and b/doc/salome/GEOM/image147.jpg differ diff --git a/doc/salome/GEOM/image149.jpg b/doc/salome/GEOM/image149.jpg new file mode 100755 index 000000000..2332885cd Binary files /dev/null and b/doc/salome/GEOM/image149.jpg differ diff --git a/doc/salome/GEOM/image15.gif b/doc/salome/GEOM/image15.gif new file mode 100755 index 000000000..3dcdf001c Binary files /dev/null and b/doc/salome/GEOM/image15.gif differ diff --git a/doc/salome/GEOM/image15.jpg b/doc/salome/GEOM/image15.jpg new file mode 100755 index 000000000..50a9c9ece Binary files /dev/null and b/doc/salome/GEOM/image15.jpg differ diff --git a/doc/salome/GEOM/image150.jpg b/doc/salome/GEOM/image150.jpg new file mode 100755 index 000000000..31fceea62 Binary files /dev/null and b/doc/salome/GEOM/image150.jpg differ diff --git a/doc/salome/GEOM/image151.jpg b/doc/salome/GEOM/image151.jpg new file mode 100755 index 000000000..eda0dfcbd Binary files /dev/null and b/doc/salome/GEOM/image151.jpg differ diff --git a/doc/salome/GEOM/image154.jpg b/doc/salome/GEOM/image154.jpg new file mode 100755 index 000000000..5129007a9 Binary files /dev/null and b/doc/salome/GEOM/image154.jpg differ diff --git a/doc/salome/GEOM/image156.jpg b/doc/salome/GEOM/image156.jpg new file mode 100755 index 000000000..f2d718579 Binary files /dev/null and b/doc/salome/GEOM/image156.jpg differ diff --git a/doc/salome/GEOM/image16.gif b/doc/salome/GEOM/image16.gif new file mode 100755 index 000000000..44f8616a6 Binary files /dev/null and b/doc/salome/GEOM/image16.gif differ diff --git a/doc/salome/GEOM/image16.jpg b/doc/salome/GEOM/image16.jpg new file mode 100755 index 000000000..42f79d392 Binary files /dev/null and b/doc/salome/GEOM/image16.jpg differ diff --git a/doc/salome/GEOM/image160.jpg b/doc/salome/GEOM/image160.jpg new file mode 100755 index 000000000..a88429f79 Binary files /dev/null and b/doc/salome/GEOM/image160.jpg differ diff --git a/doc/salome/GEOM/image163.jpg b/doc/salome/GEOM/image163.jpg new file mode 100755 index 000000000..8f87e356b Binary files /dev/null and b/doc/salome/GEOM/image163.jpg differ diff --git a/doc/salome/GEOM/image164.jpg b/doc/salome/GEOM/image164.jpg new file mode 100755 index 000000000..a180e04d1 Binary files /dev/null and b/doc/salome/GEOM/image164.jpg differ diff --git a/doc/salome/GEOM/image167.jpg b/doc/salome/GEOM/image167.jpg new file mode 100755 index 000000000..775496ffc Binary files /dev/null and b/doc/salome/GEOM/image167.jpg differ diff --git a/doc/salome/GEOM/image168.jpg b/doc/salome/GEOM/image168.jpg new file mode 100755 index 000000000..f69d2b8df Binary files /dev/null and b/doc/salome/GEOM/image168.jpg differ diff --git a/doc/salome/GEOM/image17.gif b/doc/salome/GEOM/image17.gif new file mode 100755 index 000000000..4436895a4 Binary files /dev/null and b/doc/salome/GEOM/image17.gif differ diff --git a/doc/salome/GEOM/image170.jpg b/doc/salome/GEOM/image170.jpg new file mode 100755 index 000000000..4e24375fa Binary files /dev/null and b/doc/salome/GEOM/image170.jpg differ diff --git a/doc/salome/GEOM/image171.jpg b/doc/salome/GEOM/image171.jpg new file mode 100755 index 000000000..9e055888a Binary files /dev/null and b/doc/salome/GEOM/image171.jpg differ diff --git a/doc/salome/GEOM/image172.jpg b/doc/salome/GEOM/image172.jpg new file mode 100755 index 000000000..2bee4472e Binary files /dev/null and b/doc/salome/GEOM/image172.jpg differ diff --git a/doc/salome/GEOM/image18.jpg b/doc/salome/GEOM/image18.jpg new file mode 100755 index 000000000..7b7d6f4dc Binary files /dev/null and b/doc/salome/GEOM/image18.jpg differ diff --git a/doc/salome/GEOM/image180.jpg b/doc/salome/GEOM/image180.jpg new file mode 100755 index 000000000..1c57ef013 Binary files /dev/null and b/doc/salome/GEOM/image180.jpg differ diff --git a/doc/salome/GEOM/image181.jpg b/doc/salome/GEOM/image181.jpg new file mode 100755 index 000000000..d0171dfc9 Binary files /dev/null and b/doc/salome/GEOM/image181.jpg differ diff --git a/doc/salome/GEOM/image185.jpg b/doc/salome/GEOM/image185.jpg new file mode 100755 index 000000000..7fb6ef62a Binary files /dev/null and b/doc/salome/GEOM/image185.jpg differ diff --git a/doc/salome/GEOM/image188.jpg b/doc/salome/GEOM/image188.jpg new file mode 100755 index 000000000..00f58a045 Binary files /dev/null and b/doc/salome/GEOM/image188.jpg differ diff --git a/doc/salome/GEOM/image189.jpg b/doc/salome/GEOM/image189.jpg new file mode 100755 index 000000000..d02a23911 Binary files /dev/null and b/doc/salome/GEOM/image189.jpg differ diff --git a/doc/salome/GEOM/image19.gif b/doc/salome/GEOM/image19.gif new file mode 100755 index 000000000..ecd250a2b Binary files /dev/null and b/doc/salome/GEOM/image19.gif differ diff --git a/doc/salome/GEOM/image191.jpg b/doc/salome/GEOM/image191.jpg new file mode 100755 index 000000000..92144cc51 Binary files /dev/null and b/doc/salome/GEOM/image191.jpg differ diff --git a/doc/salome/GEOM/image193.jpg b/doc/salome/GEOM/image193.jpg new file mode 100755 index 000000000..dc184f5fb Binary files /dev/null and b/doc/salome/GEOM/image193.jpg differ diff --git a/doc/salome/GEOM/image197.jpg b/doc/salome/GEOM/image197.jpg new file mode 100755 index 000000000..11eb06e4a Binary files /dev/null and b/doc/salome/GEOM/image197.jpg differ diff --git a/doc/salome/GEOM/image20.gif b/doc/salome/GEOM/image20.gif new file mode 100755 index 000000000..ef92fafea Binary files /dev/null and b/doc/salome/GEOM/image20.gif differ diff --git a/doc/salome/GEOM/image201.jpg b/doc/salome/GEOM/image201.jpg new file mode 100755 index 000000000..0a6a1b4d7 Binary files /dev/null and b/doc/salome/GEOM/image201.jpg differ diff --git a/doc/salome/GEOM/image202.jpg b/doc/salome/GEOM/image202.jpg new file mode 100755 index 000000000..067426223 Binary files /dev/null and b/doc/salome/GEOM/image202.jpg differ diff --git a/doc/salome/GEOM/image204.jpg b/doc/salome/GEOM/image204.jpg new file mode 100755 index 000000000..ce23e6aa0 Binary files /dev/null and b/doc/salome/GEOM/image204.jpg differ diff --git a/doc/salome/GEOM/image206.jpg b/doc/salome/GEOM/image206.jpg new file mode 100755 index 000000000..85e9e803d Binary files /dev/null and b/doc/salome/GEOM/image206.jpg differ diff --git a/doc/salome/GEOM/image21.gif b/doc/salome/GEOM/image21.gif new file mode 100755 index 000000000..8fa295c52 Binary files /dev/null and b/doc/salome/GEOM/image21.gif differ diff --git a/doc/salome/GEOM/image22.gif b/doc/salome/GEOM/image22.gif new file mode 100755 index 000000000..00f387962 Binary files /dev/null and b/doc/salome/GEOM/image22.gif differ diff --git a/doc/salome/GEOM/image23.gif b/doc/salome/GEOM/image23.gif new file mode 100755 index 000000000..9af6909fc Binary files /dev/null and b/doc/salome/GEOM/image23.gif differ diff --git a/doc/salome/GEOM/image24.gif b/doc/salome/GEOM/image24.gif new file mode 100755 index 000000000..d53209d35 Binary files /dev/null and b/doc/salome/GEOM/image24.gif differ diff --git a/doc/salome/GEOM/image25.gif b/doc/salome/GEOM/image25.gif new file mode 100755 index 000000000..b111102aa Binary files /dev/null and b/doc/salome/GEOM/image25.gif differ diff --git a/doc/salome/GEOM/image27.gif b/doc/salome/GEOM/image27.gif new file mode 100755 index 000000000..52d87e25b Binary files /dev/null and b/doc/salome/GEOM/image27.gif differ diff --git a/doc/salome/GEOM/image27.jpg b/doc/salome/GEOM/image27.jpg new file mode 100755 index 000000000..ec850e713 Binary files /dev/null and b/doc/salome/GEOM/image27.jpg differ diff --git a/doc/salome/GEOM/image29.gif b/doc/salome/GEOM/image29.gif new file mode 100755 index 000000000..bb00746d4 Binary files /dev/null and b/doc/salome/GEOM/image29.gif differ diff --git a/doc/salome/GEOM/image3.gif b/doc/salome/GEOM/image3.gif new file mode 100755 index 000000000..a3cdf64a3 Binary files /dev/null and b/doc/salome/GEOM/image3.gif differ diff --git a/doc/salome/GEOM/image3.jpg b/doc/salome/GEOM/image3.jpg new file mode 100755 index 000000000..4aacee4ed Binary files /dev/null and b/doc/salome/GEOM/image3.jpg differ diff --git a/doc/salome/GEOM/image32.gif b/doc/salome/GEOM/image32.gif new file mode 100755 index 000000000..bbdf48a24 Binary files /dev/null and b/doc/salome/GEOM/image32.gif differ diff --git a/doc/salome/GEOM/image35.gif b/doc/salome/GEOM/image35.gif new file mode 100755 index 000000000..30f430ade Binary files /dev/null and b/doc/salome/GEOM/image35.gif differ diff --git a/doc/salome/GEOM/image37.gif b/doc/salome/GEOM/image37.gif new file mode 100755 index 000000000..8c1a2c52a Binary files /dev/null and b/doc/salome/GEOM/image37.gif differ diff --git a/doc/salome/GEOM/image4.gif b/doc/salome/GEOM/image4.gif new file mode 100755 index 000000000..7899fdbf5 Binary files /dev/null and b/doc/salome/GEOM/image4.gif differ diff --git a/doc/salome/GEOM/image41.gif b/doc/salome/GEOM/image41.gif new file mode 100755 index 000000000..6e3661f6c Binary files /dev/null and b/doc/salome/GEOM/image41.gif differ diff --git a/doc/salome/GEOM/image42.gif b/doc/salome/GEOM/image42.gif new file mode 100755 index 000000000..1e4003cca Binary files /dev/null and b/doc/salome/GEOM/image42.gif differ diff --git a/doc/salome/GEOM/image44.gif b/doc/salome/GEOM/image44.gif new file mode 100755 index 000000000..51662793b Binary files /dev/null and b/doc/salome/GEOM/image44.gif differ diff --git a/doc/salome/GEOM/image49.gif b/doc/salome/GEOM/image49.gif new file mode 100755 index 000000000..a54a22e45 Binary files /dev/null and b/doc/salome/GEOM/image49.gif differ diff --git a/doc/salome/GEOM/image5.jpg b/doc/salome/GEOM/image5.jpg new file mode 100755 index 000000000..9be34825b Binary files /dev/null and b/doc/salome/GEOM/image5.jpg differ diff --git a/doc/salome/GEOM/image51.gif b/doc/salome/GEOM/image51.gif new file mode 100755 index 000000000..d04ebd08f Binary files /dev/null and b/doc/salome/GEOM/image51.gif differ diff --git a/doc/salome/GEOM/image52.gif b/doc/salome/GEOM/image52.gif new file mode 100755 index 000000000..94537e0f4 Binary files /dev/null and b/doc/salome/GEOM/image52.gif differ diff --git a/doc/salome/GEOM/image52.jpg b/doc/salome/GEOM/image52.jpg new file mode 100755 index 000000000..06cf1911c Binary files /dev/null and b/doc/salome/GEOM/image52.jpg differ diff --git a/doc/salome/GEOM/image53.gif b/doc/salome/GEOM/image53.gif new file mode 100755 index 000000000..c976b6dab Binary files /dev/null and b/doc/salome/GEOM/image53.gif differ diff --git a/doc/salome/GEOM/image53.jpg b/doc/salome/GEOM/image53.jpg new file mode 100755 index 000000000..0de05fdeb Binary files /dev/null and b/doc/salome/GEOM/image53.jpg differ diff --git a/doc/salome/GEOM/image54.jpg b/doc/salome/GEOM/image54.jpg new file mode 100755 index 000000000..b331a4adb Binary files /dev/null and b/doc/salome/GEOM/image54.jpg differ diff --git a/doc/salome/GEOM/image56.gif b/doc/salome/GEOM/image56.gif new file mode 100755 index 000000000..049e1ebdc Binary files /dev/null and b/doc/salome/GEOM/image56.gif differ diff --git a/doc/salome/GEOM/image57.gif b/doc/salome/GEOM/image57.gif new file mode 100755 index 000000000..e0f9e3109 Binary files /dev/null and b/doc/salome/GEOM/image57.gif differ diff --git a/doc/salome/GEOM/image59.gif b/doc/salome/GEOM/image59.gif new file mode 100755 index 000000000..f470df22c Binary files /dev/null and b/doc/salome/GEOM/image59.gif differ diff --git a/doc/salome/GEOM/image6.gif b/doc/salome/GEOM/image6.gif new file mode 100755 index 000000000..ef3e4bcdb Binary files /dev/null and b/doc/salome/GEOM/image6.gif differ diff --git a/doc/salome/GEOM/image61.gif b/doc/salome/GEOM/image61.gif new file mode 100755 index 000000000..0a7efcdf1 Binary files /dev/null and b/doc/salome/GEOM/image61.gif differ diff --git a/doc/salome/GEOM/image67.jpg b/doc/salome/GEOM/image67.jpg new file mode 100755 index 000000000..658b9430d Binary files /dev/null and b/doc/salome/GEOM/image67.jpg differ diff --git a/doc/salome/GEOM/image7.gif b/doc/salome/GEOM/image7.gif new file mode 100755 index 000000000..dda1141af Binary files /dev/null and b/doc/salome/GEOM/image7.gif differ diff --git a/doc/salome/GEOM/image76.jpg b/doc/salome/GEOM/image76.jpg new file mode 100755 index 000000000..deb1aedee Binary files /dev/null and b/doc/salome/GEOM/image76.jpg differ diff --git a/doc/salome/GEOM/image78.jpg b/doc/salome/GEOM/image78.jpg new file mode 100755 index 000000000..8737d822c Binary files /dev/null and b/doc/salome/GEOM/image78.jpg differ diff --git a/doc/salome/GEOM/image79.jpg b/doc/salome/GEOM/image79.jpg new file mode 100755 index 000000000..099999d1d Binary files /dev/null and b/doc/salome/GEOM/image79.jpg differ diff --git a/doc/salome/GEOM/image8.gif b/doc/salome/GEOM/image8.gif new file mode 100755 index 000000000..67597372d Binary files /dev/null and b/doc/salome/GEOM/image8.gif differ diff --git a/doc/salome/GEOM/image8.jpg b/doc/salome/GEOM/image8.jpg new file mode 100755 index 000000000..f2c07ebd2 Binary files /dev/null and b/doc/salome/GEOM/image8.jpg differ diff --git a/doc/salome/GEOM/image80.jpg b/doc/salome/GEOM/image80.jpg new file mode 100755 index 000000000..ce81b706a Binary files /dev/null and b/doc/salome/GEOM/image80.jpg differ diff --git a/doc/salome/GEOM/image81.jpg b/doc/salome/GEOM/image81.jpg new file mode 100755 index 000000000..415dabeeb Binary files /dev/null and b/doc/salome/GEOM/image81.jpg differ diff --git a/doc/salome/GEOM/image82.jpg b/doc/salome/GEOM/image82.jpg new file mode 100755 index 000000000..96d4a04f9 Binary files /dev/null and b/doc/salome/GEOM/image82.jpg differ diff --git a/doc/salome/GEOM/image83.jpg b/doc/salome/GEOM/image83.jpg new file mode 100755 index 000000000..bafd8bea1 Binary files /dev/null and b/doc/salome/GEOM/image83.jpg differ diff --git a/doc/salome/GEOM/image84.jpg b/doc/salome/GEOM/image84.jpg new file mode 100755 index 000000000..25625c16a Binary files /dev/null and b/doc/salome/GEOM/image84.jpg differ diff --git a/doc/salome/GEOM/image85.jpg b/doc/salome/GEOM/image85.jpg new file mode 100755 index 000000000..51ceee454 Binary files /dev/null and b/doc/salome/GEOM/image85.jpg differ diff --git a/doc/salome/GEOM/image9.gif b/doc/salome/GEOM/image9.gif new file mode 100755 index 000000000..cf29eb98d Binary files /dev/null and b/doc/salome/GEOM/image9.gif differ diff --git a/doc/salome/GEOM/image9.jpg b/doc/salome/GEOM/image9.jpg new file mode 100755 index 000000000..6040b6677 Binary files /dev/null and b/doc/salome/GEOM/image9.jpg differ diff --git a/doc/salome/GEOM/image94.jpg b/doc/salome/GEOM/image94.jpg new file mode 100755 index 000000000..9ac2ee50c Binary files /dev/null and b/doc/salome/GEOM/image94.jpg differ diff --git a/doc/salome/GEOM/image95.jpg b/doc/salome/GEOM/image95.jpg new file mode 100755 index 000000000..12f6002c4 Binary files /dev/null and b/doc/salome/GEOM/image95.jpg differ diff --git a/doc/salome/GEOM/image96.jpg b/doc/salome/GEOM/image96.jpg new file mode 100755 index 000000000..53006acd8 Binary files /dev/null and b/doc/salome/GEOM/image96.jpg differ diff --git a/doc/salome/GEOM/image97.jpg b/doc/salome/GEOM/image97.jpg new file mode 100755 index 000000000..b81765b7d Binary files /dev/null and b/doc/salome/GEOM/image97.jpg differ diff --git a/doc/salome/GEOM/image98.jpg b/doc/salome/GEOM/image98.jpg new file mode 100755 index 000000000..e5abf9dcd Binary files /dev/null and b/doc/salome/GEOM/image98.jpg differ diff --git a/doc/salome/GEOM/line.htm b/doc/salome/GEOM/line.htm new file mode 100755 index 000000000..8cd5e7464 --- /dev/null +++ b/doc/salome/GEOM/line.htm @@ -0,0 +1,154 @@ + + + + + +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.MakeLine(Point1, Point2) +

    + +

    Arguments: + Name + 2 vertices.

    + +

     

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

    NB! The + 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/GEOM/local_coordinate_system.htm b/doc/salome/GEOM/local_coordinate_system.htm new file mode 100755 index 000000000..e4eaa59c8 --- /dev/null +++ b/doc/salome/GEOM/local_coordinate_system.htm @@ -0,0 +1,207 @@ + + + + + +Local Coordinate System + + + + + + + + + + + + +

    Local Coordinate + System

    + +

    To create a Local Coordinate System + in the Main Menu select New Entity - > Basic - > Local Coordinate + System

    + +

     

    + +

    You can enter the values of X, Y, and Z coordinates + of origin in the corresponding fields of the dialog box, or select a point + in the object browser or 3D viewer, in this case the coordinates of origin + are automatically filled in with the coordinates of the selected point. +

    + +

    The user then specifies components of X and + Y axes direction.

    + +

    Preview of the new LCS (small trihedron located + and oriented according to parameters of LCS) is displayed in the 3D viewer + and updated as soon as the user modifies some parameter.

    + +

    Then the user presses «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.

    + +

     

    + +

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

    + +
      + +
    • 1st + Constructor : Name + Coordinates of origin, X axis direction, Y axis + direction

    • + +
    • 2nd + Constructor : Name + reference object.

    • + +
    • 3rd + Constructor : Name + 1 point of origin + X axis direction, Y axis + direction.

    • +
    + +

     

    + +

    .

    + +

     

    + +

    Dialog Box:

    + +

     

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

    +

    +

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/measurement_tools.htm b/doc/salome/GEOM/measurement_tools.htm new file mode 100755 index 000000000..d06d968fd --- /dev/null +++ b/doc/salome/GEOM/measurement_tools.htm @@ -0,0 +1,459 @@ + + + + + +Measurement Tools + + + + + + + + + + + +

    Measurement Tools

    + +

    Point Coordinates

    + +

    import geompy

    + +

     

    + +

    # create a point

    + +

    point = geompy.MakeVertex(15, + 23, 80)

    + +

     

    + +

    # get point's coordinates and check its values

    + +

    coords = geompy.PointCoordinates(point)

    + +

    if coords[0] != 15 + or coords[1] != 23 or coords[2] != 80 :

    + +

        print + "Coordinates of point must be (15, 23, 80), but returned (", + coords[0], ", ", coords[1], ", ", coords[2], ")"

    + +

    else :

    + +

        print + "All values are OK."

    + +

    Basic Properties

    + +

    import geompy

    + +

    import math

    + +

     

    + +

    # create a box

    + +

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

    + +

    props = geompy.BasicProperties(box)

    + +

    print "\nBox + 100x30x100 Basic Properties:"

    + +

    print " Wires + length: ", props[0]

    + +

    print " Surface + area: ", props[1]

    + +

    print " Volume +      : + ", props[2]

    + +

    length = math.sqrt((props[0] + - 1840)*(props[0] - 1840))

    + +

    area = math.sqrt((props[1] + - 32000)*(props[1] - 32000))

    + +

    volume = math.sqrt((props[2] + - 300000)*(props[2] - 300000))

    + +

    if length > 1e-7 + or area > 1e-7 or volume > 1e-7:

    + +

        print + "While must be:"

    + +

        print + " Wires length: ", 1840

    + +

        print + " Surface area: ", 32000

    + +

        print + " Volume      : + ", 300000.

    + +

    Center of masses

    + +

    import geompy

    + +

    import math

    + +

     

    + +

    # create a box

    + +

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

    + +

    cm = geompy.MakeCDG(box)

    + +

    if cm is None:

    + +

        raise + RuntimeError, "MakeCDG(box) failed"

    + +

    else:

    + +

        print + "\nCentre of gravity of box has been successfully obtained:"

    + +

        coords + = geompy.PointCoordinates(cm)

    + +

        print + "(", coords[0], ", ", coords[1], ", ", coords[2], + ")"

    + +

        dx + = math.sqrt((coords[0] - 50)*(coords[0] - 50))

    + +

        dy + = math.sqrt((coords[1] - 15)*(coords[1] - 15))

    + +

        dz + = math.sqrt((coords[2] - 50)*(coords[2] - 50))

    + +

        if + dx > 1e-7 or dy > 1e-7 or dz > 1e-7:

    + +

            print + "But must be (50, 15, 50)"

    + +

    Inertia

    + +

    import geompy

    + +

    import math

    + +

     

    + +

    # create a box

    + +

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

    + +

    In = geompy.Inertia(box)

    + +

    print "\nInertia + matrix of box 100x30x100:"

    + +

    print " (", + In[0], ", ", In[1], ", ", In[2], ")"

    + +

    print " (", + In[3], ", ", In[4], ", ", In[5], ")"

    + +

    print " (", + In[6], ", ", In[7], ", ", In[8], ")"

    + +

    print "Main moments + of inertia of box 100x30x100:"

    + +

    print " Ix = + ", In[9], ", Iy = ", In[10], ", Iz = ", In[11] +

    + +

     

    + +

    Bounding Box

    + +

    import geompy

    + +

     

    + +

    # create a box

    + +

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

    + +

    bb = geompy.BoundingBox(box)

    + +

    print "\nBounding + Box of box 100x30x100:"

    + +

    print " Xmin + = ", bb[0], ", Xmax = ", bb[1]

    + +

    print " Ymin + = ", bb[2], ", Ymax = ", bb[3]

    + +

    print " Zmin + = ", bb[4], ", Zmax = ", bb[5]

    + +

     

    + +

     

    + +

    Minimal Distance

    + +

    import + geompy

    + +

     

    + +

    # create boxes

    + +

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

    + +

    box2 = geompy.MakeBox(105,0,0,200,30,100)

    + +

    min_dist = geompy.MinDistance(box1,box2)

    + +

    print "\nMinimal + distance between box1 and box2 = ", min_dist

    + +

     

    + +

    Point Coordinates

    + +

     

    + +

     

    + +

    import + geompy

    + +

    # create a point

    + +

    point = geompy.MakeVertex(15, + 23, 80)

    + +

    # get point's coordinates + and check its values

    + +

    coords = geompy.PointCoordinates(point)

    + +

    if coords[0] != 15 + or coords[1] != 23 or coords[2] != 80 :

    + +

        print + "Coordinates of point must be (15, 23, 80), but returned (", + coords[0], ", ", coords[1], ", ", coords[2], ")"

    + +

    else :

    + +

        print + "All values are OK."

    + +

     

    + +

    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 compound

    + +

    compound = geompy.MakeCompound([box1, + box2])

    + +

     

    + +

    # glue compound's faces

    + +

    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/GEOM/mirror_image.htm b/doc/salome/GEOM/mirror_image.htm new file mode 100755 index 000000000..a71a3c140 --- /dev/null +++ b/doc/salome/GEOM/mirror_image.htm @@ -0,0 +1,178 @@ + + + + + +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 Plane + of symmetry

    + +

    TUI Command: + geompy.MakeMirrorByPlane(Shape, + Plane),

    + +

    Arguments: + Name + 1 shape + 1 plane

    + +

     

    + +

       

    + +

     

    + +

    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 Point + of symmetry

    + +

    TUI Command: + geompy.MakeMirrorByPoint(Object, + Point)

    + +

    Arguments: Name + 1 shape + 1 vertex.

    + +

     

    + +

       

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/modify_the_location.htm b/doc/salome/GEOM/modify_the_location.htm new file mode 100755 index 000000000..56c7db721 --- /dev/null +++ b/doc/salome/GEOM/modify_the_location.htm @@ -0,0 +1,152 @@ + + + + + +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 Result will + be a  GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject + is a shape, location of which is modified, theStartLCS is a location to + move the shape from, theEndLCS is a location to move the shape to.

    + +

    Arguments: + Name + 1 GEOM_Object + [Starting Coordinate System] + End Coordinate System.

    + +

    Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.

    + +

     

    + +

      

    + +

     

    + +

    Example:

    + +

     

    + +

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/multi_rotation.htm b/doc/salome/GEOM/multi_rotation.htm new file mode 100755 index 000000000..5d85b8283 --- /dev/null +++ b/doc/salome/GEOM/multi_rotation.htm @@ -0,0 +1,182 @@ + + + + + +Multi Rotation + + + + + + + + + + + +

     Multi + Rotation

    + +

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

    + +

     

    + +

    This operation creates several geometrical + objects rotated in one or two dimentions basing on the initial + geometrical object.

    + +

    The Result will + be one or several GEOM_Objects (compound).

    + +

     

    + +

    To produce a Simple + Multi Rotation (in one dimension) you need to define a Shape + to be rotated, an Axis of rotation + and a Number of Times the shape + must be rotated. Rotation Angle + will be 2*PI/NbTimes

    + +

    TUI + Command: geompy.MakeMultiRotation1D(Shape, + Axis, NbTimes)

    + +

    Arguments: + Name + 1 shape + 1 vector for direction + + 1 value (repetition).

    + +

     

    + +

    There is a TUI + 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.MakeMultiRotation2D(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 + 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/GEOM/multi_transformation.htm b/doc/salome/GEOM/multi_transformation.htm new file mode 100755 index 000000000..8cc27fc34 --- /dev/null +++ b/doc/salome/GEOM/multi_transformation.htm @@ -0,0 +1,192 @@ + + + + + +Multi Transformation + + + + + + + + + + + + +

    Block Multi Transformation

    + +

    To produce + a Multi Translation operation + in the Main Menu select Operations - + > Blocks - > Multi Translation

    + +

     

    + +

    This operation makes several translations of + a block (solid) in one or two directions depending on the arguments + specified by the user.

    + +

    The + Result in both cases will be a + GEOM_Object.

    + +

     

    + +

    Simple Multi + Transformation (in one direction).

    + +

    TUI + Command: geompy. + MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes), where + Block is a block to be transformed, DirFaceID1 is an ID of the face which defines the first + direction of transformation, + DirFaceID2 is an ID of the face + which defines the second direction of transformation, + NbTimes is a number of transformations.

    + +

    Arguments: Name + + 1 hexahedral solid + 1 or 2 faces + 1 integer (number of blocks).

    + +

     

    + +

      

    + +

     

    + +

    Double + Multi Transformation (in two directions).

    + +

    TUI + Command: geompy. + MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V, + DirFaceID2V, NbTimesV), where Block + is a block to be transformed, DirFaceID1U and DirFace1V are IDÂ’s 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 + faces and 1 integer, or

      • + +
      • 3 + or 4 faces and 2 integers

      • +
      +
    + +

     

    + +

     

    + +

     

    + +

       Our TUI Scripts + provide you with useful examples of the use of + Blocks Operations.

    + +

      

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/multi_translation.htm b/doc/salome/GEOM/multi_translation.htm new file mode 100755 index 000000000..16f14a137 --- /dev/null +++ b/doc/salome/GEOM/multi_translation.htm @@ -0,0 +1,168 @@ + + + + + +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, 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/GEOM/newentity_blocks.htm b/doc/salome/GEOM/newentity_blocks.htm new file mode 100755 index 000000000..d4c7991ab --- /dev/null +++ b/doc/salome/GEOM/newentity_blocks.htm @@ -0,0 +1,322 @@ + + + + + +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).

    + +

     

    + +

    Result : + GEOM_Object (face).

    + +

     

    + +

    TUI Command:

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

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

    • + +
    • geompy.MakeQuadFace(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).

    + +

     

    + +

    Result : + GEOM_Object.

    + +

     

    + +

    TUI Command:

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

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

    • +
    + +

     

    + +

    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/GEOM/offset_surface.htm b/doc/salome/GEOM/offset_surface.htm new file mode 100755 index 000000000..204a067b7 --- /dev/null +++ b/doc/salome/GEOM/offset_surface.htm @@ -0,0 +1,146 @@ + + + + + +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/GEOM/partition.htm b/doc/salome/GEOM/partition.htm new file mode 100755 index 000000000..60c97c87c --- /dev/null +++ b/doc/salome/GEOM/partition.htm @@ -0,0 +1,172 @@ + + + + + +Partition + + + + + + + + + + + +

     Partition

    + +

    To produce + a Partition in the Main Menu select + Operations - > Partition

    + +

     

    + +

    This + operation builds a shape by intersection of two shapes or a shape + and a plane.

    + +

    The + Result will be any GEOM_Object.

    + +

     

    + +

    Intersection + of two shapes.

    + +

     

    + +

    TUI Command: + geompy.MakePartition(ListOfShapes, + ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs, + ListOfMaterials), where ListOfShapes is a list of shapes to be + intersected, ListOfTools is a list of shapes to intersect the shapes from + ListOfShapes, ListOfKeepInside is a list of shapes outside which the results + will be deleted, ListOfRemoveInside is a list of shapes inside which the + results will be deleted, Limit is a type of the result shapes, if RemoveWebs + is True the Glue 3D algorithm will be performed on the results, ListOfMaterials + is a list of materials indices for each shape, it makes sense only if + RemoveWebs is True.

    + +

    Arguments: + Name + 2 shapes (first shape will + be intersected by the second shape) + reconstruction limit.

    + +

     

    + +

    + +

     

    + +

    + +

     

    + +

     

    + +

    Intersection of a Shape + and a Plane.

    + +

    TUI Command +  geompy.MakeHalfPartition(Shape, + Plane), where Shape is + a Shape to be intersected and Plane + is a Tool shape, to intersect the Shape.

    + +

    Arguments: Name + + 1 shape which will be intersected + 1 cutting face.

    + +

     

    + +

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Our TUI Scripts provide you with useful examples + of the use of Basic Operations. +

    + +

     

    + + + + diff --git a/doc/salome/GEOM/pics/arc.png b/doc/salome/GEOM/pics/arc.png new file mode 100755 index 000000000..260a5fb7d Binary files /dev/null and b/doc/salome/GEOM/pics/arc.png differ diff --git a/doc/salome/GEOM/pics/archimede.png b/doc/salome/GEOM/pics/archimede.png new file mode 100755 index 000000000..cd620020e Binary files /dev/null and b/doc/salome/GEOM/pics/archimede.png differ diff --git a/doc/salome/GEOM/pics/archimedesn1.png b/doc/salome/GEOM/pics/archimedesn1.png new file mode 100755 index 000000000..402092052 Binary files /dev/null and b/doc/salome/GEOM/pics/archimedesn1.png differ diff --git a/doc/salome/GEOM/pics/archimedesn2.png b/doc/salome/GEOM/pics/archimedesn2.png new file mode 100755 index 000000000..b3b84b155 Binary files /dev/null and b/doc/salome/GEOM/pics/archimedesn2.png differ diff --git a/doc/salome/GEOM/pics/archimedesn3.png b/doc/salome/GEOM/pics/archimedesn3.png new file mode 100755 index 000000000..da57c0fb9 Binary files /dev/null and b/doc/salome/GEOM/pics/archimedesn3.png differ diff --git a/doc/salome/GEOM/pics/arcsn.png b/doc/salome/GEOM/pics/arcsn.png new file mode 100755 index 000000000..4131e41f5 Binary files /dev/null and b/doc/salome/GEOM/pics/arcsn.png differ diff --git a/doc/salome/GEOM/pics/bezier.png b/doc/salome/GEOM/pics/bezier.png new file mode 100755 index 000000000..3c0e8df2b Binary files /dev/null and b/doc/salome/GEOM/pics/bezier.png differ diff --git a/doc/salome/GEOM/pics/block1.png b/doc/salome/GEOM/pics/block1.png new file mode 100755 index 000000000..71a93b0c9 Binary files /dev/null and b/doc/salome/GEOM/pics/block1.png differ diff --git a/doc/salome/GEOM/pics/block2.png b/doc/salome/GEOM/pics/block2.png new file mode 100755 index 000000000..c66dd7f02 Binary files /dev/null and b/doc/salome/GEOM/pics/block2.png differ diff --git a/doc/salome/GEOM/pics/block3.png b/doc/salome/GEOM/pics/block3.png new file mode 100755 index 000000000..61aad9b43 Binary files /dev/null and b/doc/salome/GEOM/pics/block3.png differ diff --git a/doc/salome/GEOM/pics/block4.png b/doc/salome/GEOM/pics/block4.png new file mode 100755 index 000000000..d0661b6e9 Binary files /dev/null and b/doc/salome/GEOM/pics/block4.png differ diff --git a/doc/salome/GEOM/pics/block5.png b/doc/salome/GEOM/pics/block5.png new file mode 100755 index 000000000..9810f6f0d Binary files /dev/null and b/doc/salome/GEOM/pics/block5.png differ diff --git a/doc/salome/GEOM/pics/block_explodesn.png b/doc/salome/GEOM/pics/block_explodesn.png new file mode 100755 index 000000000..372de3f20 Binary files /dev/null and b/doc/salome/GEOM/pics/block_explodesn.png differ diff --git a/doc/salome/GEOM/pics/bool1.png b/doc/salome/GEOM/pics/bool1.png new file mode 100755 index 000000000..3f997a772 Binary files /dev/null and b/doc/salome/GEOM/pics/bool1.png differ diff --git a/doc/salome/GEOM/pics/bool2.png b/doc/salome/GEOM/pics/bool2.png new file mode 100755 index 000000000..4e9b96862 Binary files /dev/null and b/doc/salome/GEOM/pics/bool2.png differ diff --git a/doc/salome/GEOM/pics/bool3.png b/doc/salome/GEOM/pics/bool3.png new file mode 100755 index 000000000..af409a15e Binary files /dev/null and b/doc/salome/GEOM/pics/bool3.png differ diff --git a/doc/salome/GEOM/pics/box1.png b/doc/salome/GEOM/pics/box1.png new file mode 100755 index 000000000..812027dcf Binary files /dev/null and b/doc/salome/GEOM/pics/box1.png differ diff --git a/doc/salome/GEOM/pics/box2.png b/doc/salome/GEOM/pics/box2.png new file mode 100755 index 000000000..85a737afb Binary files /dev/null and b/doc/salome/GEOM/pics/box2.png differ diff --git a/doc/salome/GEOM/pics/boxes.png b/doc/salome/GEOM/pics/boxes.png new file mode 100755 index 000000000..f2fad497e Binary files /dev/null and b/doc/salome/GEOM/pics/boxes.png differ diff --git a/doc/salome/GEOM/pics/chamfer1.png b/doc/salome/GEOM/pics/chamfer1.png new file mode 100755 index 000000000..94fedcd12 Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer1.png differ diff --git a/doc/salome/GEOM/pics/chamfer2.png b/doc/salome/GEOM/pics/chamfer2.png new file mode 100755 index 000000000..b2c09870e Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer2.png differ diff --git a/doc/salome/GEOM/pics/chamfer3.png b/doc/salome/GEOM/pics/chamfer3.png new file mode 100755 index 000000000..84b52e5c6 Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer3.png differ diff --git a/doc/salome/GEOM/pics/chamfer_all.png b/doc/salome/GEOM/pics/chamfer_all.png new file mode 100755 index 000000000..c398cb0c5 Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer_all.png differ diff --git a/doc/salome/GEOM/pics/chamfer_edge.png b/doc/salome/GEOM/pics/chamfer_edge.png new file mode 100755 index 000000000..8ed8fc005 Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer_edge.png differ diff --git a/doc/salome/GEOM/pics/chamfer_faces.png b/doc/salome/GEOM/pics/chamfer_faces.png new file mode 100755 index 000000000..961cf0386 Binary files /dev/null and b/doc/salome/GEOM/pics/chamfer_faces.png differ diff --git a/doc/salome/GEOM/pics/circle1.png b/doc/salome/GEOM/pics/circle1.png new file mode 100755 index 000000000..840a25973 Binary files /dev/null and b/doc/salome/GEOM/pics/circle1.png differ diff --git a/doc/salome/GEOM/pics/circle2.png b/doc/salome/GEOM/pics/circle2.png new file mode 100755 index 000000000..7500eaf2c Binary files /dev/null and b/doc/salome/GEOM/pics/circle2.png differ diff --git a/doc/salome/GEOM/pics/circles.png b/doc/salome/GEOM/pics/circles.png new file mode 100755 index 000000000..dc367ce8b Binary files /dev/null and b/doc/salome/GEOM/pics/circles.png differ diff --git a/doc/salome/GEOM/pics/colorsn.png b/doc/salome/GEOM/pics/colorsn.png new file mode 100755 index 000000000..f0c440147 Binary files /dev/null and b/doc/salome/GEOM/pics/colorsn.png differ diff --git a/doc/salome/GEOM/pics/compoundsn.png b/doc/salome/GEOM/pics/compoundsn.png new file mode 100755 index 000000000..33e1012ed Binary files /dev/null and b/doc/salome/GEOM/pics/compoundsn.png differ diff --git a/doc/salome/GEOM/pics/cone1.png b/doc/salome/GEOM/pics/cone1.png new file mode 100755 index 000000000..f5a95922a Binary files /dev/null and b/doc/salome/GEOM/pics/cone1.png differ diff --git a/doc/salome/GEOM/pics/cone2.png b/doc/salome/GEOM/pics/cone2.png new file mode 100755 index 000000000..1b0582140 Binary files /dev/null and b/doc/salome/GEOM/pics/cone2.png differ diff --git a/doc/salome/GEOM/pics/cones.png b/doc/salome/GEOM/pics/cones.png new file mode 100755 index 000000000..4c8108ce1 Binary files /dev/null and b/doc/salome/GEOM/pics/cones.png differ diff --git a/doc/salome/GEOM/pics/creategroup.png b/doc/salome/GEOM/pics/creategroup.png new file mode 100755 index 000000000..85c6bc550 Binary files /dev/null and b/doc/salome/GEOM/pics/creategroup.png differ diff --git a/doc/salome/GEOM/pics/curve.png b/doc/salome/GEOM/pics/curve.png new file mode 100755 index 000000000..a9541de0a Binary files /dev/null and b/doc/salome/GEOM/pics/curve.png differ diff --git a/doc/salome/GEOM/pics/cutsn.png b/doc/salome/GEOM/pics/cutsn.png new file mode 100755 index 000000000..eda9bb712 Binary files /dev/null and b/doc/salome/GEOM/pics/cutsn.png differ diff --git a/doc/salome/GEOM/pics/cylinder1.png b/doc/salome/GEOM/pics/cylinder1.png new file mode 100755 index 000000000..71b619df8 Binary files /dev/null and b/doc/salome/GEOM/pics/cylinder1.png differ diff --git a/doc/salome/GEOM/pics/cylinder2.png b/doc/salome/GEOM/pics/cylinder2.png new file mode 100755 index 000000000..ee6ed12e6 Binary files /dev/null and b/doc/salome/GEOM/pics/cylinder2.png differ diff --git a/doc/salome/GEOM/pics/cylinders.png b/doc/salome/GEOM/pics/cylinders.png new file mode 100755 index 000000000..fc0d43276 Binary files /dev/null and b/doc/salome/GEOM/pics/cylinders.png differ diff --git a/doc/salome/GEOM/pics/disp_mode1sn.png b/doc/salome/GEOM/pics/disp_mode1sn.png new file mode 100755 index 000000000..b5b7e8ff2 Binary files /dev/null and b/doc/salome/GEOM/pics/disp_mode1sn.png differ diff --git a/doc/salome/GEOM/pics/disp_mode2sn.png b/doc/salome/GEOM/pics/disp_mode2sn.png new file mode 100755 index 000000000..362232739 Binary files /dev/null and b/doc/salome/GEOM/pics/disp_mode2sn.png differ diff --git a/doc/salome/GEOM/pics/distance.png b/doc/salome/GEOM/pics/distance.png new file mode 100755 index 000000000..7466fc424 Binary files /dev/null and b/doc/salome/GEOM/pics/distance.png differ diff --git a/doc/salome/GEOM/pics/edgesn.png b/doc/salome/GEOM/pics/edgesn.png new file mode 100755 index 000000000..9de8df9ef Binary files /dev/null and b/doc/salome/GEOM/pics/edgesn.png differ diff --git a/doc/salome/GEOM/pics/editgroup.png b/doc/salome/GEOM/pics/editgroup.png new file mode 100755 index 000000000..db3e23575 Binary files /dev/null and b/doc/salome/GEOM/pics/editgroup.png differ diff --git a/doc/salome/GEOM/pics/ellipse.png b/doc/salome/GEOM/pics/ellipse.png new file mode 100755 index 000000000..0888b5021 Binary files /dev/null and b/doc/salome/GEOM/pics/ellipse.png differ diff --git a/doc/salome/GEOM/pics/ellipsesn.png b/doc/salome/GEOM/pics/ellipsesn.png new file mode 100755 index 000000000..1c421541d Binary files /dev/null and b/doc/salome/GEOM/pics/ellipsesn.png differ diff --git a/doc/salome/GEOM/pics/export.png b/doc/salome/GEOM/pics/export.png new file mode 100755 index 000000000..7e441f93a Binary files /dev/null and b/doc/salome/GEOM/pics/export.png differ diff --git a/doc/salome/GEOM/pics/extrusion.png b/doc/salome/GEOM/pics/extrusion.png new file mode 100755 index 000000000..2d7017e93 Binary files /dev/null and b/doc/salome/GEOM/pics/extrusion.png differ diff --git a/doc/salome/GEOM/pics/facesn1.png b/doc/salome/GEOM/pics/facesn1.png new file mode 100755 index 000000000..c78703a11 Binary files /dev/null and b/doc/salome/GEOM/pics/facesn1.png differ diff --git a/doc/salome/GEOM/pics/facesn2.png b/doc/salome/GEOM/pics/facesn2.png new file mode 100755 index 000000000..59403a08c Binary files /dev/null and b/doc/salome/GEOM/pics/facesn2.png differ diff --git a/doc/salome/GEOM/pics/facesn3.png b/doc/salome/GEOM/pics/facesn3.png new file mode 100755 index 000000000..7c95d1156 Binary files /dev/null and b/doc/salome/GEOM/pics/facesn3.png differ diff --git a/doc/salome/GEOM/pics/fillet1.png b/doc/salome/GEOM/pics/fillet1.png new file mode 100755 index 000000000..7fd3db53f Binary files /dev/null and b/doc/salome/GEOM/pics/fillet1.png differ diff --git a/doc/salome/GEOM/pics/fillet2.png b/doc/salome/GEOM/pics/fillet2.png new file mode 100755 index 000000000..d42e333ea Binary files /dev/null and b/doc/salome/GEOM/pics/fillet2.png differ diff --git a/doc/salome/GEOM/pics/fillet3.png b/doc/salome/GEOM/pics/fillet3.png new file mode 100755 index 000000000..73e453339 Binary files /dev/null and b/doc/salome/GEOM/pics/fillet3.png differ diff --git a/doc/salome/GEOM/pics/fillet_all.png b/doc/salome/GEOM/pics/fillet_all.png new file mode 100755 index 000000000..c1650b907 Binary files /dev/null and b/doc/salome/GEOM/pics/fillet_all.png differ diff --git a/doc/salome/GEOM/pics/fillet_edge.png b/doc/salome/GEOM/pics/fillet_edge.png new file mode 100755 index 000000000..9572abb79 Binary files /dev/null and b/doc/salome/GEOM/pics/fillet_edge.png differ diff --git a/doc/salome/GEOM/pics/fillet_prism.png b/doc/salome/GEOM/pics/fillet_prism.png new file mode 100755 index 000000000..3a44a07e6 Binary files /dev/null and b/doc/salome/GEOM/pics/fillet_prism.png differ diff --git a/doc/salome/GEOM/pics/filling.png b/doc/salome/GEOM/pics/filling.png new file mode 100755 index 000000000..5ed4f45a5 Binary files /dev/null and b/doc/salome/GEOM/pics/filling.png differ diff --git a/doc/salome/GEOM/pics/filling_compoundsn.png b/doc/salome/GEOM/pics/filling_compoundsn.png new file mode 100755 index 000000000..9d3846b2b Binary files /dev/null and b/doc/salome/GEOM/pics/filling_compoundsn.png differ diff --git a/doc/salome/GEOM/pics/fillingsn.png b/doc/salome/GEOM/pics/fillingsn.png new file mode 100755 index 000000000..2446e89d5 Binary files /dev/null and b/doc/salome/GEOM/pics/fillingsn.png differ diff --git a/doc/salome/GEOM/pics/free_boudaries1.png b/doc/salome/GEOM/pics/free_boudaries1.png new file mode 100755 index 000000000..20c29f965 Binary files /dev/null and b/doc/salome/GEOM/pics/free_boudaries1.png differ diff --git a/doc/salome/GEOM/pics/free_boudaries2.png b/doc/salome/GEOM/pics/free_boudaries2.png new file mode 100755 index 000000000..1523fe911 Binary files /dev/null and b/doc/salome/GEOM/pics/free_boudaries2.png differ diff --git a/doc/salome/GEOM/pics/free_faces1.png b/doc/salome/GEOM/pics/free_faces1.png new file mode 100755 index 000000000..530d8440b Binary files /dev/null and b/doc/salome/GEOM/pics/free_faces1.png differ diff --git a/doc/salome/GEOM/pics/free_faces2.png b/doc/salome/GEOM/pics/free_faces2.png new file mode 100755 index 000000000..7526bd17c Binary files /dev/null and b/doc/salome/GEOM/pics/free_faces2.png differ diff --git a/doc/salome/GEOM/pics/fusesn1.png b/doc/salome/GEOM/pics/fusesn1.png new file mode 100755 index 000000000..e0118cbd2 Binary files /dev/null and b/doc/salome/GEOM/pics/fusesn1.png differ diff --git a/doc/salome/GEOM/pics/fusesn2.png b/doc/salome/GEOM/pics/fusesn2.png new file mode 100755 index 000000000..f8a2b0108 Binary files /dev/null and b/doc/salome/GEOM/pics/fusesn2.png differ diff --git a/doc/salome/GEOM/pics/glue_faces1.png b/doc/salome/GEOM/pics/glue_faces1.png new file mode 100755 index 000000000..787c9b0d6 Binary files /dev/null and b/doc/salome/GEOM/pics/glue_faces1.png differ diff --git a/doc/salome/GEOM/pics/glue_faces2.png b/doc/salome/GEOM/pics/glue_faces2.png new file mode 100755 index 000000000..d33661367 Binary files /dev/null and b/doc/salome/GEOM/pics/glue_faces2.png differ diff --git a/doc/salome/GEOM/pics/import.png b/doc/salome/GEOM/pics/import.png new file mode 100755 index 000000000..8039e55a3 Binary files /dev/null and b/doc/salome/GEOM/pics/import.png differ diff --git a/doc/salome/GEOM/pics/interpol.png b/doc/salome/GEOM/pics/interpol.png new file mode 100755 index 000000000..ac77ddfa3 Binary files /dev/null and b/doc/salome/GEOM/pics/interpol.png differ diff --git a/doc/salome/GEOM/pics/isos_u12_v12sn.png b/doc/salome/GEOM/pics/isos_u12_v12sn.png new file mode 100755 index 000000000..10a13ce4b Binary files /dev/null and b/doc/salome/GEOM/pics/isos_u12_v12sn.png differ diff --git a/doc/salome/GEOM/pics/line.png b/doc/salome/GEOM/pics/line.png new file mode 100755 index 000000000..3c931a1e9 Binary files /dev/null and b/doc/salome/GEOM/pics/line.png differ diff --git a/doc/salome/GEOM/pics/lines.png b/doc/salome/GEOM/pics/lines.png new file mode 100755 index 000000000..de12c1122 Binary files /dev/null and b/doc/salome/GEOM/pics/lines.png differ diff --git a/doc/salome/GEOM/pics/measures1.png b/doc/salome/GEOM/pics/measures1.png new file mode 100755 index 000000000..6d5d698b4 Binary files /dev/null and b/doc/salome/GEOM/pics/measures1.png differ diff --git a/doc/salome/GEOM/pics/measures10.png b/doc/salome/GEOM/pics/measures10.png new file mode 100755 index 000000000..33023cc49 Binary files /dev/null and b/doc/salome/GEOM/pics/measures10.png differ diff --git a/doc/salome/GEOM/pics/measures3.png b/doc/salome/GEOM/pics/measures3.png new file mode 100755 index 000000000..9a55aad4a Binary files /dev/null and b/doc/salome/GEOM/pics/measures3.png differ diff --git a/doc/salome/GEOM/pics/measures4.png b/doc/salome/GEOM/pics/measures4.png new file mode 100755 index 000000000..ea243e888 Binary files /dev/null and b/doc/salome/GEOM/pics/measures4.png differ diff --git a/doc/salome/GEOM/pics/measures5.png b/doc/salome/GEOM/pics/measures5.png new file mode 100755 index 000000000..a323426e6 Binary files /dev/null and b/doc/salome/GEOM/pics/measures5.png differ diff --git a/doc/salome/GEOM/pics/measures8.png b/doc/salome/GEOM/pics/measures8.png new file mode 100755 index 000000000..94bed3271 Binary files /dev/null and b/doc/salome/GEOM/pics/measures8.png differ diff --git a/doc/salome/GEOM/pics/measures9.png b/doc/salome/GEOM/pics/measures9.png new file mode 100755 index 000000000..1767aad75 Binary files /dev/null and b/doc/salome/GEOM/pics/measures9.png differ diff --git a/doc/salome/GEOM/pics/mirror_axissn1.png b/doc/salome/GEOM/pics/mirror_axissn1.png new file mode 100755 index 000000000..86be83e7a Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_axissn1.png differ diff --git a/doc/salome/GEOM/pics/mirror_axissn2.png b/doc/salome/GEOM/pics/mirror_axissn2.png new file mode 100755 index 000000000..6009fa7cf Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_axissn2.png differ diff --git a/doc/salome/GEOM/pics/mirror_planesn1.png b/doc/salome/GEOM/pics/mirror_planesn1.png new file mode 100755 index 000000000..969f0e0f4 Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_planesn1.png differ diff --git a/doc/salome/GEOM/pics/mirror_planesn2.png b/doc/salome/GEOM/pics/mirror_planesn2.png new file mode 100755 index 000000000..e9eb4966d Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_planesn2.png differ diff --git a/doc/salome/GEOM/pics/mirror_pointsn1.png b/doc/salome/GEOM/pics/mirror_pointsn1.png new file mode 100755 index 000000000..675b0bff1 Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_pointsn1.png differ diff --git a/doc/salome/GEOM/pics/mirror_pointsn2.png b/doc/salome/GEOM/pics/mirror_pointsn2.png new file mode 100755 index 000000000..ab6235906 Binary files /dev/null and b/doc/salome/GEOM/pics/mirror_pointsn2.png differ diff --git a/doc/salome/GEOM/pics/mtrans1.png b/doc/salome/GEOM/pics/mtrans1.png new file mode 100755 index 000000000..7dfe730c3 Binary files /dev/null and b/doc/salome/GEOM/pics/mtrans1.png differ diff --git a/doc/salome/GEOM/pics/mtrans2.png b/doc/salome/GEOM/pics/mtrans2.png new file mode 100755 index 000000000..62b35bb0c Binary files /dev/null and b/doc/salome/GEOM/pics/mtrans2.png differ diff --git a/doc/salome/GEOM/pics/mtransf1.png b/doc/salome/GEOM/pics/mtransf1.png new file mode 100755 index 000000000..207e920f9 Binary files /dev/null and b/doc/salome/GEOM/pics/mtransf1.png differ diff --git a/doc/salome/GEOM/pics/mtransf2.png b/doc/salome/GEOM/pics/mtransf2.png new file mode 100755 index 000000000..3435f0f8c Binary files /dev/null and b/doc/salome/GEOM/pics/mtransf2.png differ diff --git a/doc/salome/GEOM/pics/mtransf3.png b/doc/salome/GEOM/pics/mtransf3.png new file mode 100755 index 000000000..628d8b0a6 Binary files /dev/null and b/doc/salome/GEOM/pics/mtransf3.png differ diff --git a/doc/salome/GEOM/pics/mtransf4.png b/doc/salome/GEOM/pics/mtransf4.png new file mode 100755 index 000000000..cbe904444 Binary files /dev/null and b/doc/salome/GEOM/pics/mtransf4.png differ diff --git a/doc/salome/GEOM/pics/multi_rotation1d1.png b/doc/salome/GEOM/pics/multi_rotation1d1.png new file mode 100755 index 000000000..4085f434b Binary files /dev/null and b/doc/salome/GEOM/pics/multi_rotation1d1.png differ diff --git a/doc/salome/GEOM/pics/multi_rotation1d2.png b/doc/salome/GEOM/pics/multi_rotation1d2.png new file mode 100755 index 000000000..8089092a8 Binary files /dev/null and b/doc/salome/GEOM/pics/multi_rotation1d2.png differ diff --git a/doc/salome/GEOM/pics/multi_rotation2d1.png b/doc/salome/GEOM/pics/multi_rotation2d1.png new file mode 100755 index 000000000..1bdd25302 Binary files /dev/null and b/doc/salome/GEOM/pics/multi_rotation2d1.png differ diff --git a/doc/salome/GEOM/pics/multi_rotation2d2.png b/doc/salome/GEOM/pics/multi_rotation2d2.png new file mode 100755 index 000000000..aa61ca606 Binary files /dev/null and b/doc/salome/GEOM/pics/multi_rotation2d2.png differ diff --git a/doc/salome/GEOM/pics/multi_transformationsn1d.png b/doc/salome/GEOM/pics/multi_transformationsn1d.png new file mode 100755 index 000000000..dfcc440ae Binary files /dev/null and b/doc/salome/GEOM/pics/multi_transformationsn1d.png differ diff --git a/doc/salome/GEOM/pics/multi_transformationsn2d.png b/doc/salome/GEOM/pics/multi_transformationsn2d.png new file mode 100755 index 000000000..f0fc1279c Binary files /dev/null and b/doc/salome/GEOM/pics/multi_transformationsn2d.png differ diff --git a/doc/salome/GEOM/pics/multi_translation1dsn.png b/doc/salome/GEOM/pics/multi_translation1dsn.png new file mode 100755 index 000000000..436a8169a Binary files /dev/null and b/doc/salome/GEOM/pics/multi_translation1dsn.png differ diff --git a/doc/salome/GEOM/pics/multi_translation2dsn.png b/doc/salome/GEOM/pics/multi_translation2dsn.png new file mode 100755 index 000000000..f44c8520e Binary files /dev/null and b/doc/salome/GEOM/pics/multi_translation2dsn.png differ diff --git a/doc/salome/GEOM/pics/multi_translation_initialsn.png b/doc/salome/GEOM/pics/multi_translation_initialsn.png new file mode 100755 index 000000000..0b7b70afe Binary files /dev/null and b/doc/salome/GEOM/pics/multi_translation_initialsn.png differ diff --git a/doc/salome/GEOM/pics/neo-basicprop.png b/doc/salome/GEOM/pics/neo-basicprop.png new file mode 100755 index 000000000..2a9d7ca2a Binary files /dev/null and b/doc/salome/GEOM/pics/neo-basicprop.png differ diff --git a/doc/salome/GEOM/pics/neo-detect2.png b/doc/salome/GEOM/pics/neo-detect2.png new file mode 100755 index 000000000..f0dabe311 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-detect2.png differ diff --git a/doc/salome/GEOM/pics/neo-isos.png b/doc/salome/GEOM/pics/neo-isos.png new file mode 100755 index 000000000..dbbcf8ef5 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-isos.png differ diff --git a/doc/salome/GEOM/pics/neo-localcs1.png b/doc/salome/GEOM/pics/neo-localcs1.png new file mode 100755 index 000000000..9bdacafa2 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-localcs1.png differ diff --git a/doc/salome/GEOM/pics/neo-localcs2.png b/doc/salome/GEOM/pics/neo-localcs2.png new file mode 100755 index 000000000..3fc54a67c Binary files /dev/null and b/doc/salome/GEOM/pics/neo-localcs2.png differ diff --git a/doc/salome/GEOM/pics/neo-localcs3.png b/doc/salome/GEOM/pics/neo-localcs3.png new file mode 100755 index 000000000..01c8e24fa Binary files /dev/null and b/doc/salome/GEOM/pics/neo-localcs3.png differ diff --git a/doc/salome/GEOM/pics/neo-materials.png b/doc/salome/GEOM/pics/neo-materials.png new file mode 100755 index 000000000..66917490c Binary files /dev/null and b/doc/salome/GEOM/pics/neo-materials.png differ diff --git a/doc/salome/GEOM/pics/neo-mrot1.png b/doc/salome/GEOM/pics/neo-mrot1.png new file mode 100755 index 000000000..6cf2ab91b Binary files /dev/null and b/doc/salome/GEOM/pics/neo-mrot1.png differ diff --git a/doc/salome/GEOM/pics/neo-mrot2.png b/doc/salome/GEOM/pics/neo-mrot2.png new file mode 100755 index 000000000..e2f37e052 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-mrot2.png differ diff --git a/doc/salome/GEOM/pics/neo-obj1.png b/doc/salome/GEOM/pics/neo-obj1.png new file mode 100755 index 000000000..88a7a8b8a Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj1.png differ diff --git a/doc/salome/GEOM/pics/neo-obj2.png b/doc/salome/GEOM/pics/neo-obj2.png new file mode 100755 index 000000000..c940eaa38 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj2.png differ diff --git a/doc/salome/GEOM/pics/neo-obj3.png b/doc/salome/GEOM/pics/neo-obj3.png new file mode 100755 index 000000000..d773938e2 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj3.png differ diff --git a/doc/salome/GEOM/pics/neo-obj4.png b/doc/salome/GEOM/pics/neo-obj4.png new file mode 100755 index 000000000..db5d49715 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj4.png differ diff --git a/doc/salome/GEOM/pics/neo-obj5.png b/doc/salome/GEOM/pics/neo-obj5.png new file mode 100755 index 000000000..e1579f082 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj5.png differ diff --git a/doc/salome/GEOM/pics/neo-obj6.png b/doc/salome/GEOM/pics/neo-obj6.png new file mode 100755 index 000000000..b6b3be440 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj6.png differ diff --git a/doc/salome/GEOM/pics/neo-obj7.png b/doc/salome/GEOM/pics/neo-obj7.png new file mode 100755 index 000000000..15dfa2376 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-obj7.png differ diff --git a/doc/salome/GEOM/pics/neo-point2.png b/doc/salome/GEOM/pics/neo-point2.png new file mode 100755 index 000000000..3bc59b860 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-point2.png differ diff --git a/doc/salome/GEOM/pics/neo-scetcher1.png b/doc/salome/GEOM/pics/neo-scetcher1.png new file mode 100755 index 000000000..7130e8b08 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-scetcher1.png differ diff --git a/doc/salome/GEOM/pics/neo-scetcher2.png b/doc/salome/GEOM/pics/neo-scetcher2.png new file mode 100755 index 000000000..330e1e3a3 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-scetcher2.png differ diff --git a/doc/salome/GEOM/pics/neo-section.png b/doc/salome/GEOM/pics/neo-section.png new file mode 100755 index 000000000..0d58ad244 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-section.png differ diff --git a/doc/salome/GEOM/pics/neo-transparency.png b/doc/salome/GEOM/pics/neo-transparency.png new file mode 100755 index 000000000..ec1fb7f70 Binary files /dev/null and b/doc/salome/GEOM/pics/neo-transparency.png differ diff --git a/doc/salome/GEOM/pics/new-tolerance.png b/doc/salome/GEOM/pics/new-tolerance.png new file mode 100755 index 000000000..796115ba9 Binary files /dev/null and b/doc/salome/GEOM/pics/new-tolerance.png differ diff --git a/doc/salome/GEOM/pics/offsetsn.png b/doc/salome/GEOM/pics/offsetsn.png new file mode 100755 index 000000000..6404310e0 Binary files /dev/null and b/doc/salome/GEOM/pics/offsetsn.png differ diff --git a/doc/salome/GEOM/pics/partition1.png b/doc/salome/GEOM/pics/partition1.png new file mode 100755 index 000000000..eb6bf4305 Binary files /dev/null and b/doc/salome/GEOM/pics/partition1.png differ diff --git a/doc/salome/GEOM/pics/partition2.png b/doc/salome/GEOM/pics/partition2.png new file mode 100755 index 000000000..bd388a5fb Binary files /dev/null and b/doc/salome/GEOM/pics/partition2.png differ diff --git a/doc/salome/GEOM/pics/partitionsn1.png b/doc/salome/GEOM/pics/partitionsn1.png new file mode 100755 index 000000000..fa8404de4 Binary files /dev/null and b/doc/salome/GEOM/pics/partitionsn1.png differ diff --git a/doc/salome/GEOM/pics/partitionsn2.png b/doc/salome/GEOM/pics/partitionsn2.png new file mode 100755 index 000000000..b7480a4fa Binary files /dev/null and b/doc/salome/GEOM/pics/partitionsn2.png differ diff --git a/doc/salome/GEOM/pics/pipe.png b/doc/salome/GEOM/pics/pipe.png new file mode 100755 index 000000000..e773731d2 Binary files /dev/null and b/doc/salome/GEOM/pics/pipe.png differ diff --git a/doc/salome/GEOM/pics/pipe_wire_edgesn.png b/doc/salome/GEOM/pics/pipe_wire_edgesn.png new file mode 100755 index 000000000..4424b6bf1 Binary files /dev/null and b/doc/salome/GEOM/pics/pipe_wire_edgesn.png differ diff --git a/doc/salome/GEOM/pics/pipesn.png b/doc/salome/GEOM/pics/pipesn.png new file mode 100755 index 000000000..11ac1096b Binary files /dev/null and b/doc/salome/GEOM/pics/pipesn.png differ diff --git a/doc/salome/GEOM/pics/plane1.png b/doc/salome/GEOM/pics/plane1.png new file mode 100755 index 000000000..47a9b8bcd Binary files /dev/null and b/doc/salome/GEOM/pics/plane1.png differ diff --git a/doc/salome/GEOM/pics/plane2.png b/doc/salome/GEOM/pics/plane2.png new file mode 100755 index 000000000..f4b880b44 Binary files /dev/null and b/doc/salome/GEOM/pics/plane2.png differ diff --git a/doc/salome/GEOM/pics/plane3.png b/doc/salome/GEOM/pics/plane3.png new file mode 100755 index 000000000..bce562350 Binary files /dev/null and b/doc/salome/GEOM/pics/plane3.png differ diff --git a/doc/salome/GEOM/pics/plane_on_face.png b/doc/salome/GEOM/pics/plane_on_face.png new file mode 100755 index 000000000..5df8823cd Binary files /dev/null and b/doc/salome/GEOM/pics/plane_on_face.png differ diff --git a/doc/salome/GEOM/pics/planes1.png b/doc/salome/GEOM/pics/planes1.png new file mode 100755 index 000000000..c9a594cee Binary files /dev/null and b/doc/salome/GEOM/pics/planes1.png differ diff --git a/doc/salome/GEOM/pics/point1.png b/doc/salome/GEOM/pics/point1.png new file mode 100755 index 000000000..39bca25f4 Binary files /dev/null and b/doc/salome/GEOM/pics/point1.png differ diff --git a/doc/salome/GEOM/pics/point3.png b/doc/salome/GEOM/pics/point3.png new file mode 100755 index 000000000..0a2e325c6 Binary files /dev/null and b/doc/salome/GEOM/pics/point3.png differ diff --git a/doc/salome/GEOM/pics/points.png b/doc/salome/GEOM/pics/points.png new file mode 100755 index 000000000..547b277fd Binary files /dev/null and b/doc/salome/GEOM/pics/points.png differ diff --git a/doc/salome/GEOM/pics/polyline.png b/doc/salome/GEOM/pics/polyline.png new file mode 100755 index 000000000..bd259e120 Binary files /dev/null and b/doc/salome/GEOM/pics/polyline.png differ diff --git a/doc/salome/GEOM/pics/prisms_basessn.png b/doc/salome/GEOM/pics/prisms_basessn.png new file mode 100755 index 000000000..d6a070083 Binary files /dev/null and b/doc/salome/GEOM/pics/prisms_basessn.png differ diff --git a/doc/salome/GEOM/pics/prismssn.png b/doc/salome/GEOM/pics/prismssn.png new file mode 100755 index 000000000..80c9af357 Binary files /dev/null and b/doc/salome/GEOM/pics/prismssn.png differ diff --git a/doc/salome/GEOM/pics/repair1.png b/doc/salome/GEOM/pics/repair1.png new file mode 100755 index 000000000..2b47fa5a4 Binary files /dev/null and b/doc/salome/GEOM/pics/repair1.png differ diff --git a/doc/salome/GEOM/pics/repair10.png b/doc/salome/GEOM/pics/repair10.png new file mode 100755 index 000000000..c3c77164a Binary files /dev/null and b/doc/salome/GEOM/pics/repair10.png differ diff --git a/doc/salome/GEOM/pics/repair2.png b/doc/salome/GEOM/pics/repair2.png new file mode 100755 index 000000000..488a6a4c9 Binary files /dev/null and b/doc/salome/GEOM/pics/repair2.png differ diff --git a/doc/salome/GEOM/pics/repair3.png b/doc/salome/GEOM/pics/repair3.png new file mode 100755 index 000000000..4c2a41f90 Binary files /dev/null and b/doc/salome/GEOM/pics/repair3.png differ diff --git a/doc/salome/GEOM/pics/repair4.png b/doc/salome/GEOM/pics/repair4.png new file mode 100755 index 000000000..2af7cbabb Binary files /dev/null and b/doc/salome/GEOM/pics/repair4.png differ diff --git a/doc/salome/GEOM/pics/repair5.png b/doc/salome/GEOM/pics/repair5.png new file mode 100755 index 000000000..b99fbcbaf Binary files /dev/null and b/doc/salome/GEOM/pics/repair5.png differ diff --git a/doc/salome/GEOM/pics/repair6.png b/doc/salome/GEOM/pics/repair6.png new file mode 100755 index 000000000..5123d1f84 Binary files /dev/null and b/doc/salome/GEOM/pics/repair6.png differ diff --git a/doc/salome/GEOM/pics/repair7.png b/doc/salome/GEOM/pics/repair7.png new file mode 100755 index 000000000..2b553b9fd Binary files /dev/null and b/doc/salome/GEOM/pics/repair7.png differ diff --git a/doc/salome/GEOM/pics/repair8.png b/doc/salome/GEOM/pics/repair8.png new file mode 100755 index 000000000..f0016836e Binary files /dev/null and b/doc/salome/GEOM/pics/repair8.png differ diff --git a/doc/salome/GEOM/pics/repair9.png b/doc/salome/GEOM/pics/repair9.png new file mode 100755 index 000000000..7f5d4f5c3 Binary files /dev/null and b/doc/salome/GEOM/pics/repair9.png differ diff --git a/doc/salome/GEOM/pics/revolution.png b/doc/salome/GEOM/pics/revolution.png new file mode 100755 index 000000000..c02c859b1 Binary files /dev/null and b/doc/salome/GEOM/pics/revolution.png differ diff --git a/doc/salome/GEOM/pics/revolutionsn.png b/doc/salome/GEOM/pics/revolutionsn.png new file mode 100755 index 000000000..7242c6710 Binary files /dev/null and b/doc/salome/GEOM/pics/revolutionsn.png differ diff --git a/doc/salome/GEOM/pics/rotationsn1.png b/doc/salome/GEOM/pics/rotationsn1.png new file mode 100755 index 000000000..697dcdedf Binary files /dev/null and b/doc/salome/GEOM/pics/rotationsn1.png differ diff --git a/doc/salome/GEOM/pics/rotationsn2.png b/doc/salome/GEOM/pics/rotationsn2.png new file mode 100755 index 000000000..741d00c90 Binary files /dev/null and b/doc/salome/GEOM/pics/rotationsn2.png differ diff --git a/doc/salome/GEOM/pics/scale_transformsn1.png b/doc/salome/GEOM/pics/scale_transformsn1.png new file mode 100755 index 000000000..5af390922 Binary files /dev/null and b/doc/salome/GEOM/pics/scale_transformsn1.png differ diff --git a/doc/salome/GEOM/pics/scale_transformsn2.png b/doc/salome/GEOM/pics/scale_transformsn2.png new file mode 100755 index 000000000..fa76d4158 Binary files /dev/null and b/doc/salome/GEOM/pics/scale_transformsn2.png differ diff --git a/doc/salome/GEOM/pics/sectionsn.png b/doc/salome/GEOM/pics/sectionsn.png new file mode 100755 index 000000000..8e636ee91 Binary files /dev/null and b/doc/salome/GEOM/pics/sectionsn.png differ diff --git a/doc/salome/GEOM/pics/shellsn.png b/doc/salome/GEOM/pics/shellsn.png new file mode 100755 index 000000000..c7f22f323 Binary files /dev/null and b/doc/salome/GEOM/pics/shellsn.png differ diff --git a/doc/salome/GEOM/pics/solidsn.png b/doc/salome/GEOM/pics/solidsn.png new file mode 100755 index 000000000..297fc068c Binary files /dev/null and b/doc/salome/GEOM/pics/solidsn.png differ diff --git a/doc/salome/GEOM/pics/sphere1.png b/doc/salome/GEOM/pics/sphere1.png new file mode 100755 index 000000000..377f1c9ce Binary files /dev/null and b/doc/salome/GEOM/pics/sphere1.png differ diff --git a/doc/salome/GEOM/pics/sphere2.png b/doc/salome/GEOM/pics/sphere2.png new file mode 100755 index 000000000..dd2cadb1f Binary files /dev/null and b/doc/salome/GEOM/pics/sphere2.png differ diff --git a/doc/salome/GEOM/pics/spheres.png b/doc/salome/GEOM/pics/spheres.png new file mode 100755 index 000000000..2b79050f0 Binary files /dev/null and b/doc/salome/GEOM/pics/spheres.png differ diff --git a/doc/salome/GEOM/pics/supp_int_wires1.png b/doc/salome/GEOM/pics/supp_int_wires1.png new file mode 100755 index 000000000..5f760560e Binary files /dev/null and b/doc/salome/GEOM/pics/supp_int_wires1.png differ diff --git a/doc/salome/GEOM/pics/supp_int_wires2.png b/doc/salome/GEOM/pics/supp_int_wires2.png new file mode 100755 index 000000000..e6dc3142a Binary files /dev/null and b/doc/salome/GEOM/pics/supp_int_wires2.png differ diff --git a/doc/salome/GEOM/pics/suppress_faces1.png b/doc/salome/GEOM/pics/suppress_faces1.png new file mode 100755 index 000000000..7534ebeee Binary files /dev/null and b/doc/salome/GEOM/pics/suppress_faces1.png differ diff --git a/doc/salome/GEOM/pics/suppress_faces2.png b/doc/salome/GEOM/pics/suppress_faces2.png new file mode 100755 index 000000000..d38a4add3 Binary files /dev/null and b/doc/salome/GEOM/pics/suppress_faces2.png differ diff --git a/doc/salome/GEOM/pics/torus1.png b/doc/salome/GEOM/pics/torus1.png new file mode 100755 index 000000000..28e18afa0 Binary files /dev/null and b/doc/salome/GEOM/pics/torus1.png differ diff --git a/doc/salome/GEOM/pics/torus2.png b/doc/salome/GEOM/pics/torus2.png new file mode 100755 index 000000000..8877f1c37 Binary files /dev/null and b/doc/salome/GEOM/pics/torus2.png differ diff --git a/doc/salome/GEOM/pics/toruses.png b/doc/salome/GEOM/pics/toruses.png new file mode 100755 index 000000000..721bae271 Binary files /dev/null and b/doc/salome/GEOM/pics/toruses.png differ diff --git a/doc/salome/GEOM/pics/transformation1.png b/doc/salome/GEOM/pics/transformation1.png new file mode 100755 index 000000000..8dbf8fe11 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation1.png differ diff --git a/doc/salome/GEOM/pics/transformation10.png b/doc/salome/GEOM/pics/transformation10.png new file mode 100755 index 000000000..0847a5e03 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation10.png differ diff --git a/doc/salome/GEOM/pics/transformation11.png b/doc/salome/GEOM/pics/transformation11.png new file mode 100755 index 000000000..b78acec2e Binary files /dev/null and b/doc/salome/GEOM/pics/transformation11.png differ diff --git a/doc/salome/GEOM/pics/transformation2.png b/doc/salome/GEOM/pics/transformation2.png new file mode 100755 index 000000000..569752740 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation2.png differ diff --git a/doc/salome/GEOM/pics/transformation3.png b/doc/salome/GEOM/pics/transformation3.png new file mode 100755 index 000000000..96a1f1e36 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation3.png differ diff --git a/doc/salome/GEOM/pics/transformation4.png b/doc/salome/GEOM/pics/transformation4.png new file mode 100755 index 000000000..5b1775686 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation4.png differ diff --git a/doc/salome/GEOM/pics/transformation5.png b/doc/salome/GEOM/pics/transformation5.png new file mode 100755 index 000000000..8d1cf9254 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation5.png differ diff --git a/doc/salome/GEOM/pics/transformation6.png b/doc/salome/GEOM/pics/transformation6.png new file mode 100755 index 000000000..3e3828bd8 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation6.png differ diff --git a/doc/salome/GEOM/pics/transformation7.png b/doc/salome/GEOM/pics/transformation7.png new file mode 100755 index 000000000..03a16fe01 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation7.png differ diff --git a/doc/salome/GEOM/pics/transformation8.png b/doc/salome/GEOM/pics/transformation8.png new file mode 100755 index 000000000..77d030385 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation8.png differ diff --git a/doc/salome/GEOM/pics/transformation9.png b/doc/salome/GEOM/pics/transformation9.png new file mode 100755 index 000000000..c7f6194d3 Binary files /dev/null and b/doc/salome/GEOM/pics/transformation9.png differ diff --git a/doc/salome/GEOM/pics/translationsn1.png b/doc/salome/GEOM/pics/translationsn1.png new file mode 100755 index 000000000..42e008cb3 Binary files /dev/null and b/doc/salome/GEOM/pics/translationsn1.png differ diff --git a/doc/salome/GEOM/pics/translationsn2.png b/doc/salome/GEOM/pics/translationsn2.png new file mode 100755 index 000000000..01d695937 Binary files /dev/null and b/doc/salome/GEOM/pics/translationsn2.png differ diff --git a/doc/salome/GEOM/pics/transparencysn.png b/doc/salome/GEOM/pics/transparencysn.png new file mode 100755 index 000000000..0b3638ed1 Binary files /dev/null and b/doc/salome/GEOM/pics/transparencysn.png differ diff --git a/doc/salome/GEOM/pics/vector1.png b/doc/salome/GEOM/pics/vector1.png new file mode 100755 index 000000000..46e3b20f3 Binary files /dev/null and b/doc/salome/GEOM/pics/vector1.png differ diff --git a/doc/salome/GEOM/pics/vector2.png b/doc/salome/GEOM/pics/vector2.png new file mode 100755 index 000000000..bb5c64c56 Binary files /dev/null and b/doc/salome/GEOM/pics/vector2.png differ diff --git a/doc/salome/GEOM/pics/vectors.png b/doc/salome/GEOM/pics/vectors.png new file mode 100755 index 000000000..bb8e7c5ab Binary files /dev/null and b/doc/salome/GEOM/pics/vectors.png differ diff --git a/doc/salome/GEOM/pics/wiresn.png b/doc/salome/GEOM/pics/wiresn.png new file mode 100755 index 000000000..623ae3b58 Binary files /dev/null and b/doc/salome/GEOM/pics/wiresn.png differ diff --git a/doc/salome/GEOM/pics/workplane4.png b/doc/salome/GEOM/pics/workplane4.png new file mode 100755 index 000000000..1f9dab5fb Binary files /dev/null and b/doc/salome/GEOM/pics/workplane4.png differ diff --git a/doc/salome/GEOM/pics/workplane5.png b/doc/salome/GEOM/pics/workplane5.png new file mode 100755 index 000000000..a20eb6021 Binary files /dev/null and b/doc/salome/GEOM/pics/workplane5.png differ diff --git a/doc/salome/GEOM/pics/workplane6.png b/doc/salome/GEOM/pics/workplane6.png new file mode 100755 index 000000000..5e5134821 Binary files /dev/null and b/doc/salome/GEOM/pics/workplane6.png differ diff --git a/doc/salome/GEOM/pipe_creation.htm b/doc/salome/GEOM/pipe_creation.htm new file mode 100755 index 000000000..76df0d948 --- /dev/null +++ b/doc/salome/GEOM/pipe_creation.htm @@ -0,0 +1,140 @@ + + + + + +Pipe Creation + + + + + + + + + + + +

    Pipe Construction

    + +

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

    + +

     

    + +

    To create an extruded Pipe shape, + you need to define the Base Object (vertex, edge, wire, face or shell), which will be extruded and the Path Object (edge, + face or shell) along which the Base Object will be extruded.

    + +

    The + Result of the operation will be a + GEOM_Object (edge, face, solid or compsolid).

    + +

     

    + +

    TUI Command: + geompy.MakePipe(baseShape, pathShape) +

    + +

    Arguments: + Name + 1 shape (vertex, edge, wire, face or shell) serving as base object + + 1 shape (edge, face or shell) for definition of the path.

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

    Our TUI Scripts provide you with useful examples + of creation of Complex Geometric + Objects.

    + +

     

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/plane.htm b/doc/salome/GEOM/plane.htm new file mode 100755 index 000000000..742dffc57 --- /dev/null +++ b/doc/salome/GEOM/plane.htm @@ -0,0 +1,196 @@ + + + + + +Plane + + + + + + + + + + + +

    Plane

    + +

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

    + +

     

    + +

    There are three algorithms to create + a point in the 3D space.

    + +

    The Result of + each operation will be a GEOM_Object + (face).

    + +

     

    + +

    Firstly, you can define a Plane + by a Point through which  the + plane passes, a Vector giving + a normal of the plane and a Size of the + Plane (size of a side of quadrangle face, representing the plane).

    + +

    TUI + Command: geompy.MakePlane(Point, + Vector, TrimSize)

    + +

    Arguments: Name + + 1 vertex + 1 vector  + + 1 value (to define the size of the plane).

    + +

    + +

     

    + +

    Secondly, you can define a Plane + by three Points through which +  the plane + passes.

    + +

    TUI + Command: geompy.MakePlaneThreePnt(Point1, + Point2, Point3, TrimSize)

    + +

    Arguments: + Name + 1 vertex + 3 points (for + the direction) + 1 value (to define the size of the plane).

    + +

     

    + +

    + +

     

    + +

    Finally, you can define a Plane, + similar to the existing one, but with another size of representing face. +

    + +

    TUI + Command: geompy.MakePlaneFace(Face, TrimSize)

    + +

    Arguments: + Name + 1 selection + 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/GEOM/point.htm b/doc/salome/GEOM/point.htm new file mode 100755 index 000000000..1618af626 --- /dev/null +++ b/doc/salome/GEOM/point.htm @@ -0,0 +1,193 @@ + + + + + +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 and + 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/GEOM/primitives.htm b/doc/salome/GEOM/primitives.htm new file mode 100755 index 000000000..38218aa9c --- /dev/null +++ b/doc/salome/GEOM/primitives.htm @@ -0,0 +1,362 @@ + + + + + +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 study

    + +

    id_box1 = geompy.addToStudy(box1,"Box1")

    + +

    id_box2 = geompy.addToStudy(box2,"Box2")

    + +

    id_box3 = geompy.addToStudy(box3,"Box3")

    + +

     

    + +

    # display 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 vertex and 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 study

    + +

    id_cone1 = geompy.addToStudy(cone1,"Cone1")

    + +

    id_cone2 = geompy.addToStudy(cone2,"Cone2")

    + +

     

    + +

    # display cones

    + +

    gg.createAndDisplayGO(id_cone1)

    + +

    gg.setDisplayMode(id_cone1,1)

    + +

    gg.createAndDisplayGO(id_cone2)

    + +

    gg.setDisplayMode(id_cone2,1) +

    + +

     

    + +

    Creation of a Sphere

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create 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 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 vertex and 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 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 vertex and 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 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/GEOM/propagate.htm b/doc/salome/GEOM/propagate.htm new file mode 100755 index 000000000..9fd1dd1be --- /dev/null +++ b/doc/salome/GEOM/propagate.htm @@ -0,0 +1,149 @@ + + + + + +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/GEOM/repairing_operations.htm b/doc/salome/GEOM/repairing_operations.htm new file mode 100755 index 000000000..2b48c2851 --- /dev/null +++ b/doc/salome/GEOM/repairing_operations.htm @@ -0,0 +1,1069 @@ + + + + + +Repairing Operations + + + + + + + + + + + +

    Repairing Operations

    + +

    Shape Processing

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create vertices, edge, arc, wire, face and 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 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 Shape

    + +

    Operators = ["FixShape"]

    + +

    Parameters = ["FixShape.Tolerance3d"]

    + +

    Values = ["1e-7"]

    + +

    PS = geompy.ProcessShape(theShape, + Operators, Parameters, Values)

    + +

     

    + +

    # check 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 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 box

    + +

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

    + +

     

    + +

    # IDList for suppress faces

    + +

    sup_faces = []

    + +

    sup_faces = geompy.SubShapeAllSorted(box, + geompy.ShapeType["FACE"])

    + +

     

    + +

    # get sub-shape indexes

    + +

    f1_id = geompy.GetSubShapeID(box, + sup_faces[3])

    + +

     

    + +

    # remove faces from the given object (shape)

    + +

    result = geompy.SuppressFaces(box, + [f1_id])

    + +

     

    + +

    # add objects in study

    + +

    id_box = geompy.addToStudy(box, + "Box")

    + +

    id_result = geompy.addToStudy(result, + "Result")

    + +

     

    + +

    # display 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 arc

    + +

    arc = geompy.MakeArc(py1, + pz, px)

    + +

     

    + +

    # create 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 study

    + +

    id_wire = geompy.addToStudy(wire, + "Wire")

    + +

    id_wire_close = geompy.addToStudy(wire_close, + "Wire close")

    + +

     

    + +

    # display results

    + +

    gg.createAndDisplayGO(id_wire)

    + +

    gg.createAndDisplayGO(id_wire_close) +

    + +

     

    + +

    Suppress Internal Wires

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create vertex and vector

    + +

    p1 = geompy.MakeVertex(55, + 65, 50)

    + +

    p2 = geompy.MakeVertex(55, +  0, 50)

    + +

    v = geompy.MakeVector(p1, + p2)

    + +

     

    + +

    # create cylinder

    + +

    height = 100

    + +

    radius1 = 40

    + +

    cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

    + +

     

    + +

    # create box

    + +

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

    + +

     

    + +

    # make cut

    + +

    cut = geompy.MakeCut(box, + cylinder)

    + +

     

    + +

    # suppress all internal wires

    + +

    result = geompy.SuppressInternalWires(cut, + [])

    + +

     

    + +

    # add objects in study

    + +

    id_cut = geompy.addToStudy(cut, + "Cut")

    + +

    id_result = geompy.addToStudy(result, + "Result")

    + +

     

    + +

    # display 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 vertex and vector

    + +

    p1 = geompy.MakeVertex(35, + 35, 0)

    + +

    p2 = geompy.MakeVertex(35, + 35, 50)

    + +

    v = geompy.MakeVector(p1, + p2)

    + +

     

    + +

    # create cylinder

    + +

    height = 20

    + +

    radius1 = 20

    + +

    cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

    + +

     

    + +

    # create cone

    + +

    cone = geompy.MakeCone(p1, + v, 70, 0, 80)

    + +

     

    + +

    # 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[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 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 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 study

    + +

    id_face = geompy.addToStudy(face, + "Face")

    + +

    id_face_rot = geompy.addToStudy(face_rot, + "Face rotation")

    + +

    id_sewing = geompy.addToStudy(sewing, + "Sewing")

    + +

     

    + +

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

    + +

    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 study

    + +

    id_face = geompy.addToStudy(face, + "Face")

    + +

    id_face_rot = geompy.addToStudy(face_rot, + "Face rotation")

    + +

    id_sewing = geompy.addToStudy(sewing, + "Sewing")

    + +

     

    + +

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

    + +

     

    + +

    Add Point on Edge

    + +

    import + geompy

    + +

    import salome

    + +

     

    + +

    # create vertices

    + +

    p1 = geompy.MakeVertex(0,0,50)

    + +

    p2 = geompy.MakeVertex(60,0,50)

    + +

     

    + +

    # make edge

    + +

    edge = geompy.MakeEdge(p1, + p2) #geompy.GetSubShape(box, edge_ind)

    + +

     

    + +

    # divide edge

    + +

    divide = geompy.DivideEdge(edge, + -1, 0.5, 0)

    + +

     

    + +

    # add objects in 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 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])

    + +

     

    + +

    # import from *.brep

    + +

    ImportBREP = geompy.ImportBREP("/tmp/flight_solid.brep")

    + +

     

    + +

    # get face

    + +

    faces = geompy.SubShapeAllSorted(ImportBREP, + geompy.ShapeType["FACE"])

    + +

     

    + +

    # get 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 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 imported object + in study

    + +

    id_ImportBREP = geompy.addToStudy(ImportBREP, + "ImportBREP")

    + +

    salome.sg.updateObjBrowser(1) +

    + +

     

    + +

    Check Free Faces

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create vertex and vector

    + +

    p1 = geompy.MakeVertex(35, + 35, 0)

    + +

    p2 = geompy.MakeVertex(35, + 35, 50)

    + +

    v = geompy.MakeVector(p1, + p2)

    + +

     

    + +

    # create cylinder

    + +

    cylinder = geompy.MakeCone(p1, + v, 30, 20, 20)

    + +

     

    + +

    # create 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 specified wire

    + +

    result = geompy.GetFreeFacesIDs(cut_without_f_2)

    + +

    print "A number + of free faces is ", len(result)

    + +

     

    + +

    # add objects in 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 results

    + +

    gg.createAndDisplayGO(id_cut_without_f_2)

    + +

    gg.setDisplayMode(id_cut_without_f_2,1) +

    + + + + diff --git a/doc/salome/GEOM/revolution.htm b/doc/salome/GEOM/revolution.htm new file mode 100755 index 000000000..f19dcf81a --- /dev/null +++ b/doc/salome/GEOM/revolution.htm @@ -0,0 +1,147 @@ + + + + + +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/GEOM/rotation.htm b/doc/salome/GEOM/rotation.htm new file mode 100755 index 000000000..cc5464188 --- /dev/null +++ b/doc/salome/GEOM/rotation.htm @@ -0,0 +1,155 @@ + + + + + +Rotation + + + + + + + + + + + + +

    Rotation

    + +

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

    + +

     

    + +

    This operation rotates the initial shape. To + produce a Rotation you need to + define an Object  to + be rotated, an Axis of rotation + and an Angle of rotation.

    + +

    Reverse + checkbox allows to specify the direction of rotation.

    + +

    Create a copy + checkbox allows to keep the initial object, otherwise it will be + removed.

    + +

     

    + +

    The + Result will be any  GEOM_Object.

    + +

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

    + +

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

    + +

     

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

      

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif new file mode 100755 index 000000000..0ec8b678c Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif new file mode 100755 index 000000000..aff608b43 Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif new file mode 100755 index 000000000..1a0f0f96d Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif new file mode 100755 index 000000000..b364ba7c2 Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif new file mode 100755 index 000000000..587e81bf9 Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif new file mode 100755 index 000000000..bda961eb7 Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif differ diff --git a/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif new file mode 100755 index 000000000..dd4046ce4 Binary files /dev/null and b/doc/salome/GEOM/salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif differ diff --git a/doc/salome/GEOM/scale_transform.htm b/doc/salome/GEOM/scale_transform.htm new file mode 100755 index 000000000..094686751 --- /dev/null +++ b/doc/salome/GEOM/scale_transform.htm @@ -0,0 +1,147 @@ + + + + + +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/GEOM/section.htm b/doc/salome/GEOM/section.htm new file mode 100755 index 000000000..e5681eef6 --- /dev/null +++ b/doc/salome/GEOM/section.htm @@ -0,0 +1,150 @@ + + + + + +Section + + + + + + + + + + + + +

    Section

    + +

    To produce + a Section in the Main Menu select + Operations - > Boolean - > Section

    + +

     

    + +

    This + operation creates the section between 2 shapes.

    + +

     

    + +

    The + Result will be a GEOM_Object + (COMPOUND).

    + +

    TUI Command: +  geompy.MakeSection(s1, + s2)

    + +

    Arguments: + Name + 2 shapes.

    + +

     

    + +

     

    + +

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

      Our TUI Scripts + provide you with useful examples of the use of Boolean + Operations.

    + +

     

    + + + + diff --git a/doc/salome/GEOM/sewing.htm b/doc/salome/GEOM/sewing.htm new file mode 100755 index 000000000..abac91a38 --- /dev/null +++ b/doc/salome/GEOM/sewing.htm @@ -0,0 +1,143 @@ + + + + + +Sewing + + + + + + + + + + + +

    Sewing

    + +

    To produce + a Sewing operation in the Main + Menu select Repair - > Sewing.

    + +

     

    + +

    This + operation allows to sew several  shapes.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command : + geompy.MakeSewing(ListOfShape, Precision), + where ListOfShape is list of shapes to be sewed, Precision is a precision + for sewing.

    + +

     

    + +

    + +

     

    + +

    Arguments: + Name + 1 or more shapes + 1 value (sew precision).

    + +

    Detect + button allows to display the number of free boundaries in your + shape:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/shape_processing.htm b/doc/salome/GEOM/shape_processing.htm new file mode 100755 index 000000000..ba0c19f7f --- /dev/null +++ b/doc/salome/GEOM/shape_processing.htm @@ -0,0 +1,302 @@ + + + + + +Shape Processing + + + + + + + + + + + +

    Shape Processing

    + +

    To produce + a Shape Processing operation in + the Main Menu select Repair - > + Shape Processing.

    + +

     

    + +

    This operation processes a shape using various + operators.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.ProcessShape(Shape, Operators, + Parameters, Values), where Shape is a processed shape, Operators + is a list of names of operators ("FixShape", "SplitClosedFaces", + etc.), Parameters is a list of names of parameters (“FixShape.Tolerance3d”, + etc), Values is a list of values of parameters in the same order as the + Parameters list.

    + +

     

    + +

    Arguments: + 1 or more shapes.

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

    1

    +

    SplitAngle – + this operator is intended for splitting faces based on conical surfaces, + surfaces of revolution and cylindrical surfaces by angle

    +

    SplitAngle.Angle – angle (in radians) defining + size of result segments.

    +

    SplitAngle.MaxTolerance – maximal possible + tolerance on result shape

    +

    2

    +

    SplitClosedFaces + – this operator is intended for dividing all closed faces in the shape + according to the number of points.

    +

    SplitClosedFaces.NbSplitPoints – number of + points for cutting each closed faces.

    +

    3

    +

    FixFaceSize + – this operator is intended for removing small faces (case of the spot + face and strip face)

    +

    FixFaceSize.Tolerance – work tolerance defining + which faces will be removed.

    +

    4

    +

    DropSmallEdges + – this operator is intended for removing small edges or merging with neigbour. +  

    +

    DropSmallEdges.Tolerance3d – work tolerance + for detection and removing small edges.

    +

    5

    +

    BsplineRestriction + –this operator is intended for re-approximation BSplines curves and surfaces + or conversion of the curves and surfaces to BSplines with specified parameters. +

    +

    BSplineRestriction.SurfaceMode - mode of approximation + of surfaces if restriction is necessary

    +

    BSplineRestriction.Curve3dMode -mode of conversion + of any 3D curve to BSpline and approximation.

    +

    BSplineRestriction.Curve2dMode - mode of conversion + of any 2D curve to BSpline and approximation

    +

    BSplineRestriction.Tolerance3d – work tolerance + for definition of the possibility of the approximation of the surfaces + and 3D curves with specified parameters.

    +

    BSplineRestriction.Tolerance2d - work tolerance + for definition of the possibility of the approximation of the 2D curves + with specified parameters.

    +

    BSplineRestriction.Continuity3d – desired continuity + of the resultant surfaces and 3D curves.

    +

    BSplineRestriction.Continuity2d – desired continuity + of the resultant 2D curves.

    +

    BSplineRestriction.RequiredDegree - required + degree of the resultant BSplines

    +

    BSplineRestriction.RequiredNbSegments - required + maximum number of segments of resultant BSplines.

    +

    6

    +

    SplitContinuity + – this operator is intended for splitting shapes to achieve continuities + of curves and surfaces less than specified ones.

    +

    SplitContinuity.Tolerance3d - 3D tolerance + for correction of geometry.

    +

    SplitContinuity.SurfaceContinuity - required + continuity for surfaces.

    +

    SplitContinuity.CurveContinuity - required + continuity for curves.

    +

    7

    +

    ToBezier - this + operator is intended for conversion of the curves and surfaces of the + all types into Bezier curves and surfaces.

    +

    ToBezier.SurfaceMode - mode of conversion of + the surfaces.

    +

    ToBezier.Curve3dMode – mode for conversion + of the 3D curves.

    +

    ToBezier.Curve2dMode – mode for conversion + of the 2D curves.

    +

    ToBezier.MaxTolerance – max possible tolerance + on the resultant shape.

    +

    8

    +

    FixShape – this + operator is intended for correction of the invalid shapes

    +

    FixShape.Tolerance3d – work tolerance for detection + of the problems and correction of them.

    +

    FixShape.MaxTolerance3d - maximal possible + tolerance of the shape after correction.

    +

    9

    +

    SameParameter + – this operator is intended for fixing edges having not same parameter + 2D and 3D curves.

    +

    SameParameter.Tolerance3d – tolerance for detection + and fix problems.

    + +

     

    + +

     

    + +

    Dialog Box:

    + +

     

    + +

     

    + +

     

    + +

    Example:

    + +

     

    + +

    Shape before applying Shape Processing (FixShape + operator).

    + +

     

    + +

       

    + +

     

    + +

    The + same shape after applying Shape Processing.

    + +

     

    + +

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/shell.htm b/doc/salome/GEOM/shell.htm new file mode 100755 index 000000000..df6d6ee37 --- /dev/null +++ b/doc/salome/GEOM/shell.htm @@ -0,0 +1,132 @@ + + + + + +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/GEOM/sketcher.htm b/doc/salome/GEOM/sketcher.htm new file mode 100755 index 000000000..c90905659 --- /dev/null +++ b/doc/salome/GEOM/sketcher.htm @@ -0,0 +1,215 @@ + + + + + +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.

    + +

     

    + +

    Result: 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 VX, + 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/GEOM/sketcher_tui.htm b/doc/salome/GEOM/sketcher_tui.htm new file mode 100755 index 000000000..6ba4e5ff5 --- /dev/null +++ b/doc/salome/GEOM/sketcher_tui.htm @@ -0,0 +1,176 @@ + + + + + +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 vector with two points

    + +

    vector_arc = geompy.MakeVector(p1, + p3)

    + +

     

    + +

    # create arc with three points

    + +

    arc = geompy.MakeArc(p1, + p2, p3)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vector_arc, + arc])

    + +

     

    + +

    # create planar face

    + +

    isPlanarWanted = 1

    + +

    face = geompy.MakeFace(wire, + isPlanarWanted)

    + +

     

    + +

    # create 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 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 study

    + +

    id_face = geompy.addToStudy(face,"Face")

    + +

    id_sketcher1 = geompy.addToStudy(sketcher1,"Sketcher1")

    + +

    id_sketcher2 = geompy.addToStudy(sketcher2,"Sketcher2")

    + +

     

    + +

    # display first sketcher and 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/GEOM/solid.htm b/doc/salome/GEOM/solid.htm new file mode 100755 index 000000000..7e71bd580 --- /dev/null +++ b/doc/salome/GEOM/solid.htm @@ -0,0 +1,133 @@ + + + + + +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/GEOM/sphere.htm b/doc/salome/GEOM/sphere.htm new file mode 100755 index 000000000..f2b200bde --- /dev/null +++ b/doc/salome/GEOM/sphere.htm @@ -0,0 +1,160 @@ + + + + + +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 + (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/GEOM/suppress_faces.htm b/doc/salome/GEOM/suppress_faces.htm new file mode 100755 index 000000000..a67a8a697 --- /dev/null +++ b/doc/salome/GEOM/suppress_faces.htm @@ -0,0 +1,135 @@ + + + + + +Suppress Faces + + + + + + + + + + + +

    Suppress Faces

    + +

    To produce + a Suppress Faces operation in + the Main Menu select Repair - > Suppress + Faces.

    + +

     

    + +

    This operation suppresses a face of a shape. + This operation is available in OCC Viewer + only.

    + +

     

    + +

    Result: GEOM_Object + (ListOfGeomShapes).

    + +

    TUI Command: + geompy.SuppressFaces(Shape, ListOfID), + where Shape is a shape to be processed, ListOfID is a list of faces ID's + to be removed.

    + +

    Arguments: + Name + Faces which should be removed (you can select them in the 3D viewer).

    + +

     

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

     

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/suppress_holes.htm b/doc/salome/GEOM/suppress_holes.htm new file mode 100755 index 000000000..3206a63ed --- /dev/null +++ b/doc/salome/GEOM/suppress_holes.htm @@ -0,0 +1,149 @@ + + + + + +Suppress Holes + + + + + + + + + + + +

    Suppress Holes

    + +

    To Suppress Holes in the Main Menu select + Repair - > Suppress Holes.

    + +

     

    + +

    This operation removes holes on a selected shape. This + operation is available in OCC + Viewer only.

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.SuppressHoles(Shape, ListOfWireID), + where Shape is a shape where holes must be removed, ListOfWireID is a + list of wire sub shapes IDÂ’s. If it is empty, then all holes are removed.

    + +

     

    + +

    + +

     

    + +

    Arguments: Name + + 1 shape + Wires which should be removed.

    + +

    Remove all + holes checkbox allows to fill all holes of a definite shape.

    + +

    Detect button + allows to display the number of free boundaries in your shape:

    + +

     

    + +

    + +

     

    + +

      

    + +

    Example:

    + +

     

    + +

       

    + +

     

    + +

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

    + +

     

    + +

     

    + + + + diff --git a/doc/salome/GEOM/suppress_internal_wires.htm b/doc/salome/GEOM/suppress_internal_wires.htm new file mode 100755 index 000000000..463cd206a --- /dev/null +++ b/doc/salome/GEOM/suppress_internal_wires.htm @@ -0,0 +1,159 @@ + + + + + +Suppress Internal Wires + + + + + + + + + + + +

    Suppress Internal + Wires

    + +

    To Suppress Internal Wires in the Main + Menu select Repair - > Suppress Internal + Wires.

    + +

     

    + +

    This operation removes all internal wires or + specified internal wires from user specified faces. This operation is + available in OCC Viewer only. +

    + +

     

    + +

    Result: GEOM_Object.

    + +

     

    + +

    TUI Command: + geompy.SuppressInternalWires(Shape, + Wires), where Shape is a shape where wires are to be removed, Wires + is a list of wires IDÂ’s to be removed; if the list is empty then all internal + wires are removed.

    + +

     

    + +

     

    + +

    Arguments:

    + +
      + +
    • Name of the resulting + object

    • + +
    • User specified face

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

    • +
    + +

     

    + +

    Dialog Box:

    + +

     

    + +

    + +

     

    + +

    Example:

    + +

     

    + +

       

    + +

     

    + +

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

    + +

     

    + + + + diff --git a/doc/salome/GEOM/transformation_operations.htm b/doc/salome/GEOM/transformation_operations.htm new file mode 100755 index 000000000..5cf40c1c9 --- /dev/null +++ b/doc/salome/GEOM/transformation_operations.htm @@ -0,0 +1,1069 @@ + + + + + +Transformation Operations + + + + + + + + + + + +

    Transformation Operations

    + +

    Translation

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create vertex and 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 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 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 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 vertex and 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 cylinder

    + +

    height = 35

    + +

    radius1 = 20

    + +

    cylinder = geompy.MakeCylinder(p1, + v, radius1, height)

    + +

     

    + +

    # rotate the given object around the given axis on the given angle

    + +

    rotation = geompy.MakeRotation(cylinder, + vr, math.pi)

    + +

     

    + +

    # add objects in study

    + +

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

    + +

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

    + +

    id_rotation = geompy.addToStudy(rotation, + "Rotation")

    + +

     

    + +

    # display results

    + +

    gg.createAndDisplayGO(id_vr)

    + +

    gg.createAndDisplayGO(id_cylinder)

    + +

    gg.setDisplayMode(id_cylinder,1)

    + +

    gg.createAndDisplayGO(id_rotation)

    + +

    gg.setDisplayMode(id_rotation,1) +

    + +

     

    + +

    Modify Location

    + +

    import geompy

    + +

    import salome

    + +

    import math

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create vertex and vector

    + +

    p1 = geompy.MakeVertex(10, + 40, 0)

    + +

    p2 = geompy.MakeVertex( + 0,  0, 50)

    + +

    v = geompy.MakeVector(p1, + p2)

    + +

     

    + +

    # create 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 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 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 box

    + +

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

    + +

     

    + +

    # create an object, symmetrical to the given one relatively the given + plane

    + +

    p1 = geompy.MakeVertex( + 0, 25,  0)

    + +

    p2 = geompy.MakeVertex( + 5, 25,  0)

    + +

    p3 = geompy.MakeVertex( + 0,-30, 40)

    + +

    plane = geompy.MakePlaneThreePnt(p1, + p2, p3, 1000.)

    + +

    mirror1 = geompy.MakeMirrorByPlane(box, + plane)

    + +

     

    + +

    # create an object, symmetrical to the given one relatively the given + axis

    + +

    p4 = geompy.MakeVertex( + 210, 210, -20)

    + +

    p5 = geompy.MakeVertex( + 210, 210, 220)

    + +

    axis = geompy.MakeVector(p4, + p5)

    + +

    mirror2 = geompy.MakeMirrorByAxis(box, + axis)

    + +

     

    + +

    # create an object, symmetrical to the given one relatively the given + point

    + +

    mirror3 = geompy.MakeMirrorByPoint(box, + p4)

    + +

     

    + +

    # add objects in 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 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 box and 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 study

    + +

    id_box = geompy.addToStudy(box, + "Box")

    + +

    id_scale = geompy.addToStudy(scale, + "Scale")

    + +

     

    + +

    # display results

    + +

    gg.createAndDisplayGO(id_box)

    + +

    gg.setDisplayMode(id_box,1)

    + +

    gg.createAndDisplayGO(id_scale)

    + +

    gg.setDisplayMode(id_scale,1) +

    + +

     

    + +

    Offset Surface

    + +

    import geompy

    + +

    import salome

    + +

    gg = salome.ImportComponentGUI("GEOM")

    + +

     

    + +

    # create box and sphere

    + +

    box = geompy.MakeBox(20, + 20, 20, 200, 200, 200)

    + +

     

    + +

    # create new object as offset of the given one

    + +

    offset = geompy.MakeOffset(box, + 70.)

    + +

     

    + +

    # add objects in study

    + +

    id_box = geompy.addToStudy(box, + "Box")

    + +

    id_offset = geompy.addToStudy(offset, + "Offset")

    + +

     

    + +

    # display 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 arc

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vxy, + arc])

    + +

     

    + +

    # create planar face

    + +

    face = geompy.MakeFace(wire, + 1)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrismVecH(face, + vz, 20.0)

    + +

     

    + +

    # translate the given object along the given vector a given number times

    + +

    tr1d = geompy.MakeMultiTranslation1D(prism, + vtr1d, 20, 4)

    + +

     

    + +

    # consequently apply two specified translations to the object specified + number of times

    + +

    tr2d = geompy.MakeMultiTranslation2D(prism, + vtr1d, 20, 4, vtr2d, 80, 3)

    + +

     

    + +

    # add objects in study

    + +

    id_prism = geompy.addToStudy(prism,"Prism")

    + +

    id_tr1d = geompy.addToStudy(tr1d,"Translation + 1D")

    + +

    id_tr2d = geompy.addToStudy(tr2d,"Translation + 2D")

    + +

     

    + +

    # display prism and 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 arc

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vxy, + arc])

    + +

     

    + +

    # create planar face

    + +

    face = geompy.MakeFace(wire, + 1)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrismVecH(face, + vz, 20.0)

    + +

     

    + +

    # rotate the given object around the given axis on the given angle a + given number times

    + +

    rot1d = geompy.MultiRotate1D(prism, + vrot1d, 4)

    + +

     

    + +

    # rotate the given object around the given axis on the given angle a + given number times

    + +

    # and multi-translate each rotation result

    + +

    rot2d = geompy.MultiRotate2D(prism, + vrot1d, 60, 4, 50, 5)

    + +

     

    + +

    # add objects in study

    + +

    id_prism = geompy.addToStudy(prism,"Prism")

    + +

    id_rot1d = geompy.addToStudy(rot1d,"Rotation + 1D")

    + +

    id_rot2d = geompy.addToStudy(rot2d,"Rotation + 2D")

    + +

     

    + +

    # display prism and 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 arc

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vxy, + arc])

    + +

     

    + +

    # create planar face

    + +

    face = geompy.MakeFace(wire, + 1)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrismVecH(face, + vz, 100.0)

    + +

     

    + +

    # get IDList for 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 fillet on the specified edges of the given shape

    + +

    fillet = geompy.MakeFillet(prism, + radius, ShapeTypeEdge, IDlist_e)

    + +

     

    + +

    # make fillet on all edges of the given shape

    + +

    filletall = geompy.MakeFilletAll(prism, + radius)

    + +

     

    + +

    # add objects in study

    + +

    id_prism = geompy.addToStudy(prism,"Prism")

    + +

    id_fillet = geompy.addToStudy(fillet,"Fillet")

    + +

    id_filletall = geompy.addToStudy(filletall,"Fillet + all")

    + +

     

    + +

    # display prism and 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 arc

    + +

    arc = geompy.MakeArc(py, + pz, px)

    + +

     

    + +

    # create wire

    + +

    wire = geompy.MakeWire([vxy, + arc])

    + +

     

    + +

    # create planar face

    + +

    face = geompy.MakeFace(wire, + 1)

    + +

     

    + +

    # create prism

    + +

    prism = geompy.MakePrismVecH(face, + vz, 100.0)

    + +

     

    + +

    # get IDList for 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 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 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 prism and 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/GEOM/translation.htm b/doc/salome/GEOM/translation.htm new file mode 100755 index 000000000..83cc3bfff --- /dev/null +++ b/doc/salome/GEOM/translation.htm @@ -0,0 +1,187 @@ + + + + + +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/GEOM/turus.htm b/doc/salome/GEOM/turus.htm new file mode 100755 index 000000000..4ee8a4f4b --- /dev/null +++ b/doc/salome/GEOM/turus.htm @@ -0,0 +1,147 @@ + + + + + +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 centre 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/GEOM/vector.htm b/doc/salome/GEOM/vector.htm new file mode 100755 index 000000000..5a2000660 --- /dev/null +++ b/doc/salome/GEOM/vector.htm @@ -0,0 +1,151 @@ + + + + + +Vector + + + + + + + + + + + +

    Vector

    + +

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

    + +

     

    + +

    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 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/GEOM/webhelp.cab b/doc/salome/GEOM/webhelp.cab new file mode 100755 index 000000000..b942f642f Binary files /dev/null and b/doc/salome/GEOM/webhelp.cab differ diff --git a/doc/salome/GEOM/webhelp.jar b/doc/salome/GEOM/webhelp.jar new file mode 100755 index 000000000..53b266636 Binary files /dev/null and b/doc/salome/GEOM/webhelp.jar differ diff --git a/doc/salome/GEOM/whcsh_home.htm b/doc/salome/GEOM/whcsh_home.htm new file mode 100755 index 000000000..92ccd93b2 --- /dev/null +++ b/doc/salome/GEOM/whcsh_home.htm @@ -0,0 +1,600 @@ + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whcshdata.htm b/doc/salome/GEOM/whcshdata.htm new file mode 100755 index 000000000..9576ec08b --- /dev/null +++ b/doc/salome/GEOM/whcshdata.htm @@ -0,0 +1,87 @@ + + +GEOM reference manual + + + + + + + + + + diff --git a/doc/salome/GEOM/whdata/whftdata.js b/doc/salome/GEOM/whdata/whftdata.js new file mode 100755 index 000000000..071ae6fc7 --- /dev/null +++ b/doc/salome/GEOM/whdata/whftdata.js @@ -0,0 +1,25 @@ +// WebHelp 5.10.001 +var gTEA = new Array(); +function aTE(sTopicTitle, sTopicURL) +{ + var len = gTEA.length; + gTEA[len] = new topicEntry(sTopicTitle, sTopicURL); +} + +function topicEntry(sTopicTitle, sTopicURL) +{ + this.sTopicTitle = sTopicTitle; + this.sTopicURL = sTopicURL; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putFtsTData) + { + parent.putFtsTData(gTEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whftdata0.htm b/doc/salome/GEOM/whdata/whftdata0.htm new file mode 100755 index 000000000..78a9ccb88 --- /dev/null +++ b/doc/salome/GEOM/whdata/whftdata0.htm @@ -0,0 +1,104 @@ + + + + + + + + + + + diff --git a/doc/salome/GEOM/whdata/whfts.htm b/doc/salome/GEOM/whdata/whfts.htm new file mode 100755 index 000000000..623fb674a --- /dev/null +++ b/doc/salome/GEOM/whdata/whfts.htm @@ -0,0 +1,18 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whfts.js b/doc/salome/GEOM/whdata/whfts.js new file mode 100755 index 000000000..2b6678690 --- /dev/null +++ b/doc/salome/GEOM/whdata/whfts.js @@ -0,0 +1,40 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +var gaFileTopicMapping = new Array(); + +function fileMapping(sStartKey, sEndKey, sFileName) +{ + this.sStartKey = sStartKey; + this.sEndKey = sEndKey; + this.sFileName = sFileName; + this.aFtsKeys = null; +} + +function fileTopicMapping(nIdBegin, nIdEnd, sFileName) +{ + this.nBegin = nIdBegin; + this.nEnd = nIdEnd; + this.sFileName = sFileName; + this.aTopics = null; +} + + +function iWM(sStartKey, sEndKey, sFileName) +{ + gaFileMapping[gaFileMapping.length] = new fileMapping(sStartKey, sEndKey, sFileName); +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.ftsReady) + { + parent.ftsReady(gaFileMapping, gaFileTopicMapping); + } +} + +function iTM(nIdBegin, nIdEnd, sFileName) +{ + gaFileTopicMapping[gaFileTopicMapping.length] = new fileTopicMapping(nIdBegin, nIdEnd, sFileName); +} + +window.onload = window_OnLoad; diff --git a/doc/salome/GEOM/whdata/whfwdata.js b/doc/salome/GEOM/whdata/whfwdata.js new file mode 100755 index 000000000..e9e8bc6c1 --- /dev/null +++ b/doc/salome/GEOM/whdata/whfwdata.js @@ -0,0 +1,37 @@ +// WebHelp 5.10.001 +var gWEA = new Array(); +function aWE() +{ + var len = gWEA.length; + gWEA[len] = new ftsEntry(aWE.arguments); +} + +function ftsEntry(fn_arguments) +{ + if (fn_arguments.length && fn_arguments.length >= 1) + { + this.sItemName = fn_arguments[0]; + this.aTopics = null; + var nLen = fn_arguments.length; + if (nLen > 1) + { + this.aTopics = new Array(); + for (var i = 0; i < nLen - 1; i ++ ) + { + this.aTopics[i] = fn_arguments[i + 1]; + } + } + } +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putFtsWData) + { + parent.putFtsWData(gWEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whfwdata0.htm b/doc/salome/GEOM/whdata/whfwdata0.htm new file mode 100755 index 000000000..1314a91c3 --- /dev/null +++ b/doc/salome/GEOM/whdata/whfwdata0.htm @@ -0,0 +1,1260 @@ + + + + + + + + + + + diff --git a/doc/salome/GEOM/whdata/whgdata.js b/doc/salome/GEOM/whdata/whgdata.js new file mode 100755 index 000000000..77e0107f3 --- /dev/null +++ b/doc/salome/GEOM/whdata/whgdata.js @@ -0,0 +1,26 @@ +// WebHelp 5.10.001 +var gIEA = new Array(); +function aGE(sName, sDef) +{ + var len = gIEA.length; + gIEA[len] = new gloEntry(sName, sDef); +} + +function gloEntry(sName, sDef) +{ + this.sName = sName; + this.sDef = sDef; + this.nNKOff = 0; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putData) + { + parent.putData(gIEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whgdata0.htm b/doc/salome/GEOM/whdata/whgdata0.htm new file mode 100755 index 000000000..9d256b1a8 --- /dev/null +++ b/doc/salome/GEOM/whdata/whgdata0.htm @@ -0,0 +1,33 @@ + + + + + + + + + + + diff --git a/doc/salome/GEOM/whdata/whglo.htm b/doc/salome/GEOM/whdata/whglo.htm new file mode 100755 index 000000000..dc5a67786 --- /dev/null +++ b/doc/salome/GEOM/whdata/whglo.htm @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whglo.js b/doc/salome/GEOM/whdata/whglo.js new file mode 100755 index 000000000..e0519afcb --- /dev/null +++ b/doc/salome/GEOM/whdata/whglo.js @@ -0,0 +1,34 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +function fileMapping(sBK, sEK, sFileName, nNum) +{ + this.sBK = sBK; + this.sEK = sEK; + this.sFileName = sFileName; + this.aKs = null; + this.nNum = nNum; + this.oUsedItems = null; +} + + +function iFM(sBK, sEK, sFileName, nNum) +{ + var i = gaFileMapping.length; + gaFileMapping[i] = new fileMapping(sBK, sEK, sFileName, nNum); + if (i == 0) { + gaFileMapping[i].nTotal = nNum; + } + else { + gaFileMapping[i].nTotal = nNum + gaFileMapping[i - 1].nTotal; + } +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) + { + parent.projReady(gaFileMapping); + } +} + +window.onload = window_OnLoad; diff --git a/doc/salome/GEOM/whdata/whidata.js b/doc/salome/GEOM/whdata/whidata.js new file mode 100755 index 000000000..9f0eb15ed --- /dev/null +++ b/doc/salome/GEOM/whdata/whidata.js @@ -0,0 +1,89 @@ +// WebHelp 5.10.001 +// const strings +var gIEA = new Array(); +function aIE() +{ + var len = gIEA.length; + gIEA[len] = new indexEntry(aIE.arguments); +} + +function topic(sName, sURL) +{ + this.sName = sName; + this.sURL = sURL; +} + +function indexEntry(fn_arguments) +{ + if (fn_arguments.length && fn_arguments.length >= 3) + { + this.nType = fn_arguments[0]; + this.nPKOff = 0; + this.nNKOff = fn_arguments[1]; + this.sName = fn_arguments[2]; + this.aTopics = null; + var nLen = fn_arguments.length; + if (Math.floor(nLen / 2) * 2 == nLen) + { + this.sTarget = fn_arguments[3]; + if (nLen > 5) + { + this.aTopics = new Array(); + for (var i = 0; i < (nLen - 5)/2; i++) + { + this.aTopics[i] = new topic(fn_arguments[i * 2 + 4], fn_arguments[i * 2 + 5]); + } + } + + } + else + { + if (nLen > 4) + { + this.aTopics = new Array(); + for (var i = 0; i < (nLen - 4)/2; i++) + { + this.aTopics[i] = new topic(fn_arguments[i * 2 + 3], fn_arguments[i * 2 + 4]); + } + } + } + } +} + +function getIndexTopicMappingList(nItemIndex) +{ + var sTopics = ""; + if (gIEA.length > nItemIndex) + { + if (gIEA[nItemIndex].aTopics) + { + var i = 0; + var nLen = gIEA[nItemIndex].aTopics.length; + for (i = 0; i < nLen; i ++) + { + sTopics += "," + gIEA[nItemIndex].aTopics[i]; + } + } + } + return sTopics; +} + +function window_OnLoad() +{ + if (parent && parent != this) { + if (parent.putData) + { + for (var i = 0; i < gIEA.length; i ++ ) + { + if (gIEA[i].nNKOff != 0 && i + gIEA[i].nNKOff + 1 < gIEA.length) + { + + gIEA[i + gIEA[i].nNKOff + 1].nPKOff = gIEA[i].nNKOff; + } + } + parent.putData(gIEA); + } + } +} + +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whidx.htm b/doc/salome/GEOM/whdata/whidx.htm new file mode 100755 index 000000000..0a0deedd0 --- /dev/null +++ b/doc/salome/GEOM/whdata/whidx.htm @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whidx.js b/doc/salome/GEOM/whdata/whidx.js new file mode 100755 index 000000000..e0519afcb --- /dev/null +++ b/doc/salome/GEOM/whdata/whidx.js @@ -0,0 +1,34 @@ +// WebHelp 5.10.001 +var gaFileMapping = new Array(); +function fileMapping(sBK, sEK, sFileName, nNum) +{ + this.sBK = sBK; + this.sEK = sEK; + this.sFileName = sFileName; + this.aKs = null; + this.nNum = nNum; + this.oUsedItems = null; +} + + +function iFM(sBK, sEK, sFileName, nNum) +{ + var i = gaFileMapping.length; + gaFileMapping[i] = new fileMapping(sBK, sEK, sFileName, nNum); + if (i == 0) { + gaFileMapping[i].nTotal = nNum; + } + else { + gaFileMapping[i].nTotal = nNum + gaFileMapping[i - 1].nTotal; + } +} + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) + { + parent.projReady(gaFileMapping); + } +} + +window.onload = window_OnLoad; diff --git a/doc/salome/GEOM/whdata/whtdata.js b/doc/salome/GEOM/whdata/whtdata.js new file mode 100755 index 000000000..d5428a7de --- /dev/null +++ b/doc/salome/GEOM/whdata/whtdata.js @@ -0,0 +1,64 @@ +// WebHelp 5.10.001 +var gTEA = new Array(); +function aTE() +{ + gTEA[gTEA.length] = new tocEntry(aTE.arguments); +} + +function tocEntry(fn_arguments) +{ + if (fn_arguments.length < 3) + { + alert ("data format wrong!!!"); + return; + } + + this.nType = fn_arguments[0]; + this.nContents = fn_arguments[1]; + this.sItemName = fn_arguments[2]; + + if (this.nType == 1 || this.nType == 2 || this.nType == 16) + { + if (fn_arguments.length > 3) + { + this.sItemURL = fn_arguments[3]; + if (fn_arguments.length > 4) + { + this.sTarget = fn_arguments[4]; + if (fn_arguments.length > 5) + this.sIconRef = fn_arguments[5]; + } + } + } + if (this.nType == 4 || this.nType == 8) + { + if (fn_arguments.length > 3) + { + this.sRefURL = fn_arguments[3]; + if (this.nType == 4) + { + if(this.sRefURL.lastIndexOf("/")!=this.sRefURL.length-1) + this.sRefURL+="/"; + } + if (fn_arguments.length > 4) + { + this.sItemURL = fn_arguments[4]; + if (fn_arguments.length > 5) + { + this.sTarget = fn_arguments[5]; + if (fn_arguments.length > 6) + this.sIconRef = fn_arguments[6]; + } + } + } + } +} + + +function window_OnLoad() +{ + if (parent && parent != this && parent.putData) { + parent.putData(gTEA); + } +} +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whtdata0.htm b/doc/salome/GEOM/whdata/whtdata0.htm new file mode 100755 index 000000000..6da6be60a --- /dev/null +++ b/doc/salome/GEOM/whdata/whtdata0.htm @@ -0,0 +1,110 @@ + + + + + + + + + + + diff --git a/doc/salome/GEOM/whdata/whtoc.htm b/doc/salome/GEOM/whdata/whtoc.htm new file mode 100755 index 000000000..54e0cbf26 --- /dev/null +++ b/doc/salome/GEOM/whdata/whtoc.htm @@ -0,0 +1,16 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whdata/whtoc.js b/doc/salome/GEOM/whdata/whtoc.js new file mode 100755 index 000000000..163d8cc9f --- /dev/null +++ b/doc/salome/GEOM/whdata/whtoc.js @@ -0,0 +1,31 @@ +// WebHelp 5.10.001 +// const strings +var gaProj = new Array(); +var gsRoot = ""; + +function setRoot(sRoot) +{ + gsRoot = sRoot +} + +function aPE(sProjPath, sRootPath) +{ + gaProj[gaProj.length] = new tocProjEntry(sProjPath, sRootPath); +} + +function tocProjEntry(sProjPath, sRootPath) +{ + if(sProjPath.lastIndexOf("/")!=sProjPath.length-1) + sProjPath+="/"; + this.sPPath = sProjPath; + this.sRPath = sRootPath; +} + + +function window_OnLoad() +{ + if (parent && parent != this && parent.projReady) { + parent.projReady(gsRoot, gaProj); + } +} +window.onload = window_OnLoad; \ No newline at end of file diff --git a/doc/salome/GEOM/whestart.ico b/doc/salome/GEOM/whestart.ico new file mode 100755 index 000000000..110f18356 Binary files /dev/null and b/doc/salome/GEOM/whestart.ico differ diff --git a/doc/salome/GEOM/whfbody.htm b/doc/salome/GEOM/whfbody.htm new file mode 100755 index 000000000..86d8e63db --- /dev/null +++ b/doc/salome/GEOM/whfbody.htm @@ -0,0 +1,37 @@ + + +Search Result + + + + + + + + + + + + + + + + + diff --git a/doc/salome/GEOM/whfdhtml.htm b/doc/salome/GEOM/whfdhtml.htm new file mode 100755 index 000000000..236beec73 --- /dev/null +++ b/doc/salome/GEOM/whfdhtml.htm @@ -0,0 +1,30 @@ + + +Search Frame + + + + + + + + + diff --git a/doc/salome/GEOM/whfform.htm b/doc/salome/GEOM/whfform.htm new file mode 100755 index 000000000..f592a738d --- /dev/null +++ b/doc/salome/GEOM/whfform.htm @@ -0,0 +1,136 @@ + + +Search Form + + + + + + + + + + + + + + \ No newline at end of file diff --git a/doc/salome/GEOM/whfhost.js b/doc/salome/GEOM/whfhost.js new file mode 100755 index 000000000..167acc459 --- /dev/null +++ b/doc/salome/GEOM/whfhost.js @@ -0,0 +1,945 @@ +// WebHelp 5.10.003 +var gsSK2=null; +var gsSK=null; +var gsFtsBreakChars="\t\r\n\"\\ .,!@#$%^&*()~'`:;<>?/{}[]|+-=\x85\x92\x93\x94\x95\x96\x97\x99\xA9\xAE\xB7"; +var gnCLF=0; +var gsHelpCannotSearch="Cannot search for that phrase."; +var gsNoTopics="No Topics Found."; +var gsLoadingDivID="LoadingDiv"; +var gsLoadingMsg="Loading data, please wait..."; +var gsSearchMsg="Searching..."; +var gsResultDivID="ResultDiv"; +var gaaFCD=new Array(); +var gaaFTCD=new Array(); +var goCF=null; +var goCTF=null; +var gaTI=null; +var gnCurrentOp=0; +var gbNot=false; +var gbReady=false; +var gnLoadFts=1; +var gnCacheLimits=5; +var gaCCD=new Array(); +var gbXML=false; +var gaData=new Array(); +var gsBgColor="#ffffff"; +var gsBgImage=""; +var gsMargin="0pt"; +var gsIndent="0pt"; +var gsCheckKey=null; +var gnIndexNum=0; +var gaFtsContentsCon=null; +var gaTopicCheckInfo=null; +var gnTopicCheck=0; +var goFont=null; +var goErrFont=null; +var goHoverFont=null; +var gsABgColor="#cccccc"; +var gbWhFHost=false; +var gbFirst=false; + +function setBackground(sBgImage) +{ + gsBgImage=sBgImage; +} + +function setBackgroundcolor(sBgColor) +{ + gsBgColor=sBgColor; +} + +function setFont(sType,sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration) +{ + var vFont=new whFont(sFontName,sFontSize,sFontColor,sFontStyle,sFontWeight,sFontDecoration); + if(sType=="Normal") + goFont=vFont; + else if(sType=="Error") + goErrFont=vFont; + else if(sType=="Hover") + goHoverFont=vFont; +} + +function setActiveBgColor(sBgColor) +{ + gsABgColor=sBgColor; +} + +function setMargin(sMargin) +{ + gsMargin=sMargin; +} + +function setIndent(sIndent) +{ + gsIndent=sIndent; +} + +function updateCache(oCF) +{ + var len=gaCCD.length; + if(len0&&sURL) + { + var topic=new Object(); + topic.sTopicTitle=name; + topic.sTopicURL=sURL; + aTopics[aTopics.length]=topic; + } + } + oChild=oChild.nextSibling; + } + putFtsTData(aTopics); + } + } + else if(gnLoadFts==2) + { + var node=xmlDoc.lastChild; + if(node) + { + var oChild=node.firstChild; + var aFtsContents=new Array(); + while(oChild) + { + if(oChild.nodeName=="key") + { + var name=oChild.getAttribute("name"); + if(name&&name.length>0) + { + var item=new Object(); + item.sItemName=name; + aFtsContents[aFtsContents.length]=item; + var oChildChild=oChild.firstChild; + while(oChildChild) + { + if(oChildChild.nodeName=="#text") + { + var sIDs=oChildChild.nodeValue; + if(sIDs) + { + var nBPos=0; + do + { + var nPos=sIDs.indexOf(",",nBPos); + var sID=null; + if(nPos!=-1) + sID=sIDs.substring(nBPos,nPos); + else + sID=sIDs.substring(nBPos); + + if(sID) + { + var id=parseInt(sID); + if(!isNaN(id)) + { + if(!item.aTopics) + item.aTopics=new Array(); + item.aTopics[item.aTopics.length]=id; + } + } + nBPos=nPos+1; + }while(nBPos!=0&&nBPos0) + { + document.body.background=gsBgImage; + } + if(gsBgColor&&gsBgColor.length>0) + { + document.body.bgColor=gsBgColor; + } + writeResultDiv(); + loadFts(); + var oMsg=new whMessage(WH_MSG_SHOWFTS,this,1,null) + SendMessage(oMsg); +} + +function writeResultDiv() +{ + var sHTML="
    "; + document.body.insertAdjacentHTML("beforeEnd",sHTML); +} + +function loadFts() +{ + if(!gbReady) + { + var oResMsg=new whMessage(WH_MSG_GETPROJINFO,this,1,null); + if(SendMessage(oResMsg)&&oResMsg.oParam) + { + gbReady=true; + var oProj=oResMsg.oParam; + var aProj=oProj.aProj; + gbXML=oProj.bXML; + if(aProj.length>0) + { + var sLangId=aProj[0].sLangId; + for(var i=0;i=0)&&(gsFtsBreakChars.charAt(nSep)=="|"))){ + gnCurrentOp=0; + gbNot=false; + }else if((sCW=="and")||((nSep>=0)&&(gsFtsBreakChars.charAt(nSep)=="&"))){ + gnCurrentOp=1; + gbNot=false; + }else if((sCW=="not")|| + ((nSep>=0)&&(gsFtsBreakChars.charAt(nSep)=="~"))){ + gbNot=!gbNot; + }else if(sCW!=""&&!IsStopWord(sCW,gaFtsStop)){ + var sCurrentStem=GetStem(sCW); + gsCW=sCurrentStem; + ftsFindKeyword(); + return; + } + findOneKey(); + } + else{ + displayTopics(); + checkAgain(); + } +} + +function checkAgain() +{ + gsCheckKey = ""; + gnIndexNum = 0; + gsSK=gsSK2; + gsSK2=null; + if(gsSK!=null) + setTimeout("findFTSKey();",1); +} + +function displayTopics() +{ + var sHTML=""; + var sLine=""; + for(var i=0;i"+_textToHtml(gaTI[i].sTopicTitle)+""; + if(i>>4<<4==i) + { + sHTML+=sLine; + sLine=""; + } + } + if(sLine.length>0) + sHTML+=sLine; + + if(sHTML.length==0) + sHTML="

    "+gsNoTopics+"

    " + else + sHTML="
    "+sHTML+"
    "; + + var resultDiv=getElement(gsResultDivID); + if(resultDiv) + resultDiv.innerHTML=sHTML; +} + +function displayMsg(sErrorMsg) +{ + var sHTML="

    "+sErrorMsg+"

    "; + + var resultDiv=getElement(gsResultDivID); + if(resultDiv) + resultDiv.innerHTML=sHTML; +} + +function ftsFindKeyword() +{ + var sKey=gsCW; + var bNeedLoad=false; + var aFtsContentsCon=null; + var s=0; + if(sKey==null) return; + if(!gsCheckKey||sKey!=gsCheckKey||gnIndexNum==0) + { + aFtsContentsCon=new Array(); + gnCheck=0; + gsCheckKey=sKey; + gnTopicCheck=0; + gaTopicCheckInfo=null; + } + else{ + s=gnIndexNum; + aFtsContentsCon=gaFtsContentsCon; + } + for(var i=gnCheck;i=aTI.length) + { + aLS=gaTI; + aSS=aTI; + } + else + { + aLS=aTI; + aSS=gaTI; + } + var s=0; + for(var i=0;i=0) + { + var nM; + var bFound=false; + do{ + nM=(nB+nE)>>1; + if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)>0) + nE=nM-1; + else if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)<0) + nB=nM+1; + else + { + bFound=true; + break; + } + }while(nB<=nE); + if(bFound) + insertItemIntoArray(aTI,nM,oTI); + else + { + if(compare(aTI[nM].sTopicTitle,oTI.sTopicTitle)<0) + insertItemIntoArray(aTI,nM+1,oTI); + else + insertItemIntoArray(aTI,nM,oTI); + } + } + else + aTI[0]=oTI; +} + +function mergeTopics(aTI1,aTI2) +{ + var i1=0; + var i2=0; + var len1=aTI1.length; + var len2=aTI2.length; + var aTopicNew=new Array(); + var i=0; + while(i1>1; + if(compare(keys[nM].sItemName,sKey)>0) + nE=nM-1; + else if(compare(keys[nM].sItemName,sKey)<0) + nB=nM+1; + else{ + bFound=true; + break; + } + }while(nB<=nE); + if(bFound) + { + if(keys[nM].aTopics) + { + for(var i=0;i>1; + if(aFTCD[nM].nBegin>nTopicId) + nE=nM-1; + else if(aFTCD[nM].nEnd

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