|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |