Hide Table of Contents
IGetIntersectionEdges Method (IBody2)

Gets the edges that intersect two temporary bodies.

.NET Syntax

Visual Basic (Declaration) 
Function IGetIntersectionEdges( _
   ByVal ToolBodyIn As Body2 _
) As Edge
Visual Basic (Usage) 
Dim instance As IBody2
Dim ToolBodyIn As Body2
Dim value As Edge
 
value = instance.IGetIntersectionEdges(ToolBodyIn)
C# 
Edge IGetIntersectionEdges( 
   Body2 ToolBodyIn
)
C++/CLI 
Edge^ IGetIntersectionEdges( 
&   Body2^ ToolBodyIn
) 

Parameters

ToolBodyIn
Temporary body used to perform the intersection

Return Value

  • in-process, unmanaged C++: Pointer to an array of edges 
  • VBA, VB.NET, C#, and C++/CLI: Not supported

    See In-process Methods for details about this type of method.

  • Remarks

    This method imprints a set of edges on both of these temporary bodies and returns the edges in an unordered list as shown below. The total number of edges in this array is twice the value returned from
    IBody2::IGetIntersectionEdgeCount.

    [ Edge1imprintedOnTarget, Edge1imprintedOnTool, Edge2imprintedOnTarget, Edge2imprintedOnTool ]

    where the target body is the IBody2 object used to call this method and the tool body is passed into this method as the first argument.

    If the two bodies are in an assembly, then IBody2::GetIntersectionEdges generates a list of the intersection edges between the two bodies. To do this, the second body must be transformed in its coordinate space so that it is positioned the same with respect to the first body as it is in assembly space.

    To align the two bodies before calling IBody2::GetIntersectionEdges or IBody2::IGetIntersectionEdgeCount, calculate the transformation from the first body to the second body and set this as the transform for the second body using IBody2::ApplyTransform.

    In the case of a tangency condition (for example, a planar face contacting the cylindrical face of a cylinder), this method returns a single edge along the tangency.

    You might also find that IBody2::IOperations2 provides an adequate solution. This method intersects a sheet body with a target body.

     

    See Also

    Availability

    SOLIDWORKS 2001Plus FCS, Revision Number 10.0


    Provide feedback on this topic

    SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

    * Required

     
    *Email:  
    Subject:   Feedback on Help Topics
    Page:   IGetIntersectionEdges Method (IBody2)
    *Comment:  
    *   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

    Print Topic

    Select the scope of content to print:



    x

    We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

     Never show this message again
    x

    Web Help Content Version: API Help (English only) 2015 SP05

    To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

    To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.