DynamoDS / Dynamo

Open Source Graphical Programming for Design
https://dynamobim.org
Other
1.67k stars 622 forks source link

Node for Surface/Surface Intersection #350

Closed kronz closed 10 years ago

kronz commented 10 years ago

API to derive a curve from a 2 surface intersections was added to Revit 2014. We need a node: Inputs: Surface 1, Surface 2 Output: Curve

LevL commented 10 years ago

More details on API: Face class got in r2014 Intersect(Face^ face, [Out] Curve^% result) method. Only one curve is returning even if intersection has more curves (like in case of plane intersecting cylinder while parallel to its axis).

Needs testing for plane intersecting sphere: is full circle returned or first half-circle?

Probably node needs explanation on this complication, not sure how.

Also should request be filed for getting List of intersecting curves between 2 faces in API?

ikeough commented 10 years ago

Lev, The node is in there. I also added a test model. You're right we should test those other cases. Not sure why the API would only return one curve for intersection but that's what it says :) I'm closing the issue though because the node is now available.

LevL commented 10 years ago

I see it now after pull, Ian. You just added the node. The API method however will fail for 2 or more intersection curves, as the utility API based on is from old code used for dormer opening. We might consider improving it. Plus node does not use reflection, so will not build for r2013. Are we still supporting it?

formula1210204 commented 9 years ago

may I ask the name of this node, or where can i get it? I need this function for daily use, thanks a lot.

andydandy74 commented 9 years ago

Use Geometry.Intersect

formula1210204 commented 9 years ago

thanks for your help