多端线和直线之间求交点
<P>多端线(其中有一些是圆弧)和直线之间如何求交点,请高手指教</P> <P class=Heading-2>Signature<P class=syntax>RetVal = object.IntersectWith(IntersectObject, ExtendOption)
<P class=element>Object</P>
<P class=element-desc><A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/all_drawing_objects.htm" target="_blank" >All Drawing Objects</A> (Except Pviewport and PolygonMesh)<BR>The object or objects this method applies to.
<P class=element>IntersectObject</P>
<P class=element-desc>Object, input-only; <BR>The object can be one of <A href="mk:@MSITStore:D:\Program%20Files\AutoCAD%202004\help\acadauto.chm::/all_drawing_objects.htm" target="_blank" >All Drawing Objects</A>.<BR>
<P class=element>ExtendOption</P>
<P class=element-desc>AcExtendOption enum; input-only<BR>This option specifies if none, one or both, of the objects are to be extended in order to attempt an intersection.</P>
<TABLE class=Simple>
<TBODY>
<TR vAlign=top>
<TD>
<P class=constant>acExtendNone</P></TD>
<TD>
<P class=constant-desc>Does not extend either object.</P></TD></TR>
<TR vAlign=top>
<TD>
<P class=constant>acExtendThisEntity</P></TD>
<TD>
<P class=constant-desc>Extends the base object.</P></TD></TR>
<TR vAlign=top>
<TD>
<P class=constant>acExtendOtherEntity</P></TD>
<TD>
<P class=constant-desc>Extends the object passed as an argument.</P></TD></TR>
<TR vAlign=top>
<TD>
<P class=constant>acExtendBoth</P></TD>
<TD>
<P class=constant-desc>Extends both objects.</P></TD></TR></TBODY></TABLE>
<P class=element>RetVal</P>
<P class=element-desc>Variant (array of doubles)<BR>The array of points where one object intersects another object in the drawing.
<P class=Heading-2>Remarks
<P class=body>If the two objects do not intersect, no data is returned. You can request the point of intersection that would occur if one or both of the objects were extended to meet the other. For example, in the following illustration, Line1 is the base object from which this method was called and line3 is the object passed as a parameter. If the ExtendOption passed is acExtendThisEntity, point A is returned as the point where line1 would intersect line3 if line1 were extended. If the ExtendOption is acExtendOtherEntity, no data is returned because even if line3 were extended, it would not intersect line1.
<P class=body>If the intersection type is acExtendBothEntities and line2 is passed as the parameter entity, point B is returned. If the ExtendOption is acExtendNone and line2 is the parameter entity, no data is returned.</P>
<TABLE class=Simple>
<TBODY>
<TR vAlign=top>
<TD>
<P class=body> </P></TD>
<TD>
<P class=italic><I><BR><BR><BR>line3<BR><BR>line2 </P></TD></TR>
<TR vAlign=top>
<TD>line1 </TD>
<TD> </TD></TR></TBODY></TABLE> <P>明经网上还有中文版的</P> <P>哦,谢谢了,实在是感谢,呵呵,本来了一个很笨的方法,这下应该可以解决了。</P>
页:
[1]