66 lines
1.2 KiB
C
66 lines
1.2 KiB
C
#ifndef _KTARCH_H__
|
|
#define _KTARCH_H__
|
|
|
|
#define E6TOL 1.e-6
|
|
#define E3TOL 1.e-3
|
|
#define EBTOL 1.0
|
|
|
|
struct KTArch
|
|
{
|
|
typedef struct PtOnCrItem
|
|
{
|
|
AcGePoint3d m_ptGeOn;
|
|
AcDbCurve * m_pCurve;
|
|
} PTONCRITEM,* PPTONCRITEM;
|
|
|
|
typedef struct PointPair
|
|
{
|
|
AcGePoint3d m_ptGe1;
|
|
AcGePoint3d m_ptGe2;
|
|
AcDbCurve * m_pCurve;
|
|
AcDbObjectId m_id1;
|
|
AcDbObjectId m_id2;
|
|
} POINTPAIR,* PPOINTPAIR;
|
|
|
|
typedef CArray<PointPair,PointPair& > PointPairArray;
|
|
|
|
typedef struct PairWallID
|
|
{
|
|
AcDbObjectId m_id1;
|
|
AcDbObjectId m_id2;
|
|
|
|
AcDbObjectId m_idSta[2];
|
|
AcDbObjectId m_idEnd[2];
|
|
int m_nSta[2];
|
|
int m_nEnd[2];
|
|
} PAIRWALLID,* PPAIRWALLID;
|
|
|
|
typedef struct PairWallEn
|
|
{
|
|
AcDbEntity* m_pEnt1;
|
|
AcDbEntity* m_pEnt2;
|
|
AcDbEntity* m_pEntSta;
|
|
AcDbEntity* m_pEntEnd;
|
|
int m_nStaFlag;
|
|
int m_nEndFlag;
|
|
}PAIRWALLEN,* PPAIRWALLEN;
|
|
|
|
typedef CArray<PairWallEn,PairWallEn& > PairWallEnArray;
|
|
typedef CArray<PairWallID,PairWallID& > PairWallIDArray;
|
|
|
|
enum KTJoinType
|
|
{
|
|
kNoWallJoin = 0, //短嗤能銭俊
|
|
kStopWallJoin = 1, //嗤撃笥能銭俊
|
|
kOtherWallJoin = 2 //凪万能銭俊
|
|
};
|
|
|
|
typedef struct WallXData
|
|
{
|
|
double m_dLeftWall; //恣能搾
|
|
double m_dRightWall; //嘔能搾
|
|
int m_nMeterial; //能議可創協吶
|
|
}WALLXDATA,*PWALLXDATA;
|
|
};
|
|
|
|
#endif |