octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47677] non-planar patches are not supported i


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #47677] non-planar patches are not supported in Octave
Date: Sat, 2 Jul 2016 19:53:47 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:48.0) Gecko/20100101 Firefox/48.0

Follow-up Comment #4, bug #47677 (project octave):

Attached is a patch that finds planar subsets for non-planar faces.
When using OpenGL, these subsets are drawn separately.

There are different approaches for separating non-planar polygons into planar
subsets. The approach taken in this patch is the following:
1- Find the largest sequence starting from edge(1) that gives a planar
polygon.
2- Including edge(1), find the largest sequence starting from the last edge of
the prior polygon that gives a planar polygon.
3- Repeat from 2 until the face is complete.

I also attached a script for testing with some exemplary non-planar polygons.

(file #37672, file #37673)
    _______________________________________________________

Additional Item Attachment:

File name: patch_with_nonplanar_faces.patch Size:9 KB
File name: test_nonplanar_patches.m       Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47677>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]