LavishNav:Aggregate (Region Type)

From Lavish Software Wiki
Jump to: navigation, search

Introduction

What is an Aggregate?

An aggregate is exactly like a universe, but with a different behavior for containment.

Aggregate Behaviors

Containment

An aggregate contains a given point if and only if any of its defined children contains that point. Aggregates should be used sparingly due to this fact, and at the very least, with a very small set of children. Aggregate children of aggregates would be especially bad.

Nearest Point

The nearest point within this region to any given point is the given point.

Center Point

The center point of an aggregate is its defined location.

Aggregate Characteristics

Aggregates are descendants of the base region type. Any characteristics of the base region type may be applied in addition to the aggregate-specific characteristics described below.

Aggregate-Specific Properties

  • X
X-coordinate. Defaults to 0.
  • Y
Y-coordinate. Defaults to 0.
  • Z
Z-coordinate. Defaults to 0.

Programming with aggregates

LavishScript
lnavaggregate Object Type
.NET
Aggregate class

Examples

Example XML code

<Aggregate Name="My Aggregate" Unique="1">
   <X>123.456</X>
   <Y>456.789</Y>
   <Z>789</Z>
</Aggregate>

See Also