1 Star 1 Fork 1

Qingwen/SDF_test

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

SDF(signed_distance_field)

栅格距离图,并提供其梯度信息 相关文献 如示例

本分支相关代码由原repo贡献:https://github.com/jchengai/gpir 请详情阅读其相关论文及MIT LICENSE与申明,本分支仅做测试使用,如有在论文中使用代码请做好cite

更为详细的公式及代码对应的博文解释见

  1. 博客园:https://www.cnblogs.com/kin-zhang/p/16310244.html
  2. CSDN:https://blog.csdn.net/qq_39537898/article/details/124964419

使用方式

git clone --recurse-submodules https://gitee.com/kin_zhang/sdf_test
cd sdf_test

然后使用vscode内置的cmake_tool即可,比如OSQP所示的GIF

或者参考:how to use cmake tool to debug, follow the youtube link: https://youtu.be/Rfj40xW9q6w

编译运行

mkdir build
cd build
cmake ..
make

然后运行

./signed_distance_field_2d_test

便能看到这样的图形:

MIT License Copyright (c) 2022 张聪明 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

开源的SDF(signed_distance_field),栅格距离图,函数及其接口;此处仅提供测试,完整运用等,见GPIR代码:https://github.com/jchengai/gpir 展开 收起
README
MIT
取消

发行版

暂无发行版

贡献者 (2)

全部

语言

近期动态

3年前推送了新的提交到 master 分支,53b79b3...4d32d27
3年前推送了新的提交到 master 分支,073089f...53b79b3
3年前推送了新的提交到 master 分支,aaf1ba2...073089f
3年前推送了新的 master 分支
3年前创建了仓库
加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kin-zhang/sdf_test.git
git@gitee.com:kin-zhang/sdf_test.git
kin-zhang
sdf_test
SDF_test
master

搜索帮助