derschmale / tympanum Goto Github PK
View Code? Open in Web Editor NEWA Typescript library for multidimensional convex hulling and Delaunay triangulations.
Home Page: https://derschmale.github.io/tympanum/
License: MIT License
A Typescript library for multidimensional convex hulling and Delaunay triangulations.
Home Page: https://derschmale.github.io/tympanum/
License: MIT License
In the dot
function, it sums up the multiplication of two numbers. But if the two resulting numbers are Infinity and -Infinity, it results in NaN
value for d
variable.
Then, it causes hyperplaneFromPoints
function to return a vector with NaN
values. Then, in the getOptimalStart
function, it pushes undefined
via planePts.push(points[p]);
since the p
still equals to -1
.
Finally, it causes an error: tympanum.module.js:161 Uncaught TypeError: Cannot read properties of undefined (reading '0')
for (var j = 0; j < dim; ++j)
v[j] = v0[j] - pt[j];
This is a part of the code in Miniverse.
function rebuildDelaunay() {
probePositions = [];
// Assure some size vertically
const min = vec3.fromValues(Infinity, -30, Infinity);
const max = vec3.fromValues(-Infinity, 30, -Infinity);
irradianceProbes.forEach((probe, i) => {
vec3.min(min, min, probe.position);
vec3.max(max, max, probe.position);
probePositions[i] = probe.position;
});
Not sure what the underlying cause because I don't know understand the implementation details. It might be a bug in the software or a misusage. It'd be great @DerSchmale if you could have a look.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.