compas-dev / compas

Core packages of the COMPAS framework.
https://compas.dev/compas/
MIT License
305 stars 104 forks source link

Add plane_brep intersection method #1119

Open ZacZhangzhuo opened 1 year ago

ZacZhangzhuo commented 1 year ago

Add plane_brep intersection method

Details

Just found in compas.geometry, there is no intersection_plane_brep like Rhino.Geometry.Intersect.Intersection.BrepPlane method in Rhino API. This function would be useful for slicing objects in additive printing, or other fabrication scenarios. Hope this function could be added.

This request is also added in compas forum

ZacZhangzhuo commented 1 year ago

just found the compas.geometry.Brep.slice in Brep is exactly what we need, although it is a bit hidden and not categorized in compas.geometry.intersection. Hope the whole Brep class can be upgrade for easier use soon!

gonzalocasas commented 1 year ago

/cc @chenkasirer

chenkasirer commented 1 year ago

Commented on the discussion here TL;DR there's a trim(), is it the same? is it just a naming difference?