This is the discussion forum for Helix Toolkit.
For bugs and new features, use the issue tracker located at GitHub.
Also try the chat room!
0

Need help with modelImport with large complex STL (= 3D scans etc )

Johnny 6 years ago updated 6 years ago 2

I have developed a WindowsFileExplorerShellExtension using HelixToolkit to show STL files in the Windows File explorer.

Everythings works fine with normal "human made" STL-files, but scanned 3D models converted to STL becomes large and I get OutOfMemory violation at modelimporter.

I have a simplified VS 2017 solution that contains a simple testapplication and a simple STL viewer that popsup when a file is coosen or Drag-n-Droped.

This is the method I have used to create the model

QUESTION?? Is there a better way to create a model from a STL file??


 public void ViewNewStl(string filename)
        {
            
            // WTF!! No file
            if (!File.Exists(filename)) return;

            // Check the file extension to be STL
            FileInfo fileInfo = new FileInfo(filename);
            if (fileInfo.Extension.ToLower() != ".stl") return;

            ModelColor = "Blue";HelixToolkitTestApplication.ziptestapplication

            Filename = filename;

            // Create a model of the STL file

            try
            {
                ModelImporter modellImporter = new ModelImporter();
                modellImporter.DefaultMaterial =
                    new DiffuseMaterial(
                        new SolidColorBrush((Color)ColorConverter.ConvertFromString(modellColor)));
                Model3DGroup model3DGroup = modellImporter.Load(filename);

                StlModel.Content = model3DGroup;

                myViewPort3D.CameraController.ResetCamera();
                myViewPort3D.CameraController.ZoomExtents(0);

            }
            catch (Exception e)
            {
                Debug.WriteLine($"modelimporter crash {e.Message}");
            }

            

        }


0

Interaction of mouse with 3D *.obj file

svensven934 6 years ago updated by anonymous 6 years ago 3

Hi all,


I have imported a car as *.stl file. I want to add some "devices" onto it for visualization.So When I perform a right click on the Car, at this position a Sphere should come up. I want to do a doubleclick on that sphere, and enter something like name, filepath for a text file and so on.


Also I want to ensure, that the user can not add multiple spheres over each other on the same position.


It tried to cath this situation with the following:


if (!CreatedDevices.Any(t => Math.Abs(t.Center.X) + 300 > mousePos.X))


So the mousePos is the position of my mouse and the CreatedDevices is a list of spheres with their properties like center and radius etc..


However, I am not able to doubleclick on a sphere and do something, and in addition to that the mouse position.x is sometimes -83 and the sphere position.x is 1200. I think it has something to do with the Coodinate system of my obj file and that my mouse is not in the same coordinate system. is this possible? I attached my whole project - I need some urgent help because I have no clue how to go on from here... thanks a lot!My project should be attached.

0

Visual Studio 2017 Xamarin

MiticoVaL 6 years ago updated by ไอยดา สุรีวงค์ 3 years ago 1

Hi!

Is it possible to use HelixToolkit in Xamarin projects on Visual Studio 2017?

I can import the DLLs from Nuget, but they are marked by a warning sign.

My Xamarin project targets .Net standard 2.0.

Thanks!

0

Silhouette edge shader

templar_vii 6 years ago updated by authenticvibes 6 years ago 2

Does anybody see a possibility to create a silhouette or edge shader to highlight edges?

Could I write it by my own, or does helix toolkit already provide something like this?


Image 105


0

3D visualization from the kinect feed

ishkavi 6 years ago 0

I need to visualize the feed from Kinect in 3D. Is there an open source project using Helix Toolkit for this? The HelixToolkit.Kinect.sln project gives an error when building it saying that it's output is a class object even after changing it and assigning a startup object in project settings? 

0

Is it possible to create a mesh editor

Hypo Dyne 6 years ago updated by anonymous 6 years ago 1

It is possible to create a mesh editor with Helix Toolkit? I would like to be able to be able to modify vectors, edges and faces by dragging on a design surface.

0

Zoom In fails

Hypo Dyne 6 years ago updated by ไอยดา สุรีวงค์ 3 years ago 3

When I try to zoom in (middle mouse wheel) using helix toolkit viewport it shudders, then refuses to zoom in. I can zoom out, but when I try to zoom back in it fails again. If I zoom out, go behind the model and then zoom in, it works sometimes, then I can go back around the front and zoom in.


Failed to paste example code.

0

Camera Information

Hypo Dyne 6 years ago updated 6 years ago 1

In the helix Viewport overlay by default you have both the camera information and the coordinate system in the lower left corner.


I think you should move the camera information to the top left corner, and move the title to the top center, so that none of the overlays, overlap each other.


Image 103


0

Visual Studio 2017 properties

Hypo Dyne 6 years ago updated by ไอยดา สุรีวงค์ 3 years ago 2

In Visual Studio 2017 when you select 3D object, some of the properties do not show up in the properties windows, especially transforms.


This means it makes it very difficult to do storyboard animations.


Image 104



0

hololens

joeprog 6 years ago updated by ไอยดา สุรีวงค์ 3 years ago 1

UWP and DirectX will work with Hololens.  Can Helix for UWP also work with Hololens?