POV-Ray : Newsgroups : povray.general : A new SDL Idea : Re: A new SDL Idea Server Time
31 Jul 2024 14:21:25 EDT (-0400)
  Re: A new SDL Idea  
From: Bryan Valencia
Date: 16 Oct 2007 17:39:56
Message: <47152fac$1@news.povray.org>
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.



---

*runs for cover*

Warp wrote:
> Bryan Valencia <209### [at] gmailcalm> wrote:
>> POVMesh myMesh = new POVMESH.loadfrom3DS("Somefile.3DS");
> 
>   Why the obsession with 'new'?
> 
>   How about:
> 
> Object o = import3DS("Somefile.3ds");
> 
>   More abstract, less confusing syntax. No need for useless 'news'.
> 


-- 
Bryan Valencia

"I'd rather live with false hope than with false despair."


Post a reply to this message

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