Surface with OCC
Hi,
When Making a Surface with the OCC kernel over a Line Loop, GMSH makes a unexpecteted Surface. The problem is that I have curved boundaries(Circle/Ellipse), so that Extrude Using Wire doesn't work, too. I read some about the N-side filling of OCC in one Issue, but I don't know how to avoid this. Is there a possibility? Or do I need to create Splines, insteed of Circles for the boundaries?
With the buil-in kernel this is not a problem. But I need the boolean functions of OCC.
Thank you for your help
Surface with OCC Surface with built-in (as desired)
SetFactory("OpenCASCADE");
r1 = 1;
cp = newp; Point(cp) = {0,0,0};
cp_coords[] = Point{cp};
p1 = newp; Point(p1) = {cp_coords[0] + r1, cp_coords[1] + r1, cp_coords[2] + r1};
p2 = newp; Point(p2) = {cp_coords[0] - r1, cp_coords[1] + r1, cp_coords[2] + r1};
p3 = newp; Point(p3) = {cp_coords[0] - r1, cp_coords[1] - r1, cp_coords[2] + r1};
p4 = newp; Point(p4) = {cp_coords[0] + r1, cp_coords[1] - r1, cp_coords[2] + r1};
l1 = newl; Circle(l1) = {p1,cp,p2};
l2 = newl; Circle(l2) = {p2,cp,p3};
l3 = newl; Circle(l3) = {p3,cp,p4};
l4 = newl; Circle(l4) = {p4,cp,p1};
ll1 = newll; Curve Loop(ll1) = {l1,l2,l3,l4};
s1 = news; Surface(s1) = {ll1};
// wire_1 = newll; Wire(wire_1) = {l1};
// s() = Extrude { Curve{l2}; } Using Wire { wire_1 };
Transfinite Curve{l1, l2, l3, l4} = 10;
Transfinite Surface{s1};
Recombine Surface{s1};
Edited by Robert Steinhoff