Jump to content

how to do surface triangulation?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
adameye

adameye

    Newbie

  • Members
  • Pip
  • 1 posts
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?).


but I do not know how to write C code for this transformation, anyone can help me? reply here or email <adameye at gmail>? thanks

#2
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
To find the surface area of any object:
create a function which tells you whether any point is inside the object's boundaries.
then test a grid of points that are in a square around the object. Each point should be a certain distance away from the other points in a grid. thus you are pixellating the object. If a point is in the object, then add the area of a square the size of the grid squares to the total area.
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz