POV-Ray : Newsgroups : povray.general : A new SDL Idea : Re: A new SDL Idea Server Time
31 Jul 2024 14:33:44 EDT (-0400)
  Re: A new SDL Idea  
From: Alain
Date: 16 Oct 2007 22:52:29
Message: <471578ed@news.povray.org>
Bryan Valencia nous apporta ses lumieres en ce 2007/10/16 17:39:
> how about
> 
> public static mesh loadfrom3DS(string filename)
> {
>     //write the code to import 3DS files here.
> }
> 
> then we can do this:
> 
> POVmesh myMesh = loadfrom3DS("somefile.3ds");
> 
> //sorry the object keyword is already taken.
> 
> 
> 
As a mesh IS an object, you can use: object MyMesh = import3DS("MyObject.3ds") 
without any problem nor any conflict.
Here, import3DS(...) is a new function that return a mesh object from a .3DS 
file. It can have a different name if the developing team prefer, such as:
load3DS, loadfrom3DS, ... or load_object(<object_type>, "Object_Name")

-- 
Alain
-------------------------------------------------
Where the press is free and every man able to read, all is safe.
Thomas Jefferson


Post a reply to this message

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