Projecting Points on a Sphere Problem

I am trying to project points onto a sphere from a triangulated surface but continue to have problems at the steps seen in the image. The error reads in part: “Point.Project operation failed. Unable to create Line. Points are likely coincident”. Any hints would be appreciated.

Its almost impossible to tell what you’re doing with that one piece of information, but I reckon your problem is caused by the vector, projection point and surface all being coincident, hence the projection fails due to the tolerance (or more specifically, there are zero-dimension projections). This exception occurred more in older versions of Dynamo before v1.0.0, so either upgrade or find a means of offsetting your projection points to guarantee a successful projection without coincidence.

Im using Dynamo 1.0 but I will try to isolate the vectors length and see if that’s it. I’m pretty sure I’m not project points already on the sphere but will try to run that angle down over the weekend.

Seems like the troublesome points are beyond the extents of the sphere.
Is the radius of the sphere less than 5?

Doh. The sphere most definately is exactly radius 5. Can’t wait to track this angle down later today and see if that helps. Thanks VS!

1 Like

That was it. After I carefully recheck the the use of the sphere in the code I was able to group the elements as needed.

1 Like

Unforunately I’m running into the same error again with the nearly the same input configuation - I thought I was making it better. I’ve tried at length to change the radius of the sphere to remove any coincident points but I’m not able to get any points from the polygons onto the sphere.

Is it the same error “Point.ProjectOperation failed”?

@PerfectArchCo Seems like you are feeding in Polygons to an input port that requires Surfaces

EDIT: That isn’t a problem. Could you share your file?

Oops. Meant to have the error text highlighted: “Point.Project operation failed.
Unable to create Line. Points are likely coincident”

@Vikram_Subbaiah The Surface.byPatch is taking the polygons and outputting surfaces when checked to get around that. As to if that is the correct way or if it is going it correctly I’m not sure. I don’t quite have time to upload the file today but the intial polygons are small. Maybe the distance is too great. This it the step I am setting the daimeter of my larger sphere.

1 Like

Try changing the last line to…


Alas. I tried the suggestion to no effect. I’ll have to set this aside and hopefully some problem solving approaches will strike over the weekend. I’ll probably try to simplify the code to see if that uncovers anything useful before posting again.

1 Like

There seems to be a problem with Point.Project
Use Surface.ProjectInputOnto instead.

Replace the last line with this…