GithubHelp home page GithubHelp logo

cl-geometry's People

Contributors

ramarren 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cl-geometry's Issues

intersect-p bug with horizontal line segment

It seems that the return value of intersect-p is incorrect if one of the line segment is horizontal.

GEOMETRY> (intersect-p (make-point 0 0)
               (make-point 50 0)
               (make-point 51 10)
               (make-point 100 0))
T
GEOMETRY> 

Licensing, pull requests

Hello,

I tried using your library, more specifically its polygon triangulation routine, and it crashed when trying to triangulate a simple 13-point polygon (no holes, no intersections). Looking at the code, I noticed you were using ear clipping method, so that wouldn't work for me in a general case anyway.

Digging further, I noticed lots of comments on the implementation being non-optimal, which is not a problem in itself, but seeing that the last real commits to this repository were done 7 years ago, makes me think that this project is abandoned, and that those algorithms are never going to get implemented in a better way.

I want to improve the library, but since there is no licensing information, forking is difficult. Before I commit myself to rewriting this otherwise great piece of work, I'd like to ask the following:

  • Is this repository really abandoned, or would you be willing to review pull requests?
  • Under what kind of license would you like to distribute this project?

Thank you!

Triangulation question

Hi,

This may not be an error with your code but I just thought I'd bring it to your attention. If I define two instances of the same polygon but starting at two different points:

(defparameter *a* (make-polygon-from-coords 5 17 7 14 6 14 6 9 4 9 4 14 3 14))
(defparameter *b* (make-polygon-from-coords 4 9 4 14 3 14 5 17 7 14 6 14 6 9))

and then triangulate both, the triangulation of *a* is successful whereas that of *b* throws the following error:

The assertion (<= COUNTER NUM-VERTICES) failed with COUNTER = 5,
NUM-VERTICES = 3.
[Condition of type SIMPLE-ERROR]

Is cl-geometry actively maintained

I would like to use cl-geometry's bounding boxes. I would add some facilities, such as other primitives and their derivatives.

Will you consider contributions or address issues?

Thank you,

Mirko

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.