Grasshopper

algorithmic modeling for Rhino

As title.

Simple curves, miss an intersection.

Working good with curve-curve intersection component instead.

Any fast solution?

Views: 1417

Attachments:

Replies to This Discussion

It's strange, a fast solution would be this.

Eh... that's something.

But i would like keep original curves.

I mean, it's just 1 arc + 2 lines.

Rebuilding make everything a nurb-curve, its closest point to original would not be perfect, and i cannot get 2 parameters for each intersection to shatter the curve.

This bug is happening often in my definition (trying to make a new offset component), and i would like to keep an arc as an arc and a line as a line.

Just... it works with curve-curve but not curve-self ... 

Who know what's happening inside the code. :D

Maybe a c# alternative?

If I were you I would do this.

As far as I touch these intersections, the result in this test code are four equal points.

Dim events = rhino.Geometry.Intersect.Intersection.CurveSelf(Crv, 0.00001)
Dim pts As New list(Of point3d)
For Each ev As rhino.Geometry.Intersect.IntersectionEvent In events
pts.add(ev.PointA)
pts.add(ev.PointA2)
pts.add(ev.PointB)
pts.add(ev.PointB2)
Next
A = pts

These strange things often occur when working with polycurves (lines+curves), the offset also often fails with this type of curve....

I have a similar problem, this time regarding a set of curves. The crvs are contour of a mesh. They intersect in Rhino resulting points, but not in grasshopper. Why? What can I do to get the script right. Thanks you!

Attachments:

RSS

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