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!
+3

Manipulator OnMouseDown event is not firing

Mike1955e 3 years ago in Defect? 0

I recently downloaded the latest code for the toolkit. I then tried out all of the demos and found that the manipulator demo does not work. All of the manipulators remain stationary. I placed a breakpoint at the OnMouseDown event and it was never reached. Can someone explain what I'm missing?

Media3D WPF
0

ViewPoint control does not seem to work

ikonuk 3 weeks ago in Defect? • updated 3 weeks ago 1

Dear Friends:

I have built successfully some of the examples(teapot, torus, tube). I have three questions related all of them.

1) I can use the zoom control by keyboard+mouse combination Cntrl+RightClick combination. However, when I use the Cntrl+LeftClick the VievPoint jumps to top view and cannot be changed afterwards in all examples. Perhaps this issue is related to questions below.

2) All examples refer to an assembly called "ExampleBrowser". I had to comment out as I cannot find this assembly as VS2017 cannot find it. Could you please let me know how to fix this problem.

3) In all examples I tried there is a line like:

[Example(null, "Shows Borromean rings using the TubeVisual3D.")]

Visual Studio (VS) 2017 gives error. I had to comment out this line too. Could somebody let me know the reason this line i snot accepted by VS.


Thanks in advance for any help.


ikonuk

0

Zoom In fails

Hypo Dyne 10 months ago in Defect? • updated 10 months ago 2

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.

WPF
0

Visual Studio 2017 properties

Hypo Dyne 10 months ago in Defect? • updated 10 months ago 1

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.




WPF
0

.obj importer doesn't work in wpf version

I use the last version of Helix. When I try to open obj files through ModelViewer in Examples, the program crashes.

In previous version of Helix the same.obj files opens correctly.

Am I doing something wrong?

0

SurfacePlotDemo: Points set to Double.NaN cause view cutted

MarcoA 1 year ago in Defect? • updated 1 year ago 1

I am trying to change the SurfacePlotDemo in which I want to not show a portion of the Points of the Rectangular Mesh. I tried to set the Points to Double.NaN and I can see the surface without the points but the view looks like cutted. The points that I want to exclude are excluded correctly, but the view seems to be cutted at some view angles.



If I rotate the camera the surface is shown correctly


Here is the code

  public Point3D[,] CreateDataArray(Func<double, double, double> f)
        {
            var data = new Point3D[Rows, Columns];
            for (int i = 0; i < Rows; i++)
                for (int j = 0; j < Columns; j++)
                {
                    var pt = GetPointFromIndex(i, j);
                    data[i, j] = new Point3D(pt.X, pt.Y, f(pt.X, pt.Y)*10);

                    if (i >= 0 && i < 10 && j >=0 && j < 100)
                    {
                        data[i, j] = new Point3D(double.NaN, double.NaN, double.NaN);
                    }

                }
            return data;
        }


Is the only change with respect to the original example.
If I don't set any point to Double.NaN I see the surface correctly shown at any angle.


I am doing this on Windows 10 64bit, if I try on Win7 32 bit the cutting doesn't happen.


Questions:


Is setting points to NaN the correct way to not create parts of the regular mesh?


Are there any instructions to avoid this cutting?




Regards


Marco

0

Problem loading .3ds file

Tamás András 2 years ago in Defect? 0

When I want to load my .3ds file, I get an error:



You can see that the passed values for subFaces and faces are the same = 36.

This function is called here:


I think here is a bug. Can anyone help with this?

0

Cutting of LinesVisual3D doesn't word

Tadeusz Wilczek 2 years ago in Defect? 0

LinesVisual3D doesn't properly cat by cutting plane. In my example code:


<ht:CuttingPlaneGroup x:Name="CuttingGroup" IsEnabled="True">

<ht:CuttingPlaneGroup.CuttingPlanes>

<ht:Plane3D Normal="0,0,1" Position="0,0,0"/>

</ht:CuttingPlaneGroup.CuttingPlanes>

<ht:CubeVisual3D Center="4,4,2" SideLength="8"/>

<ht:LinesVisual3D Points="0,0,-10,0,0,22" Thickness="3" ></ht:LinesVisual3D>

</ht:CuttingPlaneGroup>


When cuttingPlaneGroup is disabled it looks good:



When cuttingPlaneGroup is enabled, line is one-side-visible and has wrong size and direction:



WPF
0

view panning and the coordinate axis symbol

Frank 2 years ago in Defect? • updated by egon sepp 2 years ago 7

I have a HelixViewport3D window in a WPF app, with Pan and axis coordinate features enabled. I am rendering a 'point-cloud' using PointsVisual3D. When I Pan the point-cloud around, the coordinate axis stays in the center of the view instead of moving with the point cloud, and this seems wrong. I thought that the 'Pan' operation simply translated the camera around in the current viewing plane, which would make everything in the model (including the coordinate axis symbol) move together, but clearly this is not the case.


This screenshot shows the situation: The left-hand HelixViewport3D viewport shows a point collection panned off center, while the right-hand viewport shows the original, unpanned setup.



What am I missing, and what do I need to do to make sure the coordinate symbol stays in the same relative position with respect to other model elements when panning the view?


TIA,


Frank


0

ZoomExtents not working as expected?

Frank 2 years ago in Defect? 0

I'm using a HelixViewport3D to display a collection of Point3D objects derived from raw magnetometer readings. Magnetometer X,Y,Z reading can vary from very small values (<< 1) to well over 5000.


When my program starts, I load a small collection of points whose radius is <= 1, as shown in Figure 1



After loading my actual magnetometer data, all points are very far off-screen (Figure2), but zooming out with the mouse wheel allows me to see them all, and rotate/pan/zoom as desired (Figure3):



I decided to try calling ZoomExtents() after loading all the magnetometer points, in order to avoid having the user panic when no points were visible immediately after loading, but this resulted in points being clipped regardless of the zoom level produced by zooming in or out with the mouse wheel (See Figure4 below). I also tried using the 'S' command to move the camera position out, but the camera position moves so slowly using this method that it was unusable for my purposes.



At the moment, I'm not quite sure how to proceed. Any idea what I'm doing wrong with the ZoomExtents() command?


TIA,


Frank


Media3D SharpDX WPF