Winglets by Python
Project description
Winglets_Python
代码步骤简要v0.1
- 生成density map,会有很多个density值
- 根据不同的density生成isoValue对应的contour
- 找到应该保留的最外层contour
- 根据最外层contour找到centroids,将最外城contour分成sampleNum份,再根据centroids和centroid对应的射线,求出与最外层contour的交集,根据交点插值生成里层的contourNum个contour
- 遍历当前所有点,找到最近的contour上的最近的点,在contour上根据最近的点生成winglets的左边与右边(其实就是左右端点),然后根据向量计算,分别找到contour上左右点对应的原有点处的左右点,这样就可以根据原有点处的左右点生成满足对应contour弧度的位于原有点处的winglets
- 根据第五步生成的点使用d3来画线段
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for Winglets-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 60cd3c436e721e7c1562bde2625ecd000f30ce7e8e02fe441b559aafb424a43e |
|
MD5 | 49f9ded197d9e31a7da16db23e94a557 |
|
BLAKE2b-256 | 59fa7a2060ed32a918b66a9d433a26af1dc19a2f14fb2e22aa38f91e195c756e |