Skip to content

pawel2000pl/wavefront-bearing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wavefront (and stl) bearing generator

Usage

Requires only gcc.

Compile and process examples with command:

make all

The program reads data from standard input and prints models to standard output (wavefront) and standard error (stl).

Usage:

# Print only one format
./bin/wf obj < examples/def.in > models/def.obj 
./bin/wf stl < examples/def.in 2> models/def.stl

# Print wavefront and stl but save only one
./bin/wf < examples/def.in > models/def.obj 2> /dev/null
./bin/wf < examples/def.in 2> models/def.stl > /dev/null

# Print wavefront and stl and save them all
./bin/wf < examples/def.in > models/def.obj 2> models/def.stl
./bin/wf < examples/def.in obj stl > models/def.obj 2> models/def.stl

See the examples for the input format.

Below is the order of the input data:

Calculated roll count and Calculated roll ray are generated automatically.

Dimensions

Count - verticles per round Roll (vertex per round) count - verticles per round (in rolls) Epsilon in x-axis and y-axis - additional space between faces in x-axis and y-axis
Epsilon in z-axis - additional space between faces in z-axis



View in z-axis direction



The intersection



View in y-axis direction

Images



Example bearing



Bearing skeleton



Large bearing



Bearing with roll liner = 1



Bearing with roll cover = 0



View on rail of roll



Skeletal side view

Practical usage

Adjust the epsilon depending on the accuracy of your printer. Too small causes the rollers to stick to the rings. Remember to add support. Adding support causes additional bearing sticking and problems on first start. If the rails are set too large, the rollers may be cut.