par
par copied to clipboard
single-file C libraries from Philip Allan Rideout
Valgrind says: ``` Conditional jump or move depends on uninitialised value(s) at 0x48A74F8: sqrt (w_sqrt_compat.c:31) by 0x109F93: par_shapes__normalize3 (par_shapes.h:291) by 0x10CC99: par_shapes_scale (par_shapes.h:840) by 0x110364: par_shapes_weld (par_shapes.h:1805) by 0x10A1C6: par_shapes__compute_welded_normals...
Hi there, par_shapes.h:1103:32: ``` warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion] note: expanded from macro 'RAND_MAX' ``` maybe change like [this](http://c-faq.com/lib/rand48.html) ? or...
## Rationale Due to the design of `PAR_REALLOC` it can't work with some kinds of allocators that are not designed to support `realloc`. A good way to solve this, as...
Hey, I'm using par_streamlines in my creative coding sketches and I noticed par_streamlines throws errors when compiling with cl.exe. It appears the errors are from the use of `_attribute__((unused))` in...
Hi I'm trying par bluenoise, its very fast ! Thanks for making it public. While experimenting with it, I noticed par_bluenoise_set_viewport behaviour I didn't expect. Changing left/right bounds preserves points...
I saw no version is assigned to any of the libraries. I know it's just a formalism but it would be nice to have a version assigned.
Sometimes computing reflection over the endpoint for first control point is not flexible enough and having a SVG equivalent of `M C C C ...` spines would enable this handy...
Looks like `parsl_spine_list.closed` is ignored when triangulating curves. It would be nice to have that too.
I am proposing a change in the par_shapes__connect function. The change is in https://github.com/prideout/par/blob/master/par_shapes.h#L1166 from ```c memcpy(newpts, cylinder->points + (slices + 1) * 3, sizeof(float) * (slices + 1) *...
Hi, I am investigating some SIGSEGV error in par_shapes. Crash happens with `par_shapes.create.cylinder(626,100)` (perhaps slightly higher numbers depending on the compiler-architecture) I have find this is due to par_shapes__weld_points generating...