把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
This commit is contained in:
gjm committed 2026-10-04 00:04:20 +08:00
1 parent 2b0c2055ff
commit 164968b62e
6171 files changed
+191244 -191243

No files matched your search

@@ -1,10 +1,10 @@
//-------------------------------------------------------------------------------------------------------+
//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : 内部全局函数实现文件
// = FileName : 内部全局函数实现文件
// = Version : ver2.0
// = Author : tg
// = CreateDate : 2002-09-09
// = Description: 内部全局函数的定义
// = Description: 内部全局函数的定义
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
@@ -15,13 +15,13 @@ namespace TchSubPrivate
{
int CompareEdge(const TPGeDscEdge&e0,const TPGeDscEdge&e1);
//由曲线集求平面域,最后曲线集将置空
//如果可能有顺时针的环路,则应选择检查洞
//曲线集中的每条曲线只能作为一个面域的边界,因此可能有多个环路时,关键曲线要排在前面,使关键曲线先被遍历!
//曲线集中的曲线应两两之间无重合,无交叉(非端点交点)!
//不支持开放域!
//由曲线集求平面域,最后曲线集将置空
//如果可能有顺时针的环路,则应选择检查洞
//曲线集中的每条曲线只能作为一个面域的边界,因此可能有多个环路时,关键曲线要排在前面,使关键曲线先被遍历!
//曲线集中的曲线应两两之间无重合,无交叉(非端点交点)!
//不支持开放域!
void CreateRegion2D(TGObjectList&curves,TGObjectList&res,bool bCheckHole);
//支持开放域,其余同上
//支持开放域,其余同上
void CreateRegion2DEx(TGObjectList&curves,TGObjectList&res,bool bCheckHole);
double GetAngle(const TPGeDscEdge&e0,const TPGeDscEdge&e1);
@@ -34,7 +34,7 @@ namespace TchSubPrivate
int LinePlaneInt3D(double A,double B,double C,double D,const TGPoint&pt0,const TGVector3D&vt,double&pa);
int PlaneInt(double A1,double B1,double C1,double D1,double A2,double B2,double C2,double D2,TGPoint&pt,TGVector3D&vt);
//求交
//求交
int LineInt2D(const TGPoint&pt1,const TGVector2D&vt1,const TGPoint&pt2,const TGVector2D&vt2,double&pa1);
int LineInt2D(const TGPoint&pt1,const TGVector2D&vt1,const TGPoint&pt2,const TGVector2D&vt2,double&pa1,double&pa2);
@@ -53,7 +53,7 @@ namespace TchSubPrivate
return AcGePoint2d(pt.x,pt.y);
}
//直线起点,直线方向
//直线起点,直线方向
inline void LinePa2D(const TGPoint &pt0,const TGVector2D&vt,const TGPoint& pt,double &pa)
{
if (fabs(vt.y) > fabs(vt.x))
@@ -78,7 +78,7 @@ namespace TchSubPrivate
return sqrt(dx * dx + dy * dy + dz * dz);
}
//直线起点,直线方向
//直线起点,直线方向
inline void LinePt2D(const TGPoint &pt0,const TGVector2D&vt,double pa,TGPoint&pt)
{
pt.x = pt0.x + vt.x * pa;
@@ -89,7 +89,7 @@ namespace TchSubPrivate
inline double LineIntegration2D(const TGPoint&pt0,const TGVector2D&vt,double pa0,double pa1)
{
const double &x0 = pt0.x,&y0 = pt0.y,&a = vt.x,&b = vt.y;
if (EQUAL_ZERO(a)) //直线平行于Y轴
if (EQUAL_ZERO(a)) //直线平行于Y轴
{
return 0;
}
@@ -97,7 +97,7 @@ namespace TchSubPrivate
return a * m * (y0 + b * n / 2);
}
//参数pa0,pa1为以圆心为原点的右手极坐标系的弧度分量
//参数pa0,pa1为以圆心为原点的右手极坐标系的弧度分量
inline double CircleIntegration2D(const TGPoint&center,double r,double pa0,double pa1)
{
double A = center.y * cos(pa0) - r * pa0 / 2 + r * sin(2 * pa0) / 4;