POV-Ray : Newsgroups : povray.general : How to draw a curve on a surface? : Re: How to draw a curve on a surface? Server Time
28 Oct 2024 04:49:30 EDT (-0400)
  Re: How to draw a curve on a surface?  
From: Bald Eagle
Date: 30 Sep 2024 10:30:00
Message: <web.66fab550bd22d5536563700825979125@news.povray.org>
"Alfred Knudson" <nomail@nomail> wrote:
> So, it is really true that there is no framework to "draw" on a surface? And one
> has to mimic it with pigmentation, sequence of cylindes, ....

Well, the thing is - POV-Ray is a raytracer, and nearly everything that it deals
with is a 3D object.  There's no inherent way to "draw" infinitely thin 2D
lines.

Plus, there needs to be a way to determine where the surface is.

So, you can create some sort of visible 3D object such as a sphere-sweep, linked
cylinders and spheres, a parametric, and isosurface, etc to position a visible
object that follows the surface according to how you want to draw your line.

If you want the line to be flat and literally ON the surface, you could use the
object {} pattern, and color the surface on way where the line is, and another
way where the line is not.
https://wiki.povray.org/content/Reference:Object_Pattern

There are likely other somewhat functionally equivalent methods - but providing
a link as to exactly what you're looking to do would the most helpful in terms
of finding an answer.

- Bill


Post a reply to this message

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