POV-Ray : Newsgroups : povray.general : Envelope deformation : Re: Envelope deformation Server Time
8 Aug 2025 15:31:00 EDT (-0400)
  Re: Envelope deformation  
From: Josh English
Date: 28 Jul 2025 11:41:35
Message: <68879a2f$1@news.povray.org>
On 7/25/2025 7:04 PM, Bald Eagle wrote:
> Josh English <Jos### [at] joshuarenglishcom> wrote:
>> On 7/25/2025 9:16 AM, Bald Eagle wrote:
>>> Perhaps a script could be written to convert mesh and mesh2 objects to arrays,
>>> and then we can have a macro to define the mesh from those arrays.
>>
>> We would need to be able to serialize the mesh objects, though. I don't
>> know if 4.0 has any plans for that sort of thing. It would be nice to be
>> able to export them after a complicated modeling job.
>>
>> Then again, I have Python at hand and I suspect most of us know other
>> coding languages that could do the same job. I'm trying to be an SDL
>> purist, probably to my detriment.
>>
>> Josh
> 
> Well, we have #read and #write.
> I've written tens of thousands of bicubic patch objects to files that way.
> 
> So it shouldn't be that big of a problem to write a distorted mesh to a new
> file.
> 
> - BE
> 
I do that, too. I create arrays that track arrays and shove them all 
into a mesh2 object. It would be nice to be able to take the created 
mesh2 object and serialize instead of creating everything, writing to a 
file, then importing it. But that's a high-level language thing.

I keep getting tripped up with my years of Python where everything is an 
object.


Post a reply to this message

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