• 大小: 6.19M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-29
  • 语言: C/C++
  • 标签: DXFRead  cad  opencv  

资源简介

新手或者入行的值得看看

资源截图

代码片段和文件信息

#define _CRT_SECURE_NO_WARNINGS		//防止新编译器老函数使用报错
#include “DXFRead.h“


using namespace std;

IMPLEMENT_DYNCREATE(LINEPoint Cobject)
IMPLEMENT_DYNCREATE(BLOCKPoint Cobject)

#define FILENAME “2.dxf“
#define SAVENAME “2.png“

LINEPoint::LINEPoint(CADLINE &line)
{
m_line = line;
}

BLOCKPoint::BLOCKPoint(CADBLOCK &block)
{
m_block = block;
}

void DXFRead::ReadLine(CADDATA &data)
{

FILE *fp = fopen(FILENAME “r“);
if (!fp)
{
cout << “读取“ << FILENAME << “失败,任意键退出“ << endl;
getchar();
exit(0);
}
else
{
cout << “打开“ << FILENAME << “成功,正在读取LINE...“ << endl;
}
while (!feof(fp) && !ferror(fp))
{
fscanf(fp “%s“ &str);
//扫描块中线
if (strcmp(str “BLOCK“) == 0)
{
fscanf(fp “%s“ &str);
while (strcmp(str “2“) != 0)
{

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     29696  2016-12-07 16:35  DXFRead\.vs\DXFRead\v14\.suo

     文件     118272  2016-12-07 16:35  DXFRead\Debug\DXFRead.exe

     文件     823296  2016-12-07 16:35  DXFRead\Debug\DXFRead.ilk

     文件    2002944  2016-12-07 16:35  DXFRead\Debug\DXFRead.pdb

     文件   27639296  2015-06-04 02:24  DXFRead\Debug\opencv_world300.dll

     文件       6280  2016-12-06 15:03  DXFRead\DXFRead\1.dxf

     文件       7211  2016-12-06 15:07  DXFRead\DXFRead\2.dxf

     文件       6838  2016-12-07 16:35  DXFRead\DXFRead\DXFRead.cpp

     文件       1380  2016-12-07 16:06  DXFRead\DXFRead\DXFRead.h

     文件       6295  2016-12-07 14:50  DXFRead\DXFRead\DXFRead.vcxproj

     文件       1068  2016-12-07 10:41  DXFRead\DXFRead\DXFRead.vcxproj.filters

     文件        165  2016-12-07 10:28  DXFRead\DXFRead\DXFRead.vcxproj.user

     文件       1303  2016-12-07 09:43  DXFRead\DXFRead.sln

     目录          0  2016-12-07 09:43  DXFRead\.vs\DXFRead\v14

     目录          0  2016-12-07 09:43  DXFRead\.vs\DXFRead

    ...D.H.         0  2016-12-07 09:43  DXFRead\.vs

     目录          0  2016-12-07 16:05  DXFRead\Debug

     目录          0  2016-12-07 16:36  DXFRead\DXFRead

     目录          0  2016-12-07 16:35  DXFRead

----------- ---------  ---------- -----  ----

             30644044                    19


评论

共有 条评论