本文整理汇总了C++中AcGeVector3d::normal方法的典型用法代码示例。如果您正苦于以下问题:C++ AcGeVector3d::normal方法的具体用法?C++ AcGeVector3d::normal怎么用?C++ AcGeVector3d::normal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AcGeVector3d
的用法示例。
在下文中一共展示了AcGeVector3d::normal方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CalActParameter
PDEcone::PDEcone(const AcGePoint3d &ptStart, const AcGePoint3d &ptEnd,
double Diameter1, double Diameter2, const AcGeVector3d &vect,
int Precision/* = PRIMARY3D_DEFAULT_PRECISION*/,
bool HasSnap/* = false*/) : PDPrimary3D(HasSnap)
{
m_ptStart = ptStart;
m_ptEnd = ptEnd;
if (m_ptStart.isEqualTo(m_ptEnd))
m_ptEnd=m_ptStart+AcGeVector3d(0,0,1);
m_dDiameter1 =fabs(Diameter1) ;
if(m_dDiameter1==0)
m_dDiameter1=1;
m_dDiameter2 =fabs(Diameter2) ;
m_vect = vect.normal();
if(Precision > 2)
m_dDividPrecision = Precision;
else
m_dDividPrecision = PRIMARY3D_DEFAULT_PRECISION;
CalActParameter();
#ifdef _USEAMODELER_
createBody();
#endif
}//added by linlin 20050929
示例2:
void
ArxDbgDbEntity::getEcs(AcGeMatrix3d& retVal) const
{
AcGeVector3d yDir = m_zDir.crossProduct(m_xDir);
retVal.setCoordSystem(m_origin, m_xDir, yDir.normal(), m_zDir);
}
示例3: setParameters
Acad::ErrorStatus PDEcone::setParameters(const AcGePoint3d &ptStart,
const AcGePoint3d &ptEnd,
double d1,
double d2,
const AcGeVector3d &vect,
int Precision/* = PRIMARY3D_DEFAULT_PRECISION*/)
{
assertWriteEnabled();
m_ptStart = ptStart;
m_ptEnd = ptEnd;
if(m_ptStart.isEqualTo(m_ptEnd))
m_ptEnd=m_ptStart+AcGeVector3d(0,0,1);
m_dDiameter1 =fabs(d1) ;
if(m_dDiameter1==0)
m_dDiameter1=1;
m_dDiameter2 =fabs(d2) ;
m_vect = vect.normal();
if(Precision > 2)
m_dDividPrecision = Precision;
else
m_dDividPrecision = PRIMARY3D_DEFAULT_PRECISION;
CalActParameter();
#ifdef _USEAMODELER_
createBody();
#endif
return Acad::eOk;
}//added by linlin 20050929