3DBoundingBoxReplacer

From fmepedia


Table of contents



Overview

The BoundingBoxReplacer transformer works only with 2D features. This 3DBoundingBoxReplacer custom transformer provides the ability to get a 3D Bounding Box (or Cube).



Methodology

This is a fairly simple custom transformer.

Image:3dbbr1.png

- The BoundsExtractor is used to determine the minimum and maximum X,Y,Z values for each feature.
- The 2DBoxReplacer replaces the feature with a 2D box representing the base of the cube
- The 3DForcer assigns the correct Z value to the base of the cube
- The ExpressionEvaluator calculates the difference between min Z and max Z
- The Extruder stretches the box into a 3D cube, using the calculated offset
- The AttributeRemover cleans up unwanted attributes



Output

The output from this transformer is a 3D cube - here a set are shown in an Adobe PDF:

Image:3dbbr2.png

Attached Files
filesizedate
3dbbr.zip43.1 kB03/20/09
User Comments Add a new comment