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

0 Members and 1 Guest are viewing this topic.

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #300 on: October 02, 2014, 04:02:05 AM »
Hi ymg I found an error with the breaklines. Can you fix it ?

Thanks

topograph

  • Mosquito
  • Posts: 4
Re: Triangulation (re-visited)
« Reply #301 on: October 05, 2014, 05:47:30 AM »
I think that lines on zero plane cannot be breaklines.
Try to connect points on your breaklines with 3dpolyline, it work perfect.
....
 In this drawing, check "BLOCK" option in TIN dialog
« Last Edit: October 05, 2014, 05:54:06 AM by topograph »

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #302 on: October 05, 2014, 10:44:59 AM »
Thank you topograph.

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #303 on: December 05, 2014, 03:51:46 PM »
Any news about Profile Along An Alignment ?

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #304 on: December 15, 2014, 12:27:56 PM »
hi, how to plot interpolate elevation grid using lisp.
« Last Edit: December 17, 2014, 09:07:47 PM by sanju2323 »

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #305 on: December 15, 2014, 03:53:00 PM »
sanju,

Don't know if it is a question , but assuming it is,
all you need to do is to give a starting coordinates
and a spacing then call getz in a loop.

ymg

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #306 on: December 15, 2014, 04:04:41 PM »
Topographer,

I've done some more work on profile.

However I am still not set as to how we should define an alignment.

It could be a 3dpolyline with extended data to define the horizontal curves
the vertical curves, the spirals etc.

All this not entirely clear in my head.

As it is you can get the profile from a simple lwpolyline or a 3dpoly (Straigth Line Only)

ymg

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #307 on: December 16, 2014, 11:34:26 AM »
YMG sir,
        I need lisp to draw spot elevation at grid format.
« Last Edit: December 16, 2014, 11:51:54 AM by sanju2323 »

ElpanovEvgeniy

  • Water Moccasin
  • Posts: 1569
  • Moscow (Russia)
Re: Triangulation (re-visited)
« Reply #308 on: December 17, 2014, 10:55:42 AM »
hi, You can plot the surface of the 3d elevation grid using lisp.

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #309 on: December 17, 2014, 01:57:34 PM »
Hi Evgenyi,

Assuming he has a break line in this zone, the triangulation
would be a Constrained Delaunay Triangulation. (CDT)

From sanju's sample drawing, he did not triangulate  and contour
it with your routine or my modifications of it.

We have not seen much of you lately, hope everything is fine.

How would you address the internal storage of alignment for profile ?

ymg


sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #310 on: December 17, 2014, 08:43:48 PM »
First I think you are not turn on all layers of sample drawing.
Second I don't know how to calculate and plot to elevation grid via lisp.

RAYAKMAL

  • Guest
Re: Triangulation (re-visited)
« Reply #311 on: December 18, 2014, 10:30:16 PM »
I found out on TriangV0.5.9A.LSP

The result of
Code: [Select]

(setq prof (cons (list (vlax-curve-getDistAtPoint en p) (caddr (getz p t1 t2 t3))) prof))


sometimes contains nil and crashes my program. I modified it and use this instead:

Code: [Select]
      (if (vlax-curve-getDistAtPoint en p)
        (setq prof (cons (list (vlax-curve-getDistAtPoint en p)
                               (caddr (getz p t1 t2 t3))
                         )
                    prof)
        )
      );end if

« Last Edit: December 18, 2014, 11:33:43 PM by RAYAKMAL »

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #312 on: December 18, 2014, 10:56:57 PM »
RAYAKMAL sir,
    Please attach lisp TriangV0.5.9A.LSP If you made changes

RAYAKMAL

  • Guest
Re: Triangulation (re-visited)
« Reply #313 on: December 18, 2014, 11:39:30 PM »
RAYAKMAL sir,
    Please attach lisp TriangV0.5.9A.LSP If you made changes

Sorry, I don't think I have a right to change anything. Probably what the other found is different than mine.
I just mentioned here in the forum, just in case someone use some of the codes from TriangV0.5.9A.LSP and found the same error.
Anyway, thank you for your suggestion.

sanju2323

  • Newt
  • Posts: 68
Re: Triangulation (re-visited)
« Reply #314 on: January 05, 2015, 03:04:36 AM »
Profile From Contour Lines