CollisionDetection(IList<Entity>, IList<Entity>, BlockKeyedCollection, Boolean, collisionCheckType, Int32, Int32) Constructor

The Collision detection utility constructor with two entity lists. The collision test checks collisions from the first entity list to the second one.
Public Sub New( _ 
ByVal list1 As IList(Of Entity), _ 
ByVal list2 As IList(Of Entity), _ 
ByVal blocksCollection As BlockKeyedCollection, _ 
Optional ByVal firstOnly As Boolean = true, _ 
Optional ByVal checkMethod As collisionCheckType = collisionCheckType.OB, _ 
Optional ByVal maxTrianglesNumForOctreeNode As Integer = 0, _ 
Optional ByVal maxTriangleEdgeLength As Integer = 0 _ 
)
This language is not supported or no code example is available.
public CollisionDetection( 
IList<Entity> list1
IList<Entity> list2
BlockKeyedCollection blocksCollection
bool firstOnly = true, 
collisionCheckType checkMethod = collisionCheckType.OB, 
int maxTrianglesNumForOctreeNode = 0, 
int maxTriangleEdgeLength = 0 
)
This language is not supported or no code example is available.

Parameters

list1
IList<Entity>

first entity group

list2
IList<Entity>

second entity group

blocksCollection
BlockKeyedCollection

the collection of the blocks that defines/contains the entities for the BlockReferences in the entities list

firstOnly
bool

when true,the collision detection will stop at the first couple of intersecting entities found

checkMethod
collisionCheckType

the collision accuracy type

maxTrianglesNumForOctreeNode
int

the maximum number of triangles for each Octant of each entity's octree (used only with Octree check methods)

maxTriangleEdgeLength
int

The maximum edge length or triangle side length of curved entity (Surface, Brep)

.NET Framework

Supported in: 4.8

In this article

Definition