POV-Ray : Newsgroups : povray.general : Curved Triangles : Re: Curved Triangles Server Time
17 Oct 2021 21:19:33 EDT (-0400)
  Re: Curved Triangles  
From: John VanSickle
Date: 29 Jun 2002 10:57:20
Message: <3D1DCAD0.90317117@hotmail.com>
Ben Chambers wrote:
> "John VanSickle" <evi### [at] hotmailcom> wrote in message
> news:3D1B59E3.54F30927@hotmail.com...
> > > BTW, it's late here, and I haven't had time to try any meshes
> > > with it. Please let me know if you run into problems doing so
> > > (smooth triangles should convert without problems, but you never
> > > know).
> >
> > I have some code (untested--Rusty takes priority!) that implements
> > a quartic triangular Bezier patch.  There is supposedly an algorithm
> > by which a Loop subdivision surface can be converted into a bunch of
> > these (which makes them much easier to implement).
> All the effort I put into it, and the code already exists somewhere
> else?!?!?  Aaaaargh!
> That's what I get for not researching the topic first!

Yup.  Google is wonderful, but only if you use it.

> BTW, where is that code you were talking about?

Here is the UNTESTED code:

// start of macro code
#macro TriBezier(pA,pB,pC,pD,pE,pF,pG,pH,pI,pJ,pK,pL,pM,pN,pO,cD)
    smooth_triangle {




// end of macro code

I am also generalizing my surface subdivision code to include four-
sided faces (which helps solve a couple of problems with uv-mapping).
That project isn't done yet.


Post a reply to this message

Copyright 2003-2021 Persistence of Vision Raytracer Pty. Ltd.