libjbt

jbt_taper Class Reference

Barr taper warp. More...

#include <taper.h>

Inherits jbt_warp.

List of all members.

Public Members


Detailed Description

Barr taper warp.

Author(s):
Mark Tigges

Implements a Barr taper warp. This warp scales either the x or the z axis or both based on the y value of the point.


Member Function Documentation

jbt_taper::jbt_taper( jFlt x = 1, jFlt z = 1, jbt_blobtree* obj = 0 )

Taper the given child object over the y range of its bounds.

Parameters:
x - Amount to taper x axis in [0..1]
z - Amount to taper z axis in [0..1]
obj - The child BlobTree to taper

jbt_taper::jbt_taper( jFlt x, jFlt z, jFlt ymin, jFlt ymax, jbt_blobtree* obj = 0 )

Taper the given child object over the given range of y

Parameters:
x - Amount to taper x axis in [0..1]
z - Amount to taper z axis in [0..1]
ymin - The lower end of the range of the taper
ymax - The upper end of the range of the taper
obj - The child BlobTree to taper

If ymin>ymax then the objects bounds are used instead.

jbt_blobtree::Type jbt_taper::type() const

Reimplemented from jbt_ngnode.

void jbt_taper::precompute( const jVec3& )

Reimplemented from jbt_warp.

jVec3 jbt_taper::warp( const jVec3& ) const

Reimplemented from jbt_warp.

jVec3 jbt_taper::unwarp( const jVec3& ) const

Reimplemented from jbt_warp.


The documentation for this class was generated from the following file:
JSP / libjbt v0.1 mtigges@cpsc.ucalgary.ca