updated files from meshfrac_alt
[meshfrac] / src / geom.h
index 19c10ff..7fc183c 100644 (file)
@@ -18,7 +18,7 @@ struct poly {
 
 float plane_dist(const struct plane *p, const cgm_vec3 *pt);
 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 midplane(struct plane *p, const cgm_vec3 *a, const cgm_vec3 *b, float offs);
 
 void poly_plane(const struct poly *poly, struct plane *plane);
 int plane_poly(const struct plane *plane, struct poly *poly, float size);
@@ -31,4 +31,6 @@ int init_poly(struct poly *p);
 void destroy_poly(struct poly *p);
 int clip_poly(struct poly *pout, const struct poly *pin, const struct plane *plane);
 
+int poly_poly(const struct poly *p1, const struct poly *p2);
+
 #endif /* GEOM_H_ */