上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: Resetting the origins of block table records in a drawingIssueI have a drawing that contains block table records with non-zero origins, i.e.they are n 阅读全文
posted @ 2020-03-10 23:03 中国膜结构网mjgou 阅读(314) 评论(0) 推荐(0) 编辑
摘要: ACED_ARXCOMMAND_ENTRY_AUTO(CMyTestApp, MyTestApp, _MyClip, MyClip, ACRX_CMD_TRANSPARENT | ACRX_CMD_NOINTERNALLOCK, NULL) static void MyTestApp_MyClip( 阅读全文
posted @ 2020-03-10 23:01 中国膜结构网mjgou 阅读(686) 评论(0) 推荐(0) 编辑
摘要: (defun ClearClipBoard () (startapp "cmd /c \"echo off | clip\"")) ; (clearclipboard) (defun _SetClipBoardText (text / htmlfile result) ;; Caller's sol 阅读全文
posted @ 2020-03-10 22:57 中国膜结构网mjgou 阅读(665) 评论(0) 推荐(0) 编辑
摘要: ;; Arguments;; lst : a list;; start : start index (first item = 0);; leng : the sub list length (number of items) or nil(defun sublist (lst start leng 阅读全文
posted @ 2020-03-10 22:56 中国膜结构网mjgou 阅读(1235) 评论(0) 推荐(0) 编辑
摘要: Acad::ErrorStatus AcDb3dPolylineToAcDb2dPolyline(AcDbObjectId objId, int flag /* =0 */) { Acad::ErrorStatus es; AcDbEntity *pEnt = NULL; double elev = 阅读全文
posted @ 2020-03-09 23:30 中国膜结构网mjgou 阅读(1030) 评论(0) 推荐(0) 编辑
摘要: 最近在实习中,遇到了一个实际问题。客户要将若干大小不一的小矩形,排到大矩形上,而且还要求可以设置小矩形之间的间距,和大矩形的margin值,便于裁切。 排样问题是一个经典的NP问题,有很多解决方案。神经网络、遗传、蚁群、模拟退火等等算法都可以解决这个问题。对于一些行业的工业生产,很多生产数据并没有测 阅读全文
posted @ 2020-03-09 07:53 中国膜结构网mjgou 阅读(1523) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#include <windows.h>#include <wininet.h>#define MAXSIZE 1024#pragma comment(lib, "Wininet.lib") void urlopen(_TCHAR*);int _tmain(int 阅读全文
posted @ 2020-03-07 21:44 中国膜结构网mjgou 阅读(1454) 评论(0) 推荐(0) 编辑
摘要: 有关“凸多边形最优三角剖分的问题”,这是《计算机算法设计与分析》(王晓东编著 第三版)第三章“动态规划”中的一道例题,代码如下: C/C++ code ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 阅读全文
posted @ 2020-03-07 21:29 中国膜结构网mjgou 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 现定义一个函数初步判断两线段是否相交,如下代码: /// <summary> /// 初步根据外围框大致判断两条线段是否相交 /// </summary> /// <param name="line01Coords">线段1的坐标,长度为6</param> /// <param name="line 阅读全文
posted @ 2020-03-07 21:25 中国膜结构网mjgou 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 下面介绍Delaunay三角剖分算法: 一. 生成凸包生成凸包的算法在我的另一个博文有详细介绍 二. 凸包切分 在凸包链表中每次寻找一个由相邻两条凸包边组成的三角形,在该三角形的内部和边界上都不包含凸包上的任何其它点。将这个点去掉后得到新的凸包链表。重复这个过程,直到凸包链表中只剩三个离散点为止。将 阅读全文
posted @ 2020-03-07 21:24 中国膜结构网mjgou 阅读(1727) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页