[osg-users] Crash due to "Triangle Functor does not support Vec3d* vertex arrays"

Robert Osfield robert.osfield at gmail.com
Tue Mar 4 00:54:11 PST 2008


On Mon, Mar 3, 2008 at 10:31 PM, Night Hawk
<nighthawkmailbox at googlemail.com> wrote:
> Would like to know the reason behind this and What are the alternatives?
>
> Why is the setVertexArray not defined for the double vec type and how to use
> TriangleFunctor with LineSegment Intersections with that type.

Vec3d support in osg::Array/osg::Geometry is new to the 2.3.x series,
not all code is update to handle this generalization.

Vec3d support has been added primarily to support better precision in
loads that handle whole earth data such as shape files, and then only
for loading support with the assumption that later processing on this
data will turn it into more conventional Vec3 type data when rendering
is required.   Vec3d support is really really bad for rendering so I
strongly recommend you not to use Vec3d generally in your scene graph.

Robert.


More information about the osg-users mailing list