Skip to content

Zero divide is missing from normalize/normalize3 (glmath.h/glmath.cc) functions #177

@m-7761

Description

@m-7761

https://github.com/zturtleman/mm3d/blob/master/src/libmm3d/glmath.cc#L875-L892

(Also found inline in the header and a Quaternion method.)

FWIW I was just testing the "Boolean" (model_bool.cc) code (adding texture coordinates to it) and it produces 0 length vectors. TBH I'm surprised this hasn't been an issue before now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions