shape@ main_shape()
{
// create 2 convex hull bodies
solid@ upper = polyhedron("posterior-lenticle-surface.xyz");
solid@ lower = polyhedron("anterior-lenticle-surface.xyz");
// subtract upper from lower to create convex-concave lens body
return lower-upper;
}
void main()
{
shape@ obj = main_shape();
obj.write_xcsg(GetInputFullPath(),secant_tolerance:-1);
}
Last active
November 4, 2019 20:21
-
-
Save arnholm/9c27f6f3b65d48d38a2e34efff48591c to your computer and use it in GitHub Desktop.
Concave-convex lens from 2 point clouds
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment