Ai
1 Star 2 Fork 1

atlas/DDA-python

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test_joints.py 766 Bytes
一键复制 编辑 原始数据 按行查看 历史
BaoLin Chen 提交于 2023-11-25 16:57 +08:00 . finish contact judgement after iterations
from DDA.two.Joint import Joint
from DDA.two.Joints import Joints
from DDA.base.objects.vertice import Vertice
joints_manager = Joints()
# Create some joints and add them to the manager
joint1 = Joint(start_point=(0, 0), end_point=(1, 1))
joint2 = Joint(start_point=(1, 1), end_point=(1, 2))
joint3 = Joint(start_point=(0, 4), end_point=(1, 3))
joints_manager.add_joint(joint1)
joints_manager.add_joint(joint2)
joints_manager.add_joint(joint3)
# Example of matching joints based on parallel edges
matching_edges = [Vertice([0, 0]), Vertice([1, 1])] # Example parallel edges
matching_joints = joints_manager.find_edge_parallel_joint(matching_edges)
matching_joints2 = joints_manager.find_edge_on_joint(matching_edges)
print(matching_joints)
print(matching_joints2)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/atlas999/dda-python.git
git@gitee.com:atlas999/dda-python.git
atlas999
dda-python
DDA-python
master

搜索帮助