Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5938

Brep Faster Holes? using AddTrimCurve?

$
0
0

I have a set of closed co-planar curves. One is the “outside” and the reset are “holes” & I know which.
I need to make a Brep in order to render them.

I have been using Brep.CreatePlanarBreps(crvs, 0.001);
However this is too slow for use in our DisplayConduit (where i have hundreds of such sets of curves).

Since I know which is the outer and which are the inner i thought it might be faster if I could construct the Brep more manually using Brep.CreateTrimmedPlane & then adding the holes manually using
Brep.AddTrimCurve method (rhino3d.com)

however no hole is created :frowning:

What is the correct way to use this method?
Is there a faster approach?

	var outer = (new Circle(Plane.WorldXY, Point3d.Origin, 50)).ToNurbsCurve();
	var inner = (new Circle(Plane.WorldXY, Point3d.Origin, 25)).ToNurbsCurve();
	var brep = Brep.CreateTrimmedPlane(Plane.WorldXY, outer);
	brep.AddTrimCurve(inner);

7 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles