Grasshopper

algorithmic modeling for Rhino

Hi!

Occasionally the Brep.Trim function produces "broken" Breps if I use it like described below:

I have a polyline "pl" (simple and convex) and a brep "FoamBlock" and I want to cut away parts of the brep that lie outside of the polyline.

How can I avoid uncapable breps that have very small naked edges?

List<Point3d> pl; // Path along which I want to cut away parts of the brep 

List<Vector3d> norm; // Cutting plane normals

for (int i = 0; i < norm.Count; i++)
{

Plane pCut = new Plane(pl[i], norm[i]);

Brep[] cut1 = FoamBlock.Trim(pCut, 0.0001);

}

Views: 400

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service