• Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Social Media
    •   @Wings3dOfficial
    •   @Wings3dOfficial
    •   Wings3dOfficial
    •   Wings3dOfficial
  • Register
  • Login
  • Website
  • Search
  • Member List
  • Help
  • Old Forum
  • Register
  • Login
Wings 3D Development Forum Wings 3D Design & Development v
« Previous 1 … 4 5 6 7 8 … 11 Next »
Export: How to triangulate a face?

 
  • 0 Vote(s) - 0 Average
Export: How to triangulate a face?

PERECil
Offline

Junior Member

Posts: 2
Threads: 1
Joined: May 2016
#1
06-15-2016, 09:54 AM
Hello all,

I'm currently writing a Content Pipeline Extension for MonoGame that is able to handle .wings files. I was able to read through the file, vertices and faces and so on.

However, I don't have any idea how to triangulate the face, as the face maybe convex (shaped like a U) and will be dependent on which vertex you use to start the triangle strip.

I've read that Delaunay triangulation may help in this case, but I'm not really sure how to use it.

Can someone share some hints on how to do that?

Thanks
ggaliens
Offline

Erlang Hacker
Posts: 954
Threads: 143
Joined: Nov 2012
#2
06-15-2016, 05:01 PM
Is the "U" shaped face ... also a BENT face ? Is it at least a planar U ?

If you can show the model in the round or share an example model ... it might help foster more indepth discussion.

Screen shot ?
dgud
Offline

Grumpy Dev
Posts: 692
Threads: 37
Joined: Nov 2012
#3
06-15-2016, 06:37 PM (This post was last modified: 06-15-2016, 06:41 PM by dgud.)
I would write an exporter plugin in a made-up format instead of trying to parse wings files.
And force the triangulation in the exporter.
I have made an example of how to do that (a long time ago) here:
http://erlang.org/~dgud/wings/wpc_ex1.erl.html remove html from link for the source.

Which I use when a I want to play with opengl and wants to load models to test the code on.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode