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

0 Members and 3 Guests are viewing this topic.

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #120 on: November 26, 2013, 05:08:41 PM »
hi Ymg ,I have a question.I am typing Tin and the lisp run and makes tins
when i write contours the lisp not working.Which command should write to make contours ?

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #121 on: November 26, 2013, 10:54:17 PM »
pedroantonio,

The version you have has a bug whereby the majcont variable is not initialized.

Make sure you change the setting for major contour in the dialog boxe
before running then it should work.

There will be a revised version very soon with many improvements.


ymg

You can also add in the code the following line majcnt 5.0:

Code - Auto/Visual Lisp: [Select]
  1. (setq dcl_id(load_dialog dclfiletemp)
  2.         intvL   '("  1" "  2" "  5" " 10")
  3.         majcntL '("  5" " 10" " 50" "100")
  4.         hfacL   '("  Max" "  -20%" "  -40%" "  -60%" "  -80%" " Min" "None")
  5.         hfacTL  '(0.5 0.6 0.7 0.8 0.9 1.0 5)   
  6.         majcolor 10
  7.         mincolor 14
  8.         intv 1
  9.         majcnt 5.0 ;add this line
  10.         hfac 0.5
  11.   )
  12.  
« Last Edit: November 26, 2013, 11:13:46 PM by ymg »

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #122 on: November 27, 2013, 04:21:13 AM »
Thank you ymg . Where i can find the new version ?

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #123 on: November 27, 2013, 05:52:19 AM »
pedroantonio,

Quote
Thank you ymg . Where i can find the new version ?

The new version will be available here when I publish it.

Meanwhile just add the majcont line.

ymg

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #124 on: November 29, 2013, 02:27:33 AM »
Ymg i try to do this change in the code

Code: [Select]
intvL   '(" 0.02" " 0.1" " 0.2" "  1" "  2" "  5" " 10")
majcntL '(" 0.1" " 0.5" " 1" "  5" " 10" " 50" "100")
hfacL   '("  Max" "  -20%" "  -40%" "  -60%" "  -80%" " Min" "None")

but the code didn't work for this value !!

Code: [Select]
intvL   '(" 0.02" " 0.1" " 0.2"......................)
majcntL '(" 0.1" " 0.5" " 1" ..........................")
hfacL   '("  Max" "  -20%" "  -40%" "  -60%" "  -80%" " Min" "None")"

Sometimes is important if you  have the ability to give values ​​ smaller than 1m for (MNR)

can you tell me why ?

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #125 on: November 29, 2013, 04:05:39 AM »
pedroantonio,

The next version does fractionnal contour.

You need to change more than just the list for this to happen.

If you have an immediate need I can send you an advanced copy.

However there are still quite a few things to change before issuing it at large.

ymg

pedroantonio

  • Guest
Re: Triangulation (re-visited)
« Reply #126 on: November 29, 2013, 05:44:36 AM »
yes if you can ...

Thanks

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #127 on: February 09, 2014, 04:39:14 AM »
Here is an update to the TIN program.

It is still very much a work in progress, so I would appreciate
bug reports and enhancement  suggestion.

The Contouring part has been accelerated a little, and now work with
fractionnal contours.

You can also call CONT to do contours on a Selection of existing 3DFACE.

Express Tools is required, as I make use of the Progress Bar.

Still missing Breaklines handling for the triangulation,
and Highlighting of Depression Contours for the contouring section.


ymg
« Last Edit: March 14, 2014, 04:30:57 AM by ymg »

chlh_jd

  • Guest
Re: Triangulation (re-visited)
« Reply #128 on: February 22, 2014, 11:02:07 PM »
Here is an update to the TIN program.

It is still very much a work in progress, so I would appreciate
bug reports and enhancement  suggestion.

The Contouring part has been accelerated a little, and now work with
fractionnal contours.

You can also call CONT to do contours on a Selection of existing 3DFACE.

Express Tools is required, as I make use of the Progress Bar.

Still missing Breaklines handling for the triangulation,
and Highlighting of Depression Contours for the contouring section.
ymg
Great Program , Yang !
The last version is higher effect .
I has some suggest :
1. Just your description , "You can also call CONT to do contours on a Selection of existing 3DFACE." , I hope It can .
2. Smoothing effect may also need to improve some , just like the pic. I post .

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #129 on: February 22, 2014, 11:28:17 PM »
chlh_jd,

Quote
"You can also call CONT to do contours on a Selection of existing 3DFACE." , I hope It can

Thanks for the feedback.

Agree that my wording is not too clear.  What was meant by that is in the case where you already have
a selection of 3dfaces created by another program, you can use command "CONT" and do the contouring.

Normal way would be a set of points that you triangulate and then contours.

I do not understand exactly what you mean from the attached image.  Could you clarify?

I've been playing around a bit with it and manage to accelerate it some. Shall post it soon.
We still need to handle the marking of "Depression Contour" currently not available.

I highly recommend Christensen's paper, it is well worth the reading.

ymg
« Last Edit: February 22, 2014, 11:45:41 PM by ymg »

chlh_jd

  • Guest
Re: Triangulation (re-visited)
« Reply #130 on: February 23, 2014, 09:17:39 AM »
chlh_jd,

Quote
"You can also call CONT to do contours on a Selection of existing 3DFACE." , I hope It can

Thanks for the feedback.

Agree that my wording is not too clear.  What was meant by that is in the case where you already have
a selection of 3dfaces created by another program, you can use command "CONT" and do the contouring.
I'm sorry for Just finished reading your code in *gress5.lsp and foud add cont command .
Quote
Normal way would be a set of points that you triangulate and then contours.

I do not understand exactly what you mean from the attached image.  Could you clarify?
Sorry for my poor English ,  I mean that , the zone I mark , smoothed contours less than ideal .
I've seen Christensen's paper , perhaps no suit for the case I tesed .

Quote
I've been playing around a bit with it and manage to accelerate it some. Shall post it soon.
We still need to handle the marking of "Depression Contour" currently not available.

I highly recommend Christensen's paper, it is well worth the reading.

ymg
Not long ago, I also wrote a contour program is based on existing 3DFACES, and not for smoothing; and I'v lost in smooth annoying.
Looking forward to your masterpiece .  :-)


ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #131 on: February 23, 2014, 10:38:13 AM »
I believe that this zone would get crossing contours unless you do it this way.

In other word this is inherent to the method.

ymg

chlh_jd

  • Guest
Re: Triangulation (re-visited)
« Reply #132 on: March 05, 2014, 12:20:36 AM »
I believe that this zone would get crossing contours unless you do it this way.

In other word this is inherent to the method.

ymg

Maybe this zone must add point .

I agree you just I can't found better .  :-)

In THis true case , it take some wrong .

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #133 on: March 05, 2014, 05:56:15 AM »
chlh_jd,

Yes this is a bug introduced in the latest round of optimization.

Trying to locate the culprit and will post a revision.

ymg

ymg

  • Guest
Re: Triangulation (re-visited)
« Reply #134 on: March 06, 2014, 12:28:37 AM »
chlh_jd,

Here is a revision with the bugs in contour generation removed.

Bear in mind, that this is still a work in progress, so the routine does  not clean themselves nicely on completion.

ymg
« Last Edit: March 14, 2014, 04:45:47 AM by ymg »