i have a simple 3D plot - just drawing a triangle (drawing the lines - not drawing a solid plane) ... and depending on how the plot is rotated by the user, only part of the lines are drawn to screen. and from many angles, entire lines are omitted.
is there a way to make sure all points/lines will show up? it shouldnt be a rasterization problem because the 1st time the triangle is painted, the entire bottom line doesnt show up (and it's slope is 0).
i'll take any solution - speed isn't an issue. and even if i have to limit the user from being able to rotate the image, that's ok too.
(i get the same problem when i use Plot3DMesh -- only part of the plane draws)
happy new years,
Ryan
*code*
void CDalitzDlg::GenerateTriangle()
{
m_graph.GetPlots().Item(3).LineStyle = CNiPlot3D::LineSolid;
m_graph.GetPlots().Item(3).LineColor = CNiColor(255,0,0);
CNiReal64Vector x,y,z;
x.SetSize(4);
y.SetSize(4);
z.SetSize(4);
//store the points of the 1x1x1 equilateral triangle
x[0] = 0; x[1] = 0.5; x[2] = 1; x[3] = 0;
y[0] = 0; y[1] = sqrt(3)/2; y[2] = 0; y[3] = 0;
z[0] = 0; z[1] = 0; z[2] = 0; z[3] = 0; //z is always zeroed
//plot triangle
m_graph.GetPlots().Item(3).Plot3DCurve(x, y, z);
}