Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 9th May 2011 00:17 Edited at: 21st Feb 2013 16:24
Dear friends in the forum:

please I need STL file plug-in that can upload objects from Auto cad STL files.


regards folks

SH4773R
16
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 9th May 2011 01:47 Edited at: 9th May 2011 02:21
EDIT: nevermind


My software never has bugs, it just develops random features.
C4: silly putty for men.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th May 2011 16:06
Quote: "please I need STL file plug-in that can upload objects from Auto cad STL files"

Firstly is there a reason you have to use the binary version of stl as I'm sure you could do it yourself if you can convince your client to use ASCII stl files.

Secondly this is the third thread you've started for the same subject. This will just get annoying as it is considered spamming. Just stick with one thread and people will see the full history of your problem and hopefully a resolution.

Did you try the code from this thread? http://forum.thegamecreators.com/?m=forum_view&t=12043&b=1

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 9th May 2011 17:28
probably you're right. it seems that am looking in the wrong place.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 9th May 2011 17:41
Quote: "probably you're right. it seems that am looking in the wrong place."

So did you try that code? It looks pretty close to me but I can't test it at the moment as I'm at work.

I actually work as a CAD software developer and might be able to help if I can find the time to learn a little more about STL files etc.

You don't need a plugin just the code to import / export simple STL files right?

You have been given links but not commented on whether they worked, did they?

If I can load your object I'll give you the code for free. Most people who can help here will do so for free.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 10th May 2011 01:43
Thanks baxslash, you're a real valued member.

I tried the recommended code long ago but didn't work because the binary file seems to be sort of new type of binary. so, it was difficult to understand the format. I worked on the recommended code before your advice but no chance.
however, as well I couldn't get my client to change his mind for reasons that I understand very well.

I know c++ very well but I don't know OpenGL otherwise the problem may have been simpler.

I contacted the support team and they said that I can only solve the problem using c++ (something that I already figured out.)
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th May 2011 10:55
Quote: "I contacted the support team and they said that I can only solve the problem using c++ (something that I already figured out.) "

Could you post their explanation as it might help to solve it?

I'm learning about stl to try and help you out so I'll keep you posted.

baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th May 2011 12:30 Edited at: 10th May 2011 16:56
A quick update:
I have just loaded part of your model you posted in the other thread. The problem seems to be that using the method in the link I gave you loading slows down dramatically after the first 1200 or so polys. There are around 9800 polys in that model which is going to maybe never load. I'm going to try another method and get back to you.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 10th May 2011 13:10
this was the support team answer:
I am sorry we have no support for autocad or STL files. You will need to write a plugin for DarkBASIC Professional that allows loading of this file standard. However this must be done in C++ if you do not understand C++ then this will not be possible for you.
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 10th May 2011 16:42 Edited at: 10th May 2011 17:00
Quote: "You will need to write a plugin for DarkBASIC Professional that allows loading of this file standard. However this must be done in C++ if you do not understand C++ then this will not be possible for you."

Wrong!!!

Attached is a project that will load stl files in the format you provided using some only slightly modified code from that provided by @RapidTools in the link I posted.

Not sure if it will fully satisfy your requirements but let me know if it needs tweaking ;P

EDIT: Here's an image. By the way we could easily speed up loading times if needed by not using "sync" in the "LoadSTL" function.


This function will ONLY load the binary type STL such as you provided and does not check for ASCII format files.

basjak
16
Years of Service
User Offline
Joined: 16th Apr 2010
Location: feel like signing up for mars
Posted: 11th May 2011 01:26
Amazing!!!!!!!!!!!, it was loaded within a second. I read your code and I can't believe that the dummy bytes has caused me all this mess. however, tomorrow I will sit on the code and try different files. as well need to discover how did you know the EOF (end of file), anyway that is simple.

many thanks baxslash
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 11th May 2011 10:36
Quote: "as well need to discover how did you know the EOF (end of file)"

Yes very simple, the value of 'f' is the number of polys.

Glad to help

Login to post a reply

Server time is: 2026-07-10 21:41:47
Your offset time is: 2026-07-10 21:41:47