claw1.bmot
----------
The claw is a simple example of rails. The path for the rails is created with 
two arcs (two circle SOPs) which are scaled and rotated with a xform SOP.
A circle SOP is used to create the cross-section.
A rails SOP is then used to sweep the circle across the rails.

column1.bmot
------------
The path for the rails is created with an animated arc (circle SOP) which is 
then revolved with a copy SOP, to create 8 rails. Another arc is used for the
cross-section, then a rails SOP is used to sweep the arc along the rails. Note
that the rails SOP has the "Sweep along first and last rails" turned on to 
close the figure. 

cord1.bmot
----------
The basic path is a circular arc which is then transformed by gravity with a
spring SOP. The resulting path is then splined and swept with a circular cross-
section (sweep has a 30 degree twist to get a spiral path). The resulting spiral
has the circular cross sections perpendicular to the sweep curve and not the
spiral curve: therefore, the spiral path is extracted using a skin and merge
SOP, along which another circle is swept creating the spiral.

puddle1.bmot
------------
Puddle is created with a semi-circular cross-section (circle SOP) and animated
rails. The rails are animated using a creep SOP: First the entire path for
the puddle is create with two polygons in model mode. Then a spline SOP 
smoothes these two edges. A skin SOP creates a surface: this is the path for
the creep SOP. A grid SOP with 2 rows and 25 columns is then creeped along this
path. The cross-section is stretched across the rails. 
Notes about the rails SOP:
The cross-section is scaled down using the scale option and stretched across
using the "Stretch to rails option" This means that the cross-section 
gets stretched variably by the rails but maintains the same perpendicular
scale - therefore the centre of the puddle always stays the same height. 
You could get a similar effect with bevel SOP, but the curvature would only 
affect the edges and not the entire surface. (curvature across the surface 
means bigger highlights, wider range of reflections: click Render to see).

seashell1.bmot
--------------
The sheashell is created with two spiral rails. Each spiral is created with a
circle SOP and a point SOP which uses sine/cosine functions to generate the 
spiral. A merge SOP brings the two rails together. A circle SOP is used to
for the cross-section. Then the rails SOP is used to sweep the circle between
the two rails. Finally a point SOP is used to modify the point colors to make
stripes on the seashell.

railsPatch.bmot
---------------
How to make Boundary Patches using SOPs:

Triangular Patches (Potato)
---------------------------
A triangular patch is created with three open polygons. Two of these 
polygons are used as rails, and these two polygons end at the same point.
The third polygon is used as the X-Section for the rails SOP. It the
X-Section becomes twisted off its starting position, it can be corrected 
either with "Pitch" or "Use Up Vector". 

Multiple patches can be merged and cleaned with a facet SOP. A polygon SOP
may be necessary for some patches so that the normals all end up facing the
same direction. 

Rectangular Patches (Boundary)
------------------------------
A rectangular patch is created with two rails (the sides) and two end
profiles (front and back). The trick is to generate all the "inbetween"
X-Sections. To do this a grid SOP is created that has as many rows as
there are points in each polygon side (21 in this case) and as many columns
as there are points in each end profile (29 in this case). The output from
the grid SOP is a series of polygons (Rows). Then a point SOP is used to 
replace the grid with the averages between the two end profiles by using
this expression:

pos x = point(ThisObject,FrontProfileSOP,$PT % pointsPerProfile,TX) 
	* ( 1 - int ($PT / pointsPerProfile) / (pointsPerSide - 1) )
        + point(ThisObject,BackProfileSOP,$PT % pointsPerProfile,TX) 
	* (     int ($PT / pointsPerProfile) / (pointsPerSide - 1) )

pos y and pos z are the same, except for TY and TZ replace TX respectively.
In this case, the point function for pos x is:

        point (Boundary,2,$PT%29,TX) * (1-int($PT/29)/20) 
        + point (Boundary,4,$PT%29,TX) * (  int($PT/29)/20)   

Finally, a rails SOP is used with the result from the point SOP as the 
X-Section; and the options "Cycle Polyons" and "Use Up Vector" selected.

pumpkin1.bmot (rails plus boolean)
----------------------------------
This bmot shows how to model with the rails sop to create a closed object
quickly to be used with a boolean operation. The object is a pumpkin with
ribs along it's cross-section. The basic hull is created with an arc 
transformed and then copied to create the hull paths. Then another arc is
used as the swept object for the rails sop.
