Good afternoon. I’m trying to save a file in 3ds format stl . Everything runs without errors, but the wrong stl file.
help me please
My code :
help me please
My code :
public static void Run3DCAD(string file, string ofile)
{
string path = file;
string result = Path.GetFileNameWithoutExtension(file);
//ExStart:Save3DScene
// The path to the documents directory.
{
string path = file;
string result = Path.GetFileNameWithoutExtension(file);
//ExStart:Save3DScene
// The path to the documents directory.
// Load a 3D document into Aspose.3D
Scene scene = new Scene();
// open an existing 3D scene
scene.Open(file);
// save Scene to a stream
MemoryStream dstStream = new MemoryStream();
scene.Save(dstStream, FileFormat.Discreet3DS);
// Rewind the stream position back to zero so it is ready for next reader.
dstStream.Position = 0;
// save Scene to a local path
result = "\u005C" + result;
scene.Save(ofile + result + "_converted" + ".stl", FileFormat.STLASCII);
//ExEnd:Save3DScene
}</font></span></div><div><span style="background-color: rgb(255, 255, 255); line-height: 24px; white-space: pre-wrap;"><font color="#212121" face="arial, sans-serif"><br></font></span></div>