Files
茂之钳 7a955bac7f
CI / Build & Test (push) Failing after 41s
CI / Release Build (push) Failing after 35s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
fix(v1.0.1): VDE-014/015/016 — STL API cleanup + ssi_boolean fixes
VDE-014 (High): Remove duplicate void write_stl/write_stl_ascii declarations
VDE-015 (Medium): Fix Vector3F→Vector3f, Point3F→Point3f case sensitivity
VDE-016 (High): Add forward declarations for face_bounds/face_normal/SSICurveData
  in ssi_boolean.cpp — fixes two-phase name lookup in GCC
2026-07-27 23:20:46 +08:00

849 B

id, status, severity, category, date, reporter
id status severity category date reporter
VDE-015 fixed medium bug 2026-07-27 ViewDesign

VDE-015: StlTrianglef 中 Vector3F / Point3F 拼写错误

问题描述

io_stl.hStlTrianglef 结构体使用了 Vector3FPoint3F,但 math_types.h 中定义的类型是 Vector3fPoint3f(小写 f):

// io_stl.h:126-128 — 当前(错误)
struct StlTrianglef {
    Vector3F normal;  // 应为 Vector3f
    Point3F  v0, v1, v2;  // 应为 Point3f
};

编译错误

error: 'Vector3F' does not name a type
error: 'Point3F' does not name a type
error: 'Vector3F' is not a member of 'vde::foundation'
error: 'Point3F' is not a member of 'vde::foundation'

建议修复

改为正确的大小写:

struct StlTrianglef {
    Vector3f normal;
    Point3f  v0, v1, v2;
};