X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Fprimitives.htm;h=13f9f6577a07a3b46f9b6832544ce70bb838121b;hb=c6a0df686bae87821d7acf929b4bb8f4ae3b1d78;hp=38218aa9c04cbff5ce9260bd30b539f93eb5269c;hpb=3e9d56c09b4bb1f34cf25c95613ef7e12890a8cd;p=modules%2Fgeom.git diff --git a/doc/salome/gui/GEOM/primitives.htm b/doc/salome/gui/GEOM/primitives.htm index 38218aa9c..13f9f6577 100755 --- a/doc/salome/gui/GEOM/primitives.htm +++ b/doc/salome/gui/GEOM/primitives.htm @@ -33,43 +33,48 @@ onerror = null; - - + +

Primitives

Creation of a Box

@@ -105,7 +110,7 @@ else

 

-

# add objects in study

+

# add objects in the study

id_box1 = geompy.addToStudy(box1,"Box1")

@@ -115,7 +120,7 @@ else

 

-

# display boxes

+

# display the boxes

gg.createAndDisplayGO(id_box1)

@@ -138,50 +143,62 @@ else

import salome

+

 

+

gg = salome.ImportComponentGUI("GEOM")

-

 

+

 

-

# create vertex and vector

+

# create a vertex and a vector

-

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

+

p1 = geompy.MakeVertex(25, + 35, 45)

-

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

+

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

v = geompy.MakeVector(p1, p2)

 

-

# create cones

+

# create cylinders

-

cone1 = geompy.MakeCone(p1, - v, 17, 1, 20)

+

height = 40

-

cone2 = geompy.MakeConeR1R2H(30, - 10, 30)

+

 

+ +

radius1 = 15

+ +

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

 

-

# add objects in study

+

radius2 = 30

-

id_cone1 = geompy.addToStudy(cone1,"Cone1")

+

cylinder2 = geompy.MakeCylinderRH(radius2, + height)

-

id_cone2 = geompy.addToStudy(cone2,"Cone2")

+

 

+ +

# add objects in the study

+ +

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

+ +

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

 

-

# display cones

+

# display the cylinders

-

gg.createAndDisplayGO(id_cone1)

+

gg.createAndDisplayGO(id_cylinder1)

-

gg.setDisplayMode(id_cone1,1)

+

gg.setDisplayMode(id_cylinder1,1)

-

gg.createAndDisplayGO(id_cone2)

+

gg.createAndDisplayGO(id_cylinder2)

-

gg.setDisplayMode(id_cone2,1) +

gg.setDisplayMode(id_cylinder2,1)

 

@@ -196,7 +213,7 @@ else

 

-

# create vertex

+

# create a vertex

p = geompy.MakeVertex(55, 45, 25)

@@ -221,7 +238,7 @@ else

 

-

# add objects in study

+

# add objects in the study

id_sphere1 = geompy.addToStudy(sphere1,"Sphere1")

@@ -258,7 +275,7 @@ else

 

-

# create vertex and vector

+

# create a vertex and a vector

p1 = geompy.MakeVertex(35, 40, 45)

@@ -281,7 +298,7 @@ else

 

-

# add objects in study

+

# add objects in the study

id_torus1 = geompy.addToStudy(torus1,"Torus1")

@@ -310,7 +327,7 @@ else

 

-

# create vertex and vector

+

# create a vertex and a vector

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

@@ -333,7 +350,7 @@ else

 

-

# add objects in study

+

# add objects in the study

id_cone1 = geompy.addToStudy(cone1,"Cone1")