11-09-2016, 11:04 PM
I have an application which needs to draw hundreds of thousands of 3D lines. N.B. that these are just lines - they are not a wireframe of a 3D surface or anything like that. I wrote a simple test application based on the AB4D PolyLineVisual3D sample code that came with the AB4D libraries and it works well.
But what I REALLY need to do is render some lines in one color and some in a difference color. Specifically, I'll be drawing a bounding box on a transparent canvas overlaying the Viewport3D and, after transforming the coordinates of the bounding box to the viewport, redrawing the 3D lines in the Viewport3D that are inside the bounding box in a different color than the ones outside the bounding box. Since a PolyLineVisual3D is all the same color (is this right?) I assume I'd have to use a Line3DVisual to do this.
1. Is this correct - that a PolyLineVisual3D is all the same color?
2. If so, where can I see some sample Line3DVisual code to use when drawing lines? I did a search in the Ab3d.DXEngine MAIN SAMPLES solution and in the .chm (help) files and couldn't find anything.
Thanks in advance.
But what I REALLY need to do is render some lines in one color and some in a difference color. Specifically, I'll be drawing a bounding box on a transparent canvas overlaying the Viewport3D and, after transforming the coordinates of the bounding box to the viewport, redrawing the 3D lines in the Viewport3D that are inside the bounding box in a different color than the ones outside the bounding box. Since a PolyLineVisual3D is all the same color (is this right?) I assume I'd have to use a Line3DVisual to do this.
1. Is this correct - that a PolyLineVisual3D is all the same color?
2. If so, where can I see some sample Line3DVisual code to use when drawing lines? I did a search in the Ab3d.DXEngine MAIN SAMPLES solution and in the .chm (help) files and couldn't find anything.
Thanks in advance.