mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-12 17:50:35 +05:00
PR: debug examples
This commit is contained in:
parent
27ea313c9f
commit
7883752d7c
@ -30,13 +30,13 @@ interpol = geompy.MakeInterpol([p0, p1, p2, p3, p4], False)
|
|||||||
interpol_tangents = geompy.MakeInterpolWithTangents([p0, p1, p2, p3, p4], v1, v2)
|
interpol_tangents = geompy.MakeInterpolWithTangents([p0, p1, p2, p3, p4], v1, v2)
|
||||||
|
|
||||||
#create a polyline using parametric definition of the basic points
|
#create a polyline using parametric definition of the basic points
|
||||||
param_polyline = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 100, geompy.GEOM.Polyline, theNewMethod=True)
|
param_polyline = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 100, GEOM.Polyline, theNewMethod=True)
|
||||||
|
|
||||||
# create a bezier curve using parametric definition of the basic points
|
# create a bezier curve using parametric definition of the basic points
|
||||||
param_bezier = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 20, geompy.GEOM.Bezier, theNewMethod=True)
|
param_bezier = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 20, GEOM.Bezier, theNewMethod=True)
|
||||||
|
|
||||||
#create a b-spline curve using parametric definition of the basic points
|
#create a b-spline curve using parametric definition of the basic points
|
||||||
param_interpol = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 100, geompy.GEOM.Interpolation, theNewMethod=True)
|
param_interpol = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 100, GEOM.Interpolation, theNewMethod=True)
|
||||||
|
|
||||||
|
|
||||||
# add objects in the study
|
# add objects in the study
|
||||||
|
@ -5,7 +5,7 @@ salome.salome_init()
|
|||||||
import GEOM
|
import GEOM
|
||||||
from salome.geom import geomBuilder
|
from salome.geom import geomBuilder
|
||||||
geompy = geomBuilder.New(salome.myStudy)
|
geompy = geomBuilder.New(salome.myStudy)
|
||||||
mport SALOMEDS
|
import SALOMEDS
|
||||||
|
|
||||||
# create a box and a cylinder
|
# create a box and a cylinder
|
||||||
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||||
|
@ -16,7 +16,9 @@ Wire_1 = geompy.MakeWire([Edge_12, Edge_7, Edge_11, Edge_6, Edge_1,Edge_4])
|
|||||||
# make fillet at given wire vertices with giver radius
|
# make fillet at given wire vertices with giver radius
|
||||||
Fillet_1D_1 = geompy.MakeFillet1D(Wire_1, 55, [3, 4, 6, 8, 10])
|
Fillet_1D_1 = geompy.MakeFillet1D(Wire_1, 55, [3, 4, 6, 8, 10])
|
||||||
|
|
||||||
|
id_Wire_1 = geompy.addToStudy(Wire_1, "Wire_1")
|
||||||
|
id_Fillet_1D_1= geompy.addToStudy(Fillet_1D_1, "Fillet_1D_1")
|
||||||
|
|
||||||
# display disks
|
# display disks
|
||||||
gg.createAndDisplayGO(Wire_1)
|
gg.createAndDisplayGO(id_Wire_1)
|
||||||
gg.createAndDisplayGO(Fillet_1D_1)
|
gg.createAndDisplayGO(id_Fillet_1D_1)
|
||||||
|
Loading…
Reference in New Issue
Block a user