LavishNav:Point (Region Type)

From Lavish Software Wiki
Jump to navigation Jump to search

Introduction

What is a Point?

A point is a location with zero size in any dimension.

Point Behaviors

Containment

A point contains another point only if it is the same exact location. For example, a point defined at 0,0,0 contains a given point only if it is also 0,0,0.

Nearest Point

The nearest point (and only point) within this region to any given point is the defined location of the point. For example, the nearest point within a point defined at 0,0,0 to a given point at 1,1,1 is 0,0,0.

Center Point

The center point (and only point) within this region is the defined location of the point. For example, the center point of a point defined at 0,0,0 is 0,0,0.

Point Characteristics

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

Point-Specific Properties

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

Programming with points

LavishScript
lnavpoint Object Type
.NET
Point class

Examples

Example AddChild

; This code creates a point region at point 1,1,1.  It also uses automatic name generation.
LavishNav.Tree:AddChild[point,"auto",1,1,1]

Example XML code

<Point Name="Banker">
   <X>1.234</X>
   <Y>2.34567</Y>
   <Z>3.14159</Z>
</Point>

See Also