tryng to extrude an occ object from julia
Hi,
I am trying to use the extrude command to generate a 3D structured mesh, here is an example that should produce a pi/2 circular sector, and the error I got
import Gmsh: gmsh
gmsh.initialize()
gmsh.model.add("arc_sector")
lc = 0.1
occ = gmsh.model.occ
p1 = occ.addPoint(0, 0, 0, lc)
p2 = occ.addPoint(1, 0, 0, lc)
p3 = occ.addPoint(0, 1, 0, lc)
c1 = occ.addLine(p1, p2)
c2 = occ.addCircleArc(p2, p1, p3)
c3 = occ.addLine(p3, p1)
cl1 = occ.addCurveLoop([c1, c2, c3])
s1 = occ.addPlaneSurface([cl1])
vol = occ.extrude([s1,], 0., 0., 1.)
Error : Unknown OpenCASCADE entity of dimension 1 with tag 32733
gmshModelOccExtrude returned non-zero error code: 1
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] extrude(::Array{Int32,1}, ::Float64, ::Float64, ::Float64, ::Array{Int32,1}, ::Array{Float64,1}, ::Bool) at /home/andrea/.julia/packages/Gmsh/eZVOZ/deps/usr/lib/gmsh.jl:3384
[3] extrude(::Array{Int32,1}, ::Float64, ::Float64, ::Float64) at /home/andrea/.julia/packages/Gmsh/eZVOZ/deps/usr/lib/gmsh.jl:3378
[4] top-level scope at In[1]:21
[5] include_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1091
I also tried other ways, but I can't get it to work, what am I doing wrong? could you post an example using extrude from julia API?
many thanks, Andrea