Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = BoundaryDiscretizeGraphics[Graphics3D[{Ball[]}]];
- pos = Flatten[Position[MeshCoordinates[s], {x_, _, _} /; x < 0]];
- f = DeleteCases[MeshCells[s, 2][[All, 1]],
- x_ /; Intersection[pos, x] != {}];
- mesh = MeshRegion[MeshCoordinates[s], Polygon /@ f]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement