Skip to content
Snippets Groups Projects
Commit a905a91b authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix #2908

parent 1a83a1ab
No related branches found
No related tags found
No related merge requests found
...@@ -48,15 +48,11 @@ void cheeseHole(double x, double y, double z, double r, double lc, ...@@ -48,15 +48,11 @@ void cheeseHole(double x, double y, double z, double r, double lc,
// We need non-plane surfaces to define the spherical holes. Here we use the // We need non-plane surfaces to define the spherical holes. Here we use the
// `gmsh::model::geo::addSurfaceFilling()' function, which can be used for // `gmsh::model::geo::addSurfaceFilling()' function, which can be used for
// surfaces with 3 or 4 curves on their boundary. With the he built-in kernel, // surfaces with 3 or 4 curves on their boundary. If the curves are circle
// if the curves are circle arcs, ruled surfaces are created; otherwise // arcs with the same center, a spherical patch is created; otherwise
// transfinite interpolation is used. // transfinite interpolation is used. With the OpenCASCADE kernel,
// // `gmsh::model::occ::addSurfaceFilling()' can be used with an arbitrary
// With the OpenCASCADE kernel, `gmsh::model::occ::addSurfaceFilling()' uses a // number of boundary curves, and will fit a BSpline patch through them.
// much more general generic surface filling algorithm, creating a BSpline
// surface passing through an arbitrary number of boundary curves. The
// `gmsh::model::geo::addThruSections()' allows to create ruled surfaces (see
// `t19.cpp').
int s1 = gmsh::model::geo::addSurfaceFilling({l1}); int s1 = gmsh::model::geo::addSurfaceFilling({l1});
int s2 = gmsh::model::geo::addSurfaceFilling({l2}); int s2 = gmsh::model::geo::addSurfaceFilling({l2});
......
...@@ -216,15 +216,11 @@ integer(c_int) function cheeseHole(x, y, z, r, lc, shells) result(v) ...@@ -216,15 +216,11 @@ integer(c_int) function cheeseHole(x, y, z, r, lc, shells) result(v)
! We need non-plane surfaces to define the spherical holes. Here we use the ! We need non-plane surfaces to define the spherical holes. Here we use the
! `gmsh%model%geo%addSurfaceFilling()' function, which can be used for ! `gmsh%model%geo%addSurfaceFilling()' function, which can be used for
! surfaces with 3 or 4 curves on their boundary. With the he built-in ! surfaces with 3 or 4 curves on their boundary. If the curves are circle arcs
! kernel, if the curves are circle arcs, ruled surfaces are created; ! with the same center, a spherical patch is created; otherwise transfinite
! otherwise transfinite interpolation is used. ! interpolation is used. With the OpenCASCADE kernel,
! ! `gmsh%model%occ.addSurfaceFilling()' can be used with an arbitrary number of
! With the OpenCASCADE kernel, `gmsh%model%occ.addSurfaceFilling()' uses a ! boundary curves, and will fit a BSpline patch through them.
! much more general generic surface filling algorithm, creating a BSpline
! surface passing through an arbitrary number of boundary curves. The
! `gmsh%model%geo%addThruSections()' allows to create ruled surfaces (see
! `t19.f90').
s1 = gmsh%model%geo%addSurfaceFilling([l1]) s1 = gmsh%model%geo%addSurfaceFilling([l1])
s2 = gmsh%model%geo%addSurfaceFilling([l2]) s2 = gmsh%model%geo%addSurfaceFilling([l2])
......
...@@ -137,15 +137,11 @@ function cheeseHole(x, y, z, r, lc, shells) ...@@ -137,15 +137,11 @@ function cheeseHole(x, y, z, r, lc, shells)
# We need non-plane surfaces to define the spherical holes. Here we use the # We need non-plane surfaces to define the spherical holes. Here we use the
# `gmsh.model.geo.addSurfaceFilling()' function, which can be used for # `gmsh.model.geo.addSurfaceFilling()' function, which can be used for
# surfaces with 3 or 4 curves on their boundary. With the he built-in # surfaces with 3 or 4 curves on their boundary. If the curves are circle
# kernel, if the curves are circle arcs, ruled surfaces are created; # arcs with the same center, a spherical patch is created; otherwise
# otherwise transfinite interpolation is used. # transfinite interpolation is used. With the OpenCASCADE kernel,
# # `gmsh.model.occ.addSurfaceFilling()' can be used with an arbitrary number
# With the OpenCASCADE kernel, `gmsh.model.occ.addSurfaceFilling()' uses a # of boundary curves, and will fit a BSpline patch through them.
# much more general generic surface filling algorithm, creating a BSpline
# surface passing through an arbitrary number of boundary curves. The
# `gmsh.model.geo.addThruSections()' allows to create ruled surfaces (see
# `t19.jl').
s1 = gmsh.model.geo.addSurfaceFilling([l1]) s1 = gmsh.model.geo.addSurfaceFilling([l1])
s2 = gmsh.model.geo.addSurfaceFilling([l2]) s2 = gmsh.model.geo.addSurfaceFilling([l2])
......
...@@ -140,15 +140,11 @@ def cheeseHole(x, y, z, r, lc, shells): ...@@ -140,15 +140,11 @@ def cheeseHole(x, y, z, r, lc, shells):
# We need non-plane surfaces to define the spherical holes. Here we use the # We need non-plane surfaces to define the spherical holes. Here we use the
# `gmsh.model.geo.addSurfaceFilling()' function, which can be used for # `gmsh.model.geo.addSurfaceFilling()' function, which can be used for
# surfaces with 3 or 4 curves on their boundary. With the he built-in # surfaces with 3 or 4 curves on their boundary. If the curves are circle
# kernel, if the curves are circle arcs, ruled surfaces are created; # arcs with the same center, a spherical patch is created; otherwise
# otherwise transfinite interpolation is used. # transfinite interpolation is used. With the OpenCASCADE kernel,
# # `gmsh.model.occ.addSurfaceFilling()' can be used with an arbitrary number
# With the OpenCASCADE kernel, `gmsh.model.occ.addSurfaceFilling()' uses a # of boundary curves, and will fit a BSpline patch through them.
# much more general generic surface filling algorithm, creating a BSpline
# surface passing through an arbitrary number of boundary curves. The
# `gmsh.model.geo.addThruSections()' allows to create ruled surfaces (see
# `t19.py').
s1 = gmsh.model.geo.addSurfaceFilling([l1]) s1 = gmsh.model.geo.addSurfaceFilling([l1])
s2 = gmsh.model.geo.addSurfaceFilling([l2]) s2 = gmsh.model.geo.addSurfaceFilling([l2])
......
...@@ -91,13 +91,11 @@ Macro CheeseHole ...@@ -91,13 +91,11 @@ Macro CheeseHole
// We need non-plane surfaces to define the spherical holes. Here we use // We need non-plane surfaces to define the spherical holes. Here we use
// `Surface', which can be used for surfaces with 3 or 4 curves on their // `Surface', which can be used for surfaces with 3 or 4 curves on their
// boundary. With the he built-in kernel, if the curves are circle arcs, ruled // boundary. With the built-in kernel, if all the curves are circle arcs with
// surfaces are created; otherwise transfinite interpolation is used. // the same center, a spherical patch is created; otherwise transfinite
// // interpolation is used. With the OpenCASCADE kernel, `Surface' can be used
// With the OpenCASCADE kernel, `Surface' uses a much more general generic // with an arbitrary number of boundary curves, and will fit a BSpline patch
// surface filling algorithm, creating a BSpline surface passing through an // through them.
// arbitrary number of boundary curves; and `ThruSections' allows to create
// ruled surfaces (see `t19.geo').
l1 = newcl; Curve Loop(l1) = {c5,c10,c4}; l1 = newcl; Curve Loop(l1) = {c5,c10,c4};
l2 = newcl; Curve Loop(l2) = {c9,-c5,c1}; l2 = newcl; Curve Loop(l2) = {c9,-c5,c1};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment