回复 7楼 wp231957
知道开源库OpenCASCADE么?这就是全部代码
// Win32OCC.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <gp_Lin.hxx>
#pragma comment(lib, "TKernel.lib")
#pragma comment(lib, "TKMath.lib")
int main(int argc, char* argv[])
{
// 创建直线对象
gp_Lin
L(gp_Pnt(0.,0.,0.), gp_Dir(1.0, 0., 0.));
printf("How do you do?\n");
return 0;
}