11-10-2020, 05:42 PM
(This post was last modified: 11-11-2020, 06:02 PM by kreativasas.)
I tried but if i ceate a viewport with only a sphere3d (for example) and i try to export everything is ok.
When i read stl, put them in the content of a ModelVisual3D and in a 3dvieport, when i export AssimpWpfExporter returns me false!
see the code below.
I noticed that the samples wpf doesn't export my stl file too. So i tried to export a dae: nothing
Help me!
When i read stl, put them in the content of a ModelVisual3D and in a 3dvieport, when i export AssimpWpfExporter returns me false!
see the code below.
I noticed that the samples wpf doesn't export my stl file too. So i tried to export a dae: nothing
Help me!
Code:
Dim AssimpWpfImporter As New AssimpWpfImporter
Dim readmodel3d As Model3D = AssimpWpfImporter.ReadModel3D(mfilestl)
Dim modelarray As New ModelVisual3D
modelarray.Content = readmodel3d
myview.Children.Add(modelarray)
Dim AssimpWpfExporter = New AssimpWpfExporter()
AssimpWpfExporter.AddViewport3D(myview)
isExported = AssimpWpfExporter.Export(fileName, "stl")
