Skip to content

abs函数问题 #4

@wanghao-98

Description

@wanghao-98

在cube.cpp,LerpVertex函数中,abs函数的参数为int类型,结果会进行舍入,需要修改为std空间下,如下:
if (std::abs(isoLevel - v1) < Eps) return p1;
if (std::abs(isoLevel - v2) < Eps) return p2;
if (std::abs(v1 - v2) < Eps) return p1;
修改后结果正确。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions