star-2d

Contour structuring for efficient 2D geometric queries
git clone git://git.meso-star.fr/star-2d.git
Log | Files | Refs | README | LICENSE

commit 0a6f071ee24a47d854b82f489115fca75bed061a
parent ad5fd1a88b15772e4e238a5e6eb48e403b520fe9
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon, 13 May 2019 09:06:20 +0200

Merge branch 'release_0.3.1'

Diffstat:
MREADME.md | 5+++++
Mcmake/CMakeLists.txt | 2+-
Msrc/s2d_primitive.c | 2+-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -96,6 +96,11 @@ with `<STAR2D_INSTALL_DIR>` the install directory of Star-2D and ## Release notes +### Version 0.3.1 + +- Fix the `s2d_segment_get_vertex_attrib` function: it could fail and return an + error while it shouldn't. + ### Version 0.3 - Migrate the ray-tracing backend from Embree2 to Embree3. diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -57,7 +57,7 @@ endif() ################################################################################ set(VERSION_MAJOR 0) set(VERSION_MINOR 3) -set(VERSION_PATCH 0) +set(VERSION_PATCH 1) set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}) set(S2D_FILES_SRC diff --git a/src/s2d_primitive.c b/src/s2d_primitive.c @@ -190,7 +190,7 @@ s2d_segment_get_vertex_attrib } /* Out of bound primitive index */ - if(prim->prim_id >= line_segments_get_nverts(geom->lines)) { + if(prim->prim_id >= line_segments_get_nsegments(geom->lines)) { return RES_BAD_ARG; }