BachiLi / diffvg

Differentiable Vector Graphics Rasterization
https://people.csail.mit.edu/tzumao/diffvg/
Apache License 2.0
964 stars 159 forks source link

Added null pointers for background image and eval positions #8

Closed weinman closed 4 years ago

weinman commented 4 years ago

Updated the interface in pydiffvg_tensorflow/render_tensorflow.py to use all the arguments to the function render in diffvg.cpp. The placeholders (arguments background_image, d_background_image, eval_positions and num_eval_positions are simply NULL for now—0 (zero) in the latter case of an int, which defaults to evaluating over the entire raster domain), so that the default behavior results and the sample app in apps/single_circle_tf.py runs successfully. Fixes #7.

BachiLi commented 4 years ago

thanks!