博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
opencascade 计算点与TopoDS_Shape中各个点的距离
阅读量:4070 次
发布时间:2019-05-25

本文共 376 字,大约阅读时间需要 1 分钟。

 下面自己总结的 计算点与TopoDS_Shape中各个点的距离的代码,输入为gn_Pnt类型的点
//DesPnt 为输入
TopExp_Explorer Ex; 	Standard_Real MinDisance = 1e+10;	Standard_Real CurDisance = 0.0;	gp_Pnt current,ResPnt;	for (Ex.Init(S,TopAbs_VERTEX); Ex.More(); Ex.Next()) { 		TopoDS_Vertex currentVt = TopoDS::Vertex(Ex.Current());	current = BRep_Tool::Pnt(currentVt);	CurDisance = current.Distance(DesPnt);	if(CurDistance

转载地址:http://qoeji.baihongyu.com/

你可能感兴趣的文章
A functional example for save and load model from Tensorflow
查看>>
sparse coding稀疏表达入门
查看>>
概率论:乘法定理、全概率公式以及贝叶斯定理
查看>>
ECSHOP发送邮件显示格林尼治时间问题的解决
查看>>
tensor shape can be flexible to determined in Tensorflow
查看>>
Tensorflow中怎么使用queue读取数据的情况下,在同一个session中边训练边测试
查看>>
使用p6spy打印hibernate或者PreparedStatement的带参数值的sql语句
查看>>
流水账...12321984543
查看>>
Tied weights in Tensorflow
查看>>
spring security对用户名和密码的校验过程
查看>>
spring security对于多登陆页面多用户数据源的使用
查看>>
2017年11月
查看>>
流水账
查看>>
Mac下PDF转EPS的方法
查看>>
php中的一些好东西
查看>>
2018新年开篇
查看>>
comments on the inverse model to solve multi-objective optimization
查看>>
iphone通信录导入到e71中
查看>>
spring security自定义登陆成功后处理
查看>>
Matlab2017b在macos high Sierra下的mex
查看>>