11-29-2019, 06:54 PM
I tried...
the problem is that I have an STL file with inside a cube and a sphere.
I read STL file and I add it to a viewport here is the code:
Dim readmodel3d As New Model3DGroup
Dim assimpWpfImporter As New AssimpWpfImporter
readmodel3d.Children.Add(assimpWpfImporter.ReadModel3D(mfile))
Dim modelarray = New ModelVisual3D
modelarray.Content = readmodel3d
myview.Children.Add(modelarray)
I added an handler but when i click on the sphere and apply a trasformation the transformation is applied on shere and on cube.
So i can hint the single object.
Where I,m wrong?
the problem is that I have an STL file with inside a cube and a sphere.
I read STL file and I add it to a viewport here is the code:
Dim readmodel3d As New Model3DGroup
Dim assimpWpfImporter As New AssimpWpfImporter
readmodel3d.Children.Add(assimpWpfImporter.ReadModel3D(mfile))
Dim modelarray = New ModelVisual3D
modelarray.Content = readmodel3d
myview.Children.Add(modelarray)
I added an handler but when i click on the sphere and apply a trasformation the transformation is applied on shere and on cube.
So i can hint the single object.
Where I,m wrong?

