Compare commits

..

2 commits

Author SHA1 Message Date
Viktor Govako
5beca8e527 Assume input contour coordinates as double.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2021-12-01 10:49:19 +03:00
Viktor Govako
a13348d291 Added CMakeList.txt
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
2021-11-29 16:24:44 +03:00
2 changed files with 25 additions and 1 deletions

24
CMakeLists.txt Normal file
View file

@ -0,0 +1,24 @@
project(tess2)
include_directories(Include)
set(
SRC
Include/tesselator.h
Source/bucketalloc.c
Source/bucketalloc.h
Source/dict.c
Source/dict.h
Source/geom.c
Source/geom.h
Source/mesh.c
Source/mesh.h
Source/priorityq.c
Source/priorityq.h
Source/sweep.c
Source/sweep.h
Source/tess.c
Source/tess.h
)
add_library(${PROJECT_NAME} ${SRC})

View file

@ -936,7 +936,7 @@ void tessAddContour( TESStesselator *tess, int size, const void* vertices,
for( i = 0; i < numVertices; ++i )
{
const TESSreal* coords = (const TESSreal*)src;
const double* coords = (const double*)src;
src += stride;
if( e == NULL ) {