POV-Ray : Newsgroups : povray.pov4.discussion.general : New feature Server Time
22 Dec 2024 12:46:48 EST (-0500)
  New feature (Message 1 to 7 of 7)  
From: JayWiz
Subject: New feature
Date: 29 Jan 2009 22:20:00
Message: <web.4982712437782a63818a99850@news.povray.org>
I use PovRay at work to do 3D views of new window products. It is a real pain to
first create the shape in AutoCAD, extrude it, save it as 3DS, convert to mesh2,
then render. Is there some way we could have a prism type that would allow
curves instead of straight lines?. I know all about the other line types, but
frankly they are cumbersome. Ideally I would like to reads in the DXF polyline
and then use it in a prism.

The rendering I have done have been impressive to the architects and owners and
they all ask if I used AutoCAD...no, I say, I use POVRay!

Jay


Post a reply to this message

From: clipka
Subject: Re: New feature
Date: 30 Jan 2009 11:50:00
Message: <web.49832ede805a7c7ebdc576310@news.povray.org>
"JayWiz" <nomail@nomail> wrote:
> Is there some way we could have a prism type that would allow
> curves instead of straight lines?. I know all about the other line types, but
> frankly they are cumbersome. Ideally I would like to reads in the DXF
> polyline and then use it in a prism.

I have no idea about the DXF polyline, but doesn't any of the linear_spline /
quadratic_spline / cubic_spline / bezier_spline prism types do the job?

Then again, it seems that your problem is not so much how to represent it in
POV-Ray scene language, but the workflow of getting it from DXF to there
without going via braindead triangle meshes, right?


Maybe it's time for a project aimed at getting different file formats converted
to POV SDL without reducing POV to a mere mesh renderer (after all, it *can* do
spline-based prisms, it *can* do bezier patches, it *can* do... well, quite a
lot.

.... or maybe even "include" them directly from SDL somehow?


> The rendering I have done have been impressive to the architects and owners
> and they all ask if I used AutoCAD...no, I say, I use POVRay!

Heh, great to hear - looks like it is *some* good after all ;)


Post a reply to this message

From: scott
Subject: Re: New feature
Date: 2 Feb 2009 03:21:07
Message: <4986acf3$1@news.povray.org>
> Maybe it's time for a project aimed at getting different file formats 
> converted
> to POV SDL without reducing POV to a mere mesh renderer (after all, it 
> *can* do
> spline-based prisms, it *can* do bezier patches, it *can* do... well, 
> quite a
> lot.

I would love a converter from STEP files to POV SDL.  STEP files are a 
standard format for interchange of 3D CAD data, and are made up of bounded 
planes, spheres, torii and bezier patches etc.  I don't know of any software 
that can render these files without tesselating to a triangle mesh first.


Post a reply to this message

From: JayWiz
Subject: Re: New feature
Date: 2 Feb 2009 22:55:01
Message: <web.4987bf93805a7c7e33c87b060@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "JayWiz" <nomail@nomail> wrote:
> > Is there some way we could have a prism type that would allow
> > curves instead of straight lines?. I know all about the other line types, but
> > frankly they are cumbersome. Ideally I would like to reads in the DXF
> > polyline and then use it in a prism.
>
> I have no idea about the DXF polyline, but doesn't any of the linear_spline /
> quadratic_spline / cubic_spline / bezier_spline prism types do the job?
>
> Then again, it seems that your problem is not so much how to represent it in
> POV-Ray scene language, but the workflow of getting it from DXF to there
> without going via braindead triangle meshes, right?
>
>
> Maybe it's time for a project aimed at getting different file formats converted
> to POV SDL without reducing POV to a mere mesh renderer (after all, it *can* do
> spline-based prisms, it *can* do bezier patches, it *can* do... well, quite a
> lot.
>
> .... or maybe even "include" them directly from SDL somehow?
>
>
> > The rendering I have done have been impressive to the architects and owners
> > and they all ask if I used AutoCAD...no, I say, I use POVRay!
>
> Heh, great to hear - looks like it is *some* good after all ;)

The normal lathe uses straight lines to connect the "dots". If a curve could be
used then the polyline object from autocad (or TurboCAD which I also use) could
be easily translated. The other lathe types are not really condusive to the
objects I use. I have attached a sample image of what I show to customers and
P&D for their use.

Jay


Post a reply to this message


Attachments:
Download '90ssgmull.bmp' (577 KB)

From: clipka
Subject: Re: New feature
Date: 3 Feb 2009 07:20:00
Message: <web.4988364b805a7c7eea031d410@news.povray.org>
"JayWiz" <nomail@nomail> wrote:
> The normal lathe uses straight lines to connect the "dots". If a curve could be
> used then the polyline object from autocad (or TurboCAD which I also use) could
> be easily translated. The other lathe types are not really condusive to the
> objects I use.

"Curve" is a bit vague, as all the quadratic_spline, cubic_spline and
bezier_spline would fall into that category.

I just googled for what type of spline AutoCAD's "polyline" actually is,
mathematically, only to find that it's not a classic spline at all...

From a geometric point of view, a polyline lathe should be representable as an
(albeit possibly non-trivial) CSG object composed entirely of linear_spline
lathes and tori, and a polyline prism as a CSG object composed entirely of
standard linear_spline prisms and cylinders.


So that might be a point for the To-Do list: Implement a new spline type,
defining a path made up of straight lines and circular arcs.

Question to you as someone familiar with AutoCAD: How's a polyline actually
defined in AutoCAD? Is it basically a polygon, with corners rounded using a
standard radius? Is it a polygon with corners rounded using different radius
for each corner? Or a free intermix of straight lines and arcs?


Post a reply to this message

From: JayWiz
Subject: Re: New feature
Date: 3 Feb 2009 21:20:00
Message: <web.4988fa94805a7c7e92ec99b60@news.povray.org>
"clipka" <nomail@nomail> wrote:
> "JayWiz" <nomail@nomail> wrote:
> > The normal lathe uses straight lines to connect the "dots". If a curve could be
> > used then the polyline object from autocad (or TurboCAD which I also use) could
> > be easily translated. The other lathe types are not really condusive to the
> > objects I use.
>
> "Curve" is a bit vague, as all the quadratic_spline, cubic_spline and
> bezier_spline would fall into that category.
>
> I just googled for what type of spline AutoCAD's "polyline" actually is,
> mathematically, only to find that it's not a classic spline at all...
>
> From a geometric point of view, a polyline lathe should be representable as an
> (albeit possibly non-trivial) CSG object composed entirely of linear_spline
> lathes and tori, and a polyline prism as a CSG object composed entirely of
> standard linear_spline prisms and cylinders.
>
>
> So that might be a point for the To-Do list: Implement a new spline type,
> defining a path made up of straight lines and circular arcs.
>
> Question to you as someone familiar with AutoCAD: How's a polyline actually
> defined in AutoCAD? Is it basically a polygon, with corners rounded using a
> standard radius? Is it a polygon with corners rounded using different radius
> for each corner? Or a free intermix of straight lines and arcs?

A polyline is defined using both straight lines and arcs.

AutoCAD uses radial as a default. The user can then redefine the curve by moving
the endpoints, start angle, end angle, and radius. It also has a center point
and a direction. With this information AutoCAD makes a corner. The corner can
be stretched (made eliptical).Perhaps for a general description, the curve
could be an elliptical curve with a circular curve as a special case. AutoCAD
stores the curve as a true curve but when it is extruded it uses a user defined
number of straight faces with smoothing normals to appear curved, which is why
AutoCAD renderings seem of low quality.

I will post a binary view of a sample rendering (with a low resolution) in the
binary newsgroup.

Jay


Post a reply to this message

From: ingo
Subject: Re: New feature
Date: 12 Feb 2009 14:18:39
Message: <Xns9BB0CE969DD75seed7@news.povray.org>
in news:web.4988364b805a7c7eea031d410@news.povray.org clipka wrote:

> So that might be a point for the To-Do list: Implement a new spline
> type, defining a path made up of straight lines and circular arcs.
> 
> 

Iirc Ron Parker implemented a 'torus-spline' like that as a macro using 
sections of cylinders and torus objects.

ingo


Post a reply to this message

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