how to do surface triangulation?

This is a discussion on how to do surface triangulation? within the C Programming forums, part of the General Programming Boards category; I want to calculate the surface area of an irregular object, the object has been grided and now I know ...

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    3

    how to do surface triangulation?

    I want to calculate the surface area of an irregular object, the object has been grided and now I know the coordination of grids right on the boundary, the next step is that I have to try to use surface triangulation to creat traingles on boundary, then calculate the surface area(or other better ways you can think?).

    please look at this link:
    http://www2.imm.dtu.dk/~jab/gallery/polygonization.html
    but I do not know how to write C code for this transformation, anyone can help me? reply here or email <<snipped>>? thanks
    Last edited by Salem; 02-27-2009 at 12:16 PM. Reason: Snipped email address

  2. #2
    Registered User
    Join Date
    Nov 2006
    Location
    japan
    Posts
    126

    Wink So much to do

    I see what you want to do.
    I think that it would be better to have a kind of structure that holds 3 points coordinates (for each triangle) instead of just the coordinates. And maybe also surrounding triangles information would be helpful (maybe pointers to surrounding triangles)
    Also you will have to think a smart way to go throughout all your data in order to calculate the surface area.

    I can see there is so much to do in here, but I would start by looking some kind of library that does the this kind of job. (good rendering libraries should have some math functions that calculates areas. etc)

    If you want to write it in C from 0 and with out deep knowledge of structures it can be a very hard task to accomplish friend.
    Mac OS 10.6 Snow Leopard : Darwin

  3. #3
    Registered User
    Join Date
    Nov 2006
    Location
    japan
    Posts
    126

    Wink

    Quote Originally Posted by adameye View Post
    I know the coordination of grids right on the boundary, the next step is that I have to try to use surface triangulation to creat traingles on boundary, then calculate the surface area.
    Could you post a sample of data? Is just curiosity. Thanks.
    Mac OS 10.6 Snow Leopard : Darwin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. OpenGL: How to make surface shiny
    By ting in forum Game Programming
    Replies: 6
    Last Post: 06-18-2008, 06:09 PM
  2. Another weird error
    By rwmarsh in forum Game Programming
    Replies: 4
    Last Post: 09-24-2006, 11:00 PM
  3. Please help with my game
    By jjj93421 in forum Game Programming
    Replies: 10
    Last Post: 04-13-2004, 12:38 AM
  4. Replies: 3
    Last Post: 08-14-2003, 02:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21