Skip to content
Snippets Groups Projects
Select Git revision
  • 82ef2ab118fb009c015bd2404bcb003f25d6d6d1
  • master default protected
  • hierarchical-basis-refactor
  • hierarchical-basis
  • revert-ef4a3a4f
  • patch_releases_4_14
  • overlaps_tags_and_distributed_export
  • overlaps_tags_and_distributed_export_rebased
  • relaying
  • alphashapes
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

spherical_surf.jl

Blame
  • spherical_surf.jl 476 B
    import gmsh
    
    gmsh.initialize(ARGS)
    gmsh.model.add("sphere_cut")
    R = 1
    R1 = 0.95
    sph = gmsh.model.occ.addSphere(0,0,0, R, -1, 0, pi/2, pi/2)
    b1 = gmsh.model.occ.addBox(R1,0,0, R,R,R)
    b2 = gmsh.model.occ.addBox(0,R1,0, R,R,R)
    b3 = gmsh.model.occ.addBox(0,0,R1, R,R,R)
    gmsh.model.occ.cut([(3,sph)], [(3,b1), (3,b2), (3,b3)])
    gmsh.model.occ.synchronize()
    
    gmsh.model.removeEntities([(3,sph)])
    gmsh.model.removeEntities([(2,2), (2,4), (2,6)], true)
    gmsh.fltk.run()
    gmsh.finalize()