algorithmic modeling for Rhino
And another thing: how to obtain the intersection of several polygons in the VB component?
How are the polygons defined?
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi Liviu,
translating points is quite easy:
Dim pt As New Point3d(2,4,8)
Dim motion As New Vector3d(1,-6,0)
pt += motion
If you want to transform the point (something more complex than a simple translation) then you can do something like this:
Dim pt As New Point3d(2,4,8)
pt.Transform(Transform.Translation(1,-6,0))
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,
Thanks. One more thing. These points define some polygons that inflate. I need something like collision detection; something like curve - curve intersection but also in the VB component.
RhinoCommon offers quite a few methods here. You can intersect line segments very quickly, you can use curve|curve intersection (slower, but works on all curves), you can test whether points are inside a closed curve region etc. You'll need to specify what sort of algorithm you need for this.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
I need the curve | curve intersection in the vb component, I can't find it under curve methods.
All intersection stuff is in the Rhino.Geometry.Intersect namespace. We've done this as it otherwise wouldn't be obvious whether to put Curve|Brep intersections on curves or breps.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Off topic:
I'm having a problem when trimming a list of curves with a closed Brep. Sometimes it doesn't give the correct in-curves and out-curves and I have to bake the geometry, trim it in rhino and reference it back into grasshopper. Any thoughts on this? Could be a bug or am I messing it up?
The structure is this: a tree with curves (n paths each with 1 curve) and a simple brep that is right in the middle of them (no curve is left out). I want to trim them with the Brep and play with the ends that are sticking out of the brep. But it doesn't really give me all the out curves when i do it in grasshopper. It gives like 8 correct trimmed curves and 2 messed curves. The geometry is correct because in rhino it works.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by