Commit 029ada66 authored by stevet's avatar stevet
Browse files

export curve library with plot options

parent a29b7237
......@@ -24,7 +24,15 @@ IF(APPLE)
SET_TARGET_PROPERTIES(${PY_NAME} PROPERTIES SUFFIX ".so")
ENDIF(APPLE)
INSTALL(TARGETS ${PY_NAME} DESTINATION ${PYTHON_SITELIB})
INSTALL(TARGETS ${PY_NAME} DESTINATION ${PYTHON_SITELIB}/curves)
install (FILES plot/plot.py
deploy/__init__.py
DESTINATION ${PYTHON_SITELIB}/curves)
install (FILES deploy/optimization/__init__.py
DESTINATION ${PYTHON_SITELIB}/curves/optimization)
ADD_PYTHON_UNIT_TEST("python-curves" "python/test/test.py" "python")
ADD_PYTHON_UNIT_TEST("python-optimization" "python/test/optimization.py" "python")
#!/usr/bin/env python
# Copyright (c) 2019 CNRS
# Author : Steve Tonneau
from curves import *
import plot
#!/usr/bin/env python
# Copyright (c) 2019 CNRS
# Author : Steve Tonneau
from curves.curves.optimization import *
......@@ -64,7 +64,6 @@ if __name__ == '__main__':
a = bezier(waypoints)
fig = plt.figure()
# ax = fig.add_subplot(131, projection="3d")
ax = fig.add_subplot(121)
plotBezier2D(a, axes=[1, 0], ax=ax)
plotControlPoints2D(a, axes=[1, 0], ax=ax)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment