libjbt

jbt_polyline Class Reference

A poly-line primitive, a connected group of line segments. More...

#include <polyline.h>

Inherits jbt_primitive.

List of all members.

Public Members


Detailed Description

A poly-line primitive, a connected group of line segments.

Author(s):
Mark Tigges , Callum Galbraith

This primitive implements a connected group of n - 1 line segments from n points. The line segments are smoothly connected using a rolling penny blend.

There is a fair amount of re-computation going on in this class. At some point it should be re-visited and sped a bit.

Note that at this time using any distance metric besides Euclidean (the default) is not supported. The results are undefined. To make it work with other metrics, we need to compute a basis for the query point which is similar to the basis used for computing the u coordinate of elemental parameterization.


Member Function Documentation

jbt_polyline::jbt_polyline( const jVec3*, int, jFlt pr = 0.5, jFlt r = 1.0 )

Construct a new poly line. Pass the points for the line segments, the number of points and two radii.

Parameters:
pr - The radius of the rolling penny, should be between 0 and 1, it will be interpolated into the range jbt_object::L to r
rad - The radius of the scalar field.

jbt_polyline::~jbt_polyline()

int jbt_polyline::count() const

Returns the number of points in the polyline.

const jVec3& jbt_polyline::getPoint( jUInt i ) const

Gets the position of the ith point.


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