greatken 发表于 2006-9-11 14:31:00

[ARX]怎么求一点到多段线的垂线的垂足的啊?

怎么求一点到多段线的垂线的垂足的啊?

梦幻神话 发表于 2006-9-21 15:07:00

你可以用数学的方法求啊

yang611 发表于 2006-10-31 21:53:00

<P class=signature>virtual Acad::ErrorStatus</P>
<P class=signature>getClosestPointTo(</P>
<P class=signatureIn>const AcGePoint3d&amp; givenPnt,</P>
<P class=signatureIn>const AcGeVector3d&amp; direction,</P>
<P class=signatureIn>AcGePoint3d&amp; pointOnCurve,</P>
<P class=signatureInEnd>Adesk::Boolean extend = Adesk::kFalse) const;</P>
<TABLE class=argumentList>
<TBODY>
<TR vAlign=baseline>
<TD class=argumentName>givenPnt</TD>
<TD class=argumentDescription>Input point (in WCS coordinates) for which to find nearest point on curve</TD></TR>
<TR vAlign=baseline>
<TD class=argumentName>direction</TD>
<TD class=argumentDescription>Input normal vector (in WCS coordinates) for plane to project onto</TD></TR>
<TR vAlign=baseline>
<TD class=argumentName>pointOnCurve</TD>
<TD class=argumentDescription>Returns the point (in WCS coordinates) on the curve that is nearest to givenPnt</TD></TR>
<TR vAlign=baseline>
<TD class=argumentName>extend</TD>
<TD class=argumentDescription>Input Boolean indicating whether or not to extend curve in search for nearest point</TD></TR></TBODY></TABLE>
<P>This function projects the curve onto the plane defined by givenPnt and normal, finds the point on the projected curve that is nearest to givenPnt, then projects this nearest point back onto the original curve and sets pointOnCurve to the result.</P>
页: [1]
查看完整版本: [ARX]怎么求一点到多段线的垂线的垂足的啊?