helix-3d-toolkit

Create clickable objects with helix toolkit

六月ゝ 毕业季﹏ 提交于 2020-01-04 16:57:42
问题 I found on the Helix Toolkit an example, which is called to ScatterPlot, which is really close what I really need. But I can't find anything about how can I add something onclick event listener to the created objects (in this case to the sphere). This adds the sphere to the 'playground'. scatterMeshBuilder.AddSphere(Points[i], SphereSize, 4, 4); The basic goal is to add every sphere an onclick event listener and when the user choose a color and click one of these spheres it will change to the

How do you rotate a 3D model using HelixToolkit?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 00:29:28
问题 I need some help rotating a 3D model in a WPF project on visual studios. I have imported the model in through the use of the helix toolkit. But I can not find any example of how to rotate the 3D model online. I've found some C# and xaml examples but they mainly seem to rotate the camera not the model. 回答1: WPF 3D Rotation Create a RotateTransform3D for your GeometryModel3D.Transform 回答2: I have found it particularly useful to use matrices in order to make tranformations. In my case, what I

How to plot 3D colored points with Helix toolkit

…衆ロ難τιáo~ 提交于 2019-12-23 23:40:20
问题 I create a simple 3D viewer with Helix toolkit. I want to plot 3D points which is colored. I referred to the sample project "SimpleDemo" which is contained in the Example folder ( HelixToolkit.Wpf.SharpDX ). This is my XAML: <hx:PointGeometryModel3D x:Name="points" Geometry="{Binding Points}" Transform="{Binding Model1Transform}" Color="{x:Static sdx:Color.White}" /> And drawing core is below. var points = new PointGeometry3D(); var col = new Color4Collection(); var ptPos = new

How to load Textures and materials using Helix ToolKit?

女生的网名这么多〃 提交于 2019-12-14 03:07:37
问题 I am trying to load 3d obj files or 3ds file, it's loaded but unfortunately I am not able to load .mtl files or any textures Any Idea/sample code how to load .mtl files or textures? ---> The 3D models is loaded but in gray color public void load3dModel() { ObjReader CurrentHelixObjReader = new ObjReader(); // Model3DGroup MyModel = CurrentHelixObjReader.Read(@"D:\3DModel\dinosaur_FBX\dinosaur.fbx"); // Model3DGroup MyModel = CurrentHelixObjReader.Read(@"C:\Users\aaa\Downloads\jlb4kmi4xssg

Helix 3D Toolkit - ZoomExtents method call works different than activating ZoomExtents through gesture

戏子无情 提交于 2019-12-07 19:31:34
问题 I've been working on a small 3D preview window in a MVVM style application... The view is created then its data context is set. Therefore it seems that ZoomExtentsWhenLoaded="True" doesn't seem to help do what I need. I need something like, ZoomExtentsWhenDataContextChanges. Interestingly, I've found that if I use a mouse gesture like the one defined below, I can physically click on the HelixViewport3D and it will perform a ZoomExtents. HelixViewport3D.ZoomExtentsGesture = new MouseGesture

Helix toolkit Rotate 3D Model

≡放荡痞女 提交于 2019-12-07 18:18:35
问题 I'm new to WPF and I'm trying to make a program that displays a 3d model (that is saved on my computer) and rotate it based on button clicks. I would like to have three buttons to rotate the object about the x, y, and z axes. I have code that will display the model but I am unsure how to rotate it using button clicks. Here is what I have so far; C# public MainWindow() { InitializeComponent(); ModelVisual3D device3D = new ModelVisual3D(); device3D.Content = Display3d(MODEL_PATH); // Add to

How to display MeshElement3D as wireframe?

梦想的初衷 提交于 2019-12-07 02:23:54
问题 I would like to display any MeshElement3D (for example BoxVisual3d) in helix-toolkit as wireframe. How can this be accomplished? EDIT: Thanks to Erno de Weerd's answer I was able to write the following code Class that extends BoxVisual3D public class GeometryBoxVisual3D : BoxVisual3D { public MeshGeometry3D Geometry() { return Tessellate(); } } Add the instance of box to the Viewport: GeometryBoxVisual3D box = new GeometryBoxVisual3D(); box.Fill = new SolidColorBrush(Colors.Red); Viewport3D

How to import a 3D model in WPF using Helix Toolkit?

限于喜欢 提交于 2019-12-06 21:08:26
问题 I am trying to import a 3D model using Helix Toolkit.i can't figure out how to do it. Is there any online guide about importing a 3D model using this Toolkit or if there is another easier way to import a 3D model except Helix. Regards This is my Code: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System

Helix 3D Toolkit - ZoomExtents method call works different than activating ZoomExtents through gesture

会有一股神秘感。 提交于 2019-12-06 07:22:41
I've been working on a small 3D preview window in a MVVM style application... The view is created then its data context is set. Therefore it seems that ZoomExtentsWhenLoaded="True" doesn't seem to help do what I need. I need something like, ZoomExtentsWhenDataContextChanges. Interestingly, I've found that if I use a mouse gesture like the one defined below, I can physically click on the HelixViewport3D and it will perform a ZoomExtents. HelixViewport3D.ZoomExtentsGesture = new MouseGesture(MouseAction.LeftDoubleClick); However, if do something like this... HelixViewport3D.DataContextChanged +=

Rotate an object in HelixViewport3D in a WPF app

大憨熊 提交于 2019-12-05 12:10:02
I'm trying to show a 3d object in a WPF app using helixtoolkit and rotate it according to 3 variables (user inputs) along x,y,z axes. But i coudn't find a function in helix toolkit to to rotate the 3d object. C# code using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Navigation; using System.Windows.Shapes;