silhouette points of planar curve
 1-7  8-27  28-34

Previous
Next
 From:  MO (MO_TE)
11213.28 In reply to 11213.27 
Your node is working fine here.
The error says an input is empty. ( pointarray input )

check if you are getting this error with "James" NE folder.
https://moi3d.com/forum/lmessages.php?webtag=MOI&msg=9358.1
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pressure (PEER)
11213.29 In reply to 11213.17 
Hi MO,

Thanks for taking a crack at it!

I don't use the node system, so I'm not able to test your .nod and when I open it in a text editor I can't make heads or tails of it. Looks like it's all references to javascript contained in some other files.

In any case, like I said in my first message I tried out a bounding box approach using the BoundingBox command and had problems with accuracy. My assumption is that BoundingBox uses a high accuracy (rather than quick) bounding box method under the hood.

Just now I checked my assumption by coding up my own bounding box command using objectlist.getHighAccuracyBoundingBox() and see the same kind of accuracy problems as from the native BoundingBox command.

Specifically, I found that for a smooth curve if I intersect the bounding box with the curve I don't just get 1 point at each intersection, but 2 slightly separated points. I don't think this is limited by the accuracy of intersection since doing the same kind of thing with tangent lines drawn using tangent snaps gives a single point object from Construct > Curve > Isect.

In your node were you able to somehow overcome the accuracy issue?

I guess I could get closer by interpolating the pairs of intersection points, but since the bounding box method does nothing to solve the point projection (as opposed to parallel) case, and since Michael has kindly offered to add a method to cover both cases, I'll probably wait for that.

- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Barry-H
11213.30 In reply to 11213.28 
Hi Mo,
think I've found my issue its the BoundingBox-infos .
Yours shows an object output but the one within my nodeditor does not have this.
Hope this makes sense.
Cheers
Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  MO (MO_TE)
11213.31 In reply to 11213.30 
Hi Barry
So sorry for the trouble.
Yes. It must be an old modification that I did on "BoundingBox-infos" node and forgot to register.
This is the fixed .nod file. Check if this one works.

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  MO (MO_TE)
11213.32 In reply to 11213.29 
Hi Peer
Yes, Michael's solution should be easier and faster. :)

I'm not sure if I understood the accuracy problem.
I think those "very close" points you mentioned are in a same height.
Curve below has 4 intersection points on highest location. all with the same "z" value. (values from nodeeditors's info panel)



Another test with moi's dimension tool:
I've made the blue line like this:
curve >> project >> use CPlane as target >> create a straight line on projected line
red line : nodeeditor


  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  pressure (PEER)
11213.33 In reply to 11213.32 
Hi MO,

Your results are pretty darn accurate. I'll give that approach another try.

- Peer
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Barry-H
11213.34 In reply to 11213.31 
Thanks Mo,
working fine now.
Cheers
Barry
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-7  8-27  28-34