把非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 : TPointList 类
// = FileName : TPointList 类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TPointList 定义
// = Description: TPointList 定义
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
@@ -122,10 +122,10 @@ int TPointList::Insert(const TADSGePoint3d & pt, BOOL bExt)
else
{
TGGeArc arcSeg(center, ads_distance(center, *Head()), ads_angle(center, *Head()), ads_angle(center, *Tail()));
// 没有考虑在端点,改正2001/9/13
// 没有考虑在端点,改正2001/9/13
if (fabs(pt.Distance2d(arcSeg.GetCenterPt()) - arcSeg.GetRadius()) < _DIST_SNAP &&
pt.Distance2d(*Head()) > _DIST_SNAP && pt.Distance2d(*Tail()) > _DIST_SNAP)
{ //在弧外
{ //在弧外
if (pt.Distance2d(*Head()) < pt.Distance2d(*Tail()))
{
(*this)[0];
@@ -207,7 +207,7 @@ int TPointList::Update(const ads_name ref)
}
// 化作Poly2D
// 化作Poly2D
void TPointList::AsPoly2D(TGGePoly2D &poly) const
{
int listLen = Length();
@@ -215,14 +215,14 @@ void TPointList::AsPoly2D(TGGePoly2D &poly) const
if (curveType == CURVE_CIRCLE)
{
if (listLen <= 2)
{ //圆分解为两段弧
{ //圆分解为两段弧
TGGeCurveSegment segCir;
segCir = TGGeCircle(center, ads_distance(center, pts[0]));
segCir.AsPoly2D(poly);
}
else
{
//圆分解为多段弧
//圆分解为多段弧
for (int i = 1; i < listLen; i++)
{
TADSGePoint3d pt2;