会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Craftsman-lee
博客园
首页
新随笔
联系
订阅
管理
2020年9月21日
c字符串快速转浮点数
摘要: //并非博主原创,是blogspot上某博主贴出的,忘了具体链接,向原博主表示歉意,有机会补上链接。//速度飞快,甚至比atof()还有快! double str2double(const char *p) { double r = 0.0; bool neg = false; if (*p ==
阅读全文
posted @ 2020-09-21 23:24 Craftsman-lee
阅读(400)
评论(0)
推荐(0)
2020年9月16日
std::async绑定类成员函数
摘要: 1 class myClass 2 { 3 public: 4 bool test() { return true; } 5 }; 6 7 int main() 8 { 9 //myClass的一个实例 10 myClass obj; 11 12 //利用std::bind绑定类的成员函数 13 a
阅读全文
posted @ 2020-09-16 19:54 Craftsman-lee
阅读(1377)
评论(0)
推荐(0)
Opencascade等分曲线
摘要: //通过Geom_Curve和等分点数来等分圆锥曲线,本文是等分椭圆 //等分的点数 int nDivide = nPoint; Handle(Geom_Curve) geomCurve; try { OCC_CATCH_SIGNALS myEllipse aEllipse(...) //椭圆的中心
阅读全文
posted @ 2020-09-16 19:41 Craftsman-lee
阅读(568)
评论(0)
推荐(0)
2020年9月13日
Opencascade子类化AIS_PointCloud实现自定义显示和选择样式
摘要: //Opencascade负责绘制的“Drawer” 有3个,分别是: //1.myDrawer main presentation attributes //2.myHilightDrawer custom presentation attributes for highlighting sele
阅读全文
posted @ 2020-09-13 18:59 Craftsman-lee
阅读(2130)
评论(6)
推荐(0)
2020年9月11日
Opencascade显示ColorScale
摘要: /采用Opencascade的ColorScale显示点云在Z方向的高度分布 //代码如下。采用Opencascade的版本是7.4 //new 一个ColorScale Handle(AIS_ColorScale) aCS = new AIS_ColorScale();//label 放在后边aC
阅读全文
posted @ 2020-09-11 21:21 Craftsman-lee
阅读(753)
评论(1)
推荐(0)
公告