X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Fgeom.h;fp=src%2Fgeom.h;h=ebb6659c9c58fb97fc2ea2768e7032ab80d3bcd6;hb=34e07fdc87e289e9ce574df7755e5e781136c20b;hp=14faa82af794bdca1f6a642e25740e1bb86a91fd;hpb=7e22a9e6549bf0ff36dc9a73c243de1f4b36b4a4;p=meshfrac diff --git a/src/geom.h b/src/geom.h index 14faa82..ebb6659 100644 --- a/src/geom.h +++ b/src/geom.h @@ -21,9 +21,12 @@ float plane_sdist(const struct plane *p, const cgm_vec3 *pt); void midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b); void poly_plane(const struct poly *poly, struct plane *plane); +int plane_poly(const struct plane *plane, struct poly *poly, float size); /* returns negative if there's no intersection, parametric distance if there is */ float ray_plane(const cgm_ray *ray, const struct plane *plane); float ray_poly(const cgm_ray *ray, const struct poly *poly); +int clip_poly(struct poly *pout, const struct poly *pin, const struct plane *plane); + #endif /* GEOM_H_ */