Giter VIP home page Giter VIP logo

dedal.lab's People

Contributors

lo-th avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dedal.lab's Issues

run build error!

rollup -c && java -jar utils/build/compiler/closure-compiler-v20160713.jar --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs utils/build/externs.js --language_in=ECMASCRIPT5_STRICT --js build/ddls.js --js_output_file build/ddls.min.js

(!) You have passed an unrecognized option
Unknown input option: entry, indent, targets. Allowed options: acorn, acornInjectPlugins, cache, chunkGroupingSize, context, experimentalCacheExpiry, experimentalOptimizeChunks, experimentalTopLevelAwait, external, inlineDynamicImports, input, manualChunks, moduleContext, onwarn, perf, plugins, preserveModules, preserveSymlinks, shimMissingExports, treeshake, watch

โ†’ stdout...
[!] Error: You must supply options.input to rollup
Error: You must supply options.input to rollup
at Promise.all.then (F:\DedalPathFinding\node_modules\rollup\dist\rollup.js:16258:23)
at process._tickCallback (internal/process/next_tick.js:68:7)
at Function.Module.runMain (internal/modules/cjs/loader.js:757:11)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build-closure: rollup -c && java -jar utils/build/compiler/closure-compiler-v20160713.jar --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs utils/build/externs.js --language_in=ECMASCRIPT5_STRICT --js build/ddls.js --js_output_file build/ddls.min.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build-closure script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-06-01T03_18_37_856Z-debug.log

How to fix it?

infinite loop during `insertConstraintSegment`

Hi . Thanks for your work, it does help a lot !
But now I came into an infinite loop problem with this.
This occured in the function insertConstraintSegment , It seems that the function is trying to find an
edge or something, but it can never get an answer.

what I've tried :

  1. Decrease the value of constant EPSILON_SQUARED:
    This method can fix this problem temporarily, but it will get into infinite loop in other situation.
  2. Multiply all the input points with 100 or more:
    This seems to be a better solution, it won't fall into infinite loop in my limited test samples, but I'm worried it will reappear in some situation in future.

I guess maybe some input points get too close to each other and that cause this problem.
But in daedalus-lib's wiki, it said that You should not care about edges intersection or overlapping. Indeed Daedalus Lib manages properly and automatically vertices merging and sub-vertices insertions to keep a safe Delaunay triangulation.
So I have no idea about this.

here's the code: (be ware this will cause infinite loop)

const testArr = [[234.6, 183.45, 234.08, 183.35, 234.08, 183.35, 233.65, 183.05, 233.65, 183.05, 233.35, 182.62, 233.35, 182.62, 233.25, 182.1, 233.25, 182.1, 233.35, 181.58, 233.35, 181.58, 233.65, 181.15, 233.65, 181.15, 234.08, 180.85, 234.08, 180.85, 234.6, 180.75, 234.6, 180.75, 247.2, 180.75, 247.2, 180.75, 247.72, 180.85, 247.72, 180.85, 248.15, 181.15, 248.15, 181.15, 248.45, 181.58, 248.45, 181.58, 248.55, 182.1, 248.55, 182.1, 248.45, 182.62, 248.45, 182.62, 248.15, 183.05, 248.15, 183.05, 247.72, 183.35, 247.72, 183.35, 247.2, 183.45, 247.2, 183.45, 234.6, 183.45],[247.2, 187.15, 246.57, 187.04, 246.57, 187.04, 246.01, 186.72, 246.01, 186.72, 245.6, 186.22, 245.6, 186.22, 245.38, 185.62, 245.38, 185.62, 245.38, 184.98, 245.38, 184.98, 245.6, 184.37, 245.6, 184.37, 246.01, 183.88, 246.01, 183.88, 246.57, 183.56, 246.57, 183.56, 247.2, 183.45, 247.2, 183.45, 252.93, 183.45, 252.93, 183.45, 254.69, 181.69, 254.69, 181.69, 255.22, 181.32, 255.22, 181.32, 255.84, 181.16, 255.84, 181.16, 256.48, 181.21, 256.48, 181.21, 257.06, 181.48, 257.06, 181.48, 257.52, 181.94, 257.52, 181.94, 257.79, 182.52, 257.79, 182.52, 257.84, 183.16, 257.84, 183.16, 257.68, 183.78, 257.68, 183.78, 257.31, 184.31, 257.31, 184.31, 255.01, 186.61, 255.01, 186.61, 254.79, 186.8, 254.79, 186.8, 254.54, 186.95, 254.54, 186.95, 254.27, 187.06, 254.27, 187.06, 253.99, 187.13, 253.99, 187.13, 253.7, 187.15, 253.7, 187.15, 247.2, 187.15],[242.28, 183.69, 242.09, 183.66, 242.09, 183.66, 241.93, 183.58, 241.93, 183.58, 241.79, 183.44, 241.79, 183.44, 241.71, 183.28, 241.71, 183.28, 241.68, 183.09, 241.68, 183.09, 241.68, 181.12, 241.68, 181.12, 241.71, 180.93, 241.71, 180.93, 241.79, 180.77, 241.79, 180.77, 241.93, 180.63, 241.93, 180.63, 242.09, 180.55, 242.09, 180.55, 242.28, 180.52, 242.28, 180.52, 252.12, 180.52, 252.12, 180.52, 252.31, 180.55, 252.31, 180.55, 252.47, 180.63, 252.47, 180.63, 252.61, 180.77, 252.61, 180.77, 252.69, 180.93, 252.69, 180.93, 252.72, 181.12, 252.72, 181.12, 252.72, 183.09, 252.72, 183.09, 252.69, 183.28, 252.69, 183.28, 252.61, 183.44, 252.61, 183.44, 252.47, 183.58, 252.47, 183.58, 252.31, 183.66, 252.31, 183.66, 252.12, 183.69, 252.12, 183.69, 242.28, 183.69]]

const world = new DDLS.World(20024.6, 20006.630004882812);
testArr.forEach((coord)=>{
	let obj = {x: 9766.75, y: 9819.480004882813,coord: coord};
	world.addObject(obj);
});

I've been stuck here for days and I cann't find a solution , could you help me with it ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.