Author Topic: Triangulation (re-visited)  (Read 317672 times)

0 Members and 2 Guests are viewing this topic.

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #315 on: January 08, 2015, 04:05:47 AM »
hI sanju2323. nice lisp for Profile. Do you have any lisp for crossections ?

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #316 on: January 12, 2015, 04:41:18 AM »
somethin like this


AARYAN

  • Newt
  • Posts: 72
Re: Triangulation (re-visited)
« Reply #317 on: January 12, 2015, 12:36:30 PM »
Hello ymg,

I have used your routine and found the results are very good.
But unfortunately it takes a long time of approx 90 secs to process 13000 points. If I remove the getneighbour function it reduces the process time but I doubt if I miss some important sort of things by removing this function. So I would request to please tell me what does this function do in the routine? Is it safe I remove it out or shall I wait for another version which may increase the speed.

Thanks for your help.

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #318 on: January 12, 2015, 05:02:38 PM »
AARYAN,

You are pushing the enveloppe with a 130000 pts.

The function get_neighbour establish an array of pointers
to each neigbouring triangle.

It is used for profiling and voronoi.

If all you need is the triangulation, you could
do it without generating it.

ymg

AARYAN

  • Newt
  • Posts: 72
Re: Triangulation (re-visited)
« Reply #319 on: January 12, 2015, 11:04:58 PM »
ymg,

Thanks for your reply. BTW there are only 12628 points and the elapsed time is 82.7120 secs; 25156 3DFACES, but if I remove the function get _ neighbour the elapsed tine reduced to 30.5760 secs, 25156 3DFACES.

Regards

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #320 on: January 13, 2015, 05:36:47 AM »
Try this lisp
« Last Edit: January 13, 2015, 09:58:28 AM by sanju2323 »

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #321 on: January 13, 2015, 09:04:08 AM »
sanju2323, AARYAN,

Thanks for your upload of these profiling apps.

However, it is not a good idea to profile from contour
if you have a TIN. 

It does come handy if all you have are contour digitized
from a topographic maps.

I do have a way (unpublished yet) to do it without going
through get_neighbour.

Question: Which version are you using ?
                It should not be that slow with only 14000 pts.

ymg
               


AARYAN

  • Newt
  • Posts: 72
Re: Triangulation (re-visited)
« Reply #322 on: January 13, 2015, 10:39:01 AM »
Hello ymg

I am using Triangulation vs 0.5.9. Am I not using the latest one??
Please provide routine which is faster as you said if possible. BTW I am looking for triangulation lisp.

Thanks for your help.

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #323 on: January 13, 2015, 06:23:06 PM »
AARYAN,

If you are not doing profile, simply remove
the (setq nl (get_neighbour tl)) at the end
of the triangulate routine.

I am at version 0.6.0, but not ready to publish.
Slow progress because I am traveling a lot
these days.

Other option to accelerate would be to compile
it into a vlx.

ymg

AARYAN

  • Newt
  • Posts: 72
Re: Triangulation (re-visited)
« Reply #324 on: January 13, 2015, 08:53:31 PM »
Thank you ymg, I am actually doing the same i.e removed the last line of get_neighbour function but not compiled the routine yet. I will do and post the result.

BTW most of the structure of Triangulation function is similar to Mr.Elpanov's routine then what makes it run slower?? Cant we modify the those portion to achieve the speed if possible?

Regards
« Last Edit: January 13, 2015, 09:01:53 PM by AARYAN »

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #325 on: January 13, 2015, 09:40:06 PM »
AARYAN,

The triangulation portion is Evgenyi's code.

Only diffference is that there is code to remove possible duplicates and a section
to generate Voronoi's diagram.  There is also a section for breaklines.

So if you have no breaklines and are not generating Voronoi the speed
penalty is only the check for duplicates point.

ymg


AARYAN

  • Newt
  • Posts: 72
Re: Triangulation (re-visited)
« Reply #326 on: January 13, 2015, 10:17:52 PM »
Thank you for your quick reply and Yes I do not want to generate voronoi diagram but sometimes I may have breaklines. It would be great If you can edit the code to force the algorithm work only for Triangulation then I think i may get what I need.

I must say your contour routine is truly amazing and highly appreciable.

Regards

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #327 on: January 16, 2015, 10:56:47 AM »
Hi sanju2323 i know quick profile lisp but is not what i am looking for.
I  want a lisp for cross section like the upload photo (with center Alignmet)

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #328 on: January 17, 2015, 07:28:15 AM »
Topographer,
Complete Solution In This Program Please try to Cadtools Program http://www.glamsen.se/CadTools.htm

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #329 on: January 17, 2015, 07:37:47 AM »
ymg,
 You can generate profiles from 3d polyline? If you have any lisp.