FB_AABB - General Information

Overview

Type:

Function block

Available as of:

V1.0.0.0

Inherits from:

-

Implements:

IF_AABB

Versions:

Current version

This chapter provides information on:

Task

Implements an Axis-Aligned Bounding Box (AABB) object.

Description

The interface is for an AABB, a box which faces are always aligned to the axes of the reference system.

It can be defined in two ways:

  • Providing the minimum and maximum vertices of the box.

  • Providing the position of its center and its half extents.

The following figure is a representation of an Axis-Aligned Bounding Box (AABB):

Properties

Name

Data type

Accessing

Description

rstCenter

REFERENCE TO SE_Math.ST_Vector3D

Get

Center of the AABB object.

rstHalfExtents

REFERENCE TO SE_Math.ST_Vector3D

Get

Half extents of the AABB object along X, Y and Z.

rastVertices

REFERENCE TO ARRAY [1...Gc_udiMaxNumberOfCollisionObjectVertices] OF SE_Math.ST_Vector3D

Get

List of vertices for the AABB object.

rstMinVertex

REFERENCE TO SE_Math.ST_Vector3D

Get

Minimum vertex for the AABB object.

rstMaxVertex

REFERENCE TO SE_Math.ST_Vector3D

Get

Maximum vertex for the AABB object.

udiNumberOfVertices

UDINT

Get

Number of vertices of an AABB object.

etType

ET_CollisionObjectType

Get

This property describes the type of bounding volume implemented by the object.

xConfigured

BOOL

Get

The value of this property is TRUE if the object has been properly initialized, FALSE otherwise.