mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 11:53:48 +00:00
This broke the SLA support point generator test. Why?
This commit is contained in:
@@ -360,7 +360,7 @@ std::vector<Vec2f> sample_expolygon(const ExPolygon &expoly, float samples_per_m
|
|||||||
const Vec2f &a = triangles[idx_triangle ++];
|
const Vec2f &a = triangles[idx_triangle ++];
|
||||||
const Vec2f &b = triangles[idx_triangle++];
|
const Vec2f &b = triangles[idx_triangle++];
|
||||||
const Vec2f &c = triangles[idx_triangle];
|
const Vec2f &c = triangles[idx_triangle];
|
||||||
#if 0
|
#if 1
|
||||||
// https://www.cs.princeton.edu/~funk/tog02.pdf
|
// https://www.cs.princeton.edu/~funk/tog02.pdf
|
||||||
// page 814, formula 1.
|
// page 814, formula 1.
|
||||||
double u = float(std::sqrt(random_float(rng)));
|
double u = float(std::sqrt(random_float(rng)));
|
||||||
|
|||||||
Reference in New Issue
Block a user