Looking at the demos on that site, they all seem to be for .json files :(

But,

There is the .js program that sets up the scene, the lights etc.

http://rboue.tiddlyspot.com/#Three.js%2FDemos%2Fhorse.js

There is the actual data file, in our case this would be the stl:

http://rboue.tiddlyspot.com/#Three.js%2FTests%2Fmodels%2Fanimated%2Fhorse.json

and then the tiddler containing the widget:

http://rboue.tiddlyspot.com/#Three.js%2FDemos%2Fhorse

So I THINK it just needs something like 
this? 
https://stackoverflow.com/questions/11060261/what-is-the-preferred-method-for-loading-stl-files-in-three-js

but my brain melted at that point.

Would

 https://github.com/tonylukasavage/jsstl 

be any help/ use?

Finally this, just because it looks shiny: 

https://threejs.org/examples/#webgl_loader_stl

Any big brains out there any insight?

Here is a simple cube as STL if anyone can make this magic happen!





On Tuesday, 10 August 2021 at 21:15:56 UTC+1 Alex Davies wrote:

> There there needs to be what, a display widget and and a parser?
>
> On Tuesday, August 10, 2021 at 1:57:39 PM UTC-3 Ste wrote:
>
>> There is this :
>> http://rboue.tiddlyspot.com/#Three.js%2Fintroduction 
>>
>> Which has, I think, the ability to display STL files. 
>> It's been on my to do list to look at and have a go but... 
>>
>>
>>
>> On Tuesday, 10 August 2021 at 16:30:00 UTC+1 Alex Davies wrote:
>>
>>> I'd really like to be able to include STL files in my tiddlywiki, but 
>>> actually supporting a new file type is a bit beyond me. It seems like it 
>>> would be entirely doable using threejs, but a bit more challenging to make 
>>> it happen "automatically" so that tiddlywiki doesn't try to show me several 
>>> MB text files.
>>>
>>> Any thoughts on how that could be accomplished? Something to do with 
>>> mime type detection?
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/92f05658-90ba-480c-812f-bd9cf58e95e4n%40googlegroups.com.

Attachment: Part Studio 1 - Part 1.stl
Description: application/vnd.ms-pki.stl

Reply via email to