hofk / threei.js Goto Github PK
View Code? Open in Web Editor NEWthree.js addon for triangulation of implicit surfaces and for forms with holes. The addon generates indexed BufferGeometries.
three.js addon for triangulation of implicit surfaces and for forms with holes. The addon generates indexed BufferGeometries.
THREEi.createCylinderWithHoles.call( geometry, {
d: 0.08, // rough side length of the triangles
div4: 10, // division of the quarter circle
bottom: -2,
top: 2,
holes: [
// circular (deformed) hole, 3 elements: [ y, phi, div4Hole ], div4Hole <= div4
[ 0, 0, 20 ],
//points hole,: array of points y, phi, ... (last point is connected to first)
[ 0.33,2.9, -0.33,2.9, -0.33,3.38, 0.33,3.38 ]
]
} );
=>
TypeError: can't access property "idx", insertFront[0] is undefined THREEi.js:2718:4
makeNewTriangles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2718
trianglesAtSplitPoints https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2608
buildCylinderWithHoles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2160
createCylinderWithHoles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2026
same code with
div4: 20,
=>
TypeError: can't access property "ang", front[m] is undefined THREEi.js:2640:3
makeNewTriangles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2640
buildCylinderWithHoles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2133
createCylinderWithHoles https://rawcdn.githack.com/hofk/THREEi.js/7efc02901ae7aadeaaa8e46301e5719d72527005/THREEi.js:2026
I get it, it says div4Hole <= div4
but cant you put div4 = Math.max(div4, all of div4Hole-s) or something
What license does this repo fall under?
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.