Giter Site home page Giter Site logo

pazdera / libcity Goto Github PK

View Code? Open in Web Editor NEW
41.0 41.0 8.0 206 KB

A C++ library for procedural generation of cities and large urban environments.

Home Page: http://p-g-c.blogspot.com/

License: GNU General Public License v3.0

C++ 97.11% C 0.82% CMake 0.29% Makefile 1.78%

libcity's People

Contributors

callforsanity avatar pazdera 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

libcity's Issues

precomputeIntersectionsVertices() segfault

Segfault at

==12881== Use of uninitialised value of size 4
==12881==    at 0x46D77AC: Point::x() const (point.h:56)
==12881==    by 0x46D7ADE: Point::Point(Point const&) (point.cpp:34)
==12881==    by 0x46DAFC0: Ray::origin() const (ray.cpp:84)
==12881==    by 0x46DB1ED: Ray::intersection2D(Ray const&, Point*) const (ray.cpp:102)
==12881==    by 0x8059081: OgreCity::precomputeIntersectionsVertices() (ogrecity.cpp:627)
==12881==    by 0x805B973: OgreCity::drawRoadNetwork() (ogrecity.cpp:77)
==12881==    by 0x46F59F9: City::draw() (city.cpp:52)
==12881==    by 0x806A7C9: City3D::createScene() (city3d.cpp:66)
==12881==    by 0x805F826: BaseApplication::setup() (baseapplication.cpp:233)
==12881==    by 0x805FE97: BaseApplication::go() (baseapplication.cpp:202)
==12881==    by 0x806AED8: main (main.cpp:26)
==12881==
==12881== Invalid read of size 8
==12881==    at 0x46D77AC: Point::x() const (point.h:56)
==12881==    by 0x46D7ADE: Point::Point(Point const&) (point.cpp:34)
==12881==    by 0x46DAFC0: Ray::origin() const (ray.cpp:84)
==12881==    by 0x46DB1ED: Ray::intersection2D(Ray const&, Point*) const (ray.cpp:102)
==12881==    by 0x8059081: OgreCity::precomputeIntersectionsVertices() (ogrecity.cpp:627)
==12881==    by 0x805B973: OgreCity::drawRoadNetwork() (ogrecity.cpp:77)
==12881==    by 0x46F59F9: City::draw() (city.cpp:52)
==12881==    by 0x806A7C9: City3D::createScene() (city3d.cpp:66)
==12881==    by 0x805F826: BaseApplication::setup() (baseapplication.cpp:233)
==12881==    by 0x805FE97: BaseApplication::go() (baseapplication.cpp:202)
==12881==    by 0x806AED8: main (main.cpp:26)
==12881==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==12881==
==12881==
==12881== Process terminating with default action of signal 11 (SIGSEGV)
==12881==  Access not within mapped region at address 0x0
==12881==    at 0x46D77AC: Point::x() const (point.h:56)
==12881==    by 0x46D7ADE: Point::Point(Point const&) (point.cpp:34)
==12881==    by 0x46DAFC0: Ray::origin() const (ray.cpp:84)
==12881==    by 0x46DB1ED: Ray::intersection2D(Ray const&, Point*) const (ray.cpp:102)
==12881==    by 0x8059081: OgreCity::precomputeIntersectionsVertices() (ogrecity.cpp:627)
==12881==    by 0x805B973: OgreCity::drawRoadNetwork() (ogrecity.cpp:77)
==12881==    by 0x46F59F9: City::draw() (city.cpp:52)
==12881==    by 0x806A7C9: City3D::createScene() (city3d.cpp:66)
==12881==    by 0x805F826: BaseApplication::setup() (baseapplication.cpp:233)
==12881==    by 0x805FE97: BaseApplication::go() (baseapplication.cpp:202)
==12881==    by 0x806AED8: main (main.cpp:26)

Road combination is bugging 3way intersections

This roads in StreetGraph causes fail while creating 3way intersection.

map->addRoad(Path(LineSegment(Point(-300.988, -1852.79, 0), Point(-228.946, -1688.77, 0))));
map->addRoad(Path(LineSegment(Point(-198.41, -1666.19, 0), Point(-228.946, -1688.77, 0))));
map->addRoad(Path(LineSegment(Point(-228.946, -1688.77, 0), Point(-201.985, -1627.38, 0))));
city3d: /home/astro/MyBook/Skola/BP/code/3d/src/ogrecity.cpp:687: void OgreCity::precomputeIntersectionsVertices(): Assertion `intersectionResult == Line::INTERSECTING' failed.

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.