Sign in to follow this  
rhumbaflappy

CellGrid / Remesh

Recommended Posts

Hi,The area I am attempting to model is going to require a substantial amount of coast remeshing, so to make the task slightly easier I wrote a small program.To use it I take a screen shot of an area with cellgrid and load this into the program. I can then draw up to 16 polys, with up to 16 points each and then the program generates the code that I paste into my autoasm document.The problem is the corner of the area does not seem to match the cellgrid coordinates. Am I trying to be too accurate, or is there another reason.The following code produces the result in the pics.Thanks, David;PolyPoints for cell: 381_111 AREA: 21_28 ;---* Polly1 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 12,0,1,0,0 LWMPoint 71,0 LWMPoint 92,36 LWMPoint 91,48 LWMPoint 81,58 LWMPoint 78,66 LWMPoint 66,75 LWMPoint 27,90 LWMPoint 17,89 LWMPoint 0,93 LWMPoint 0,255 LWMPoint 255,255 LWMPoint 255,0 ;---* Polly2 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 13,0,1,75,0 LWMPoint 71,0 LWMPoint 92,36 LWMPoint 91,48 LWMPoint 81,58 LWMPoint 78,66 LWMPoint 66,75 LWMPoint 26,90 LWMPoint 17,89 LWMPoint 0,93 LWMPoint 0,65 LWMPoint 42,53 LWMPoint 49,26 LWMPoint 40,0 ;---* Polly3 *--- LWMDataAreaDrawPolygons 1, 2, 1, 21, 28 LWMPoly2 5,0,1,85,0 LWMPoint 40,0 LWMPoint 49,26 LWMPoint 42,53 LWMPoint 0,65 LWMPoint 0,0

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi Davidg58.Your tool looks great! Here's a link to a post I made that had no response. :(http://ftp.avsim.com/dcforum/DCForumID10/1182.htmlThe remesh Macro code was a first attempt to come up with some sort of logical remeshing.Note that the 'FS2002.cfg' line:TERRAIN_MAX_VERTEX_LEVEL=19...is the default. When changes to :TERRAIN_MAX_VERTEX_LEVEL=21Your edge may change... if not, then we'll have found a edge surrounding the flatten. Also, try to place thin, 2 point flattens right at the surrounding edge of the adjacent Areas. That might force the mesh down. ( I don't know if the data stream order would matter here.Please let us know what you find.Dick

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this