Tube is not visible

Anonymous 9 years ago 0
This discussion was imported from CodePlex

TSpiller wrote at 2014-06-13 18:26:


I just started to use this wonderfull toolkit and I'm trying to create a 3D model consisting of spheres and tubes.
No problems with the spheres, but the tubes are not visible.

Code defining tubes:
int dia = 15;
HelixToolkit.Wpf.TubeVisual3D tube = new TubeVisual3D();
tube.Path = new Point3DCollection();
tube.Path.Add(new Point3D(15, 0, 0));
tube.Path.Add(new Point3D(-15, 0, 0));
tube.Diameter = dia;
tube.IsPathClosed = false;
tube.Fill = Brushes.DeepPink;
<hel:HelixViewport3D Name="3DWindow" ShowFrameRate="True" Grid.Column="1" Margin="5" Grid.Row="1">
                <hel:SunLight  />

What could eb the reason fo the tubes to not show up?
Am I missing sth?

Thanks in advance,


Pyramidex wrote at 2014-06-14 17:07:

Hi Thomas,

I encountered the same problem and reported it in the Issues section (Id #10054) with title TubeVisual3D.
It look like it does not like tubes where the Y value is the same.

Regards, Edwin

TSpiller wrote at 2014-06-16 09:57:

Thanks a lot!

So the workaround for me is to alter the Y coord i.e. by 0.00001 which is still accurate enough.