Up
Next
off_align - alignment of OFF files
off_align [options] input_files
Read a file in OFF format (the base) and use its vertices to position
copies of itself or another file in OFF format (the brick).
- input_file
- input file in OFF format, or if not given the program reads from stdin
- -h
- program help
- -p <pts>
- two, four or six points given as the vertex index number
in the OFF files (starting at 0), and separated by commas.
The brick points are all given first and then the base points.
Formats:
- u1,v1 - point alignment
translation v1-u1 (so u1 of brick moves to v1 of base)
- u1,u2,v1,v2 - line alignment
point alignment as above followed by rotation through
v1 perpendicular to u1u2 and v1v2 to align u1u2 and v1v2.
- u1,u2,u3,v1,v2,v3 - face alignment
line alignment as above followed by a rotation
around v1,v2 so u3 lies in plane of v1v2v3.
- -b <file>
- brick file (default: base file)
- -M <mrg>
- merge files. 0 (default) don't merge, 1 brick after base, 2 brick
before base
- -o <file>
- write output to file, if this option is not used
the program writes to standard output
Bond first three vertices of poly1.off to first three vertices of
poly2.off and merge them, in that order, in the output
off_align -M 2 -p 3,5,0,5,3,0 -b poly1.off poly2.off
This can be used to build larger structures using polyhedra
as bricks.
Up:
Programs and Documentation
Next:
off_merge - merges OFF files
Packinon Documentation 14.6.2005 -
http://packinon.sourceforge.net/