SceneKit: export scene as STL file for 3D printing? - stl

How can you export a SceneKit scene as a STL file (for 3D printing)?
The write function from SCNScene does not appear to support the STL format.

you can use SCNScene's write(to:options:delegate:progressHandler:).
While the online documentation only mentions Collada and SceneKit file formats, the header documentation states that:
macOS 10.10 and lower only supports exporting to .dae files.
Starting iOS 10 exporting supports .scn as well as all file formats supported by Model I/O.
Starting macOS 10.11 exporting supports .dae, .scn as well as file all formats supported by Model I/O.

The export function in ModelIO (MDLAsset) appears to support STL, but I've never tried it myself.
MDLAsset:export()

Related

Tiff Output is not as expected for Black and white 1200dpi LZW test file created using Universal Document Converter 6.7 & 6.8 versions

Respected Sir/Madam,
I have a doubt regarding LZW BW 1200dpi tiff file creation using “UDC driver 6.7/6.8 version”.
If we disable “'Perform High-Quality Smoothing”, then output data are not visible in output files.
If we enable this option, it is working fine.
Also, working fine for UDC driver 6.4 for both Enable/Disable 'Perform High-Quality Smoothing'.
We are using below tiff library version in our software.
/* Version number of package */
#define VERSION "4.0.3"
Could you please clarify our below doubts.
LZW support for 'Perform High-Quality Smoothing' always should be enabled?
Is this issue introduced in UDC driver version 6.7?
https://www.print-driver.com/overview/version-history
Best Regards,
Shantala R
Please contact the developers of the software regarding their product.
https://www.print-driver.com/support

Using DX11 and DXVA2

I am trying to test decoding a h264/h265 video (with just a single iframe) using DX11 and DXVA2. This is on windows 7 so I probably have to interop between 2 d3d11 devices, one with 11.1 feature set and the other with 9.3. My question is since there is a severe lack of samples for loading a h264 file and decoding it using DXVA, I was wondering if there is a guide for how to layout the data to feed into DXVA to decode? I've read this How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7? as well as https://msdn.microsoft.com/en-us/library/windows/desktop/hh162912(v=vs.85).aspx but neither has any guide on how to do the above.
Thanks
If you want a working sample to understand how to feed data into DXVA, look here : MFNode. Under MFTDxva2Decoder, you will see how to feed data. It is for mpeg1/2 file format, but the same apply to H264 (with shades, of course).
EDIT
See my response : How do I use Hardware accelerated video/H.264 decoding with directx 11 and windows 7?

XMIDI file format

I am going to write a converter from Miles Sound System Extended MIDI to standard MIDI file, but I am unable to find any good documentation on this format. There is a DOS converter at http://www.hitsquad.com/smm/programs/xmi2mid/, but it is useless on 64-bit platforms and there aren't any sources of this program. There is also John Miles' website http://www.ke5fx.com/ where older AIL Version 2 is, but my C and assembly language capabilities aren't good enough to understand it. I have found a converter in Java at http://de.glibly.de/?site=software&lang=eng, but it has strange tempo issues and I haven't found a way to fix it yet. Could you point me to some documentation or a working converter with sources, preferably in C#?
The only completely working converter I've found so far is the in_midi.dll plugin of WinAmp.

Reading STL files in Flash

Has a library been released to read .STL files in AS3? It seems to be a common 3d file and i have yet to find any hope in outputting an .STL file in Stage3d.
I've written just the library you were looking for. You can find it at https://github.com/pranavh/AS3STLViewer
It uses Away3D to display the parsed stl file.
Hope you like it.

pickle rpy2 objects in windows

I'm using rpy2 V2.0.8 with Windows. I'm using rpy2 to for classification and would like to save (pickle) the model (for example the output from glm). However, as far as I know V2.0.8 does not support pickling rpy2 objects (and this is the latest version for Windows).
Do you have any suggestions how can I pickle / save the classification output in a file?
Thanks!
Try one of:
find out why there is no Windows support and do something about it ;-)
contribute windows support
roll out your own solution using R's mechanism for serialization (which is what rpy2 >= 2.1.0 is doing)