Skip to topic
|
Skip to bottom
Jump:
TModeling
TModeling Web
TModeling Web Home
Changes
Notify
Index
Search
Webs
BioGeometry
Main
TModeling
TWiki
Edit
Attach
Printable
TModeling.Sp2sp
r1.1 - 29 Dec 2008 - 23:03 - Main.guest
topic end
Start of topic |
Skip to actions
*sp2sp* Used for converting between various streaming point file formats plus a little bit of ad hoc filtering operations as well. This program can read finalized or unfinalized point sets, in ASCII or binary. It can discard points outside a box specified by -clamp. It can also compute a separate header (containing a bounding box) that can be passed to [[spfinalize]] to avoid having reread data to obtain it. ------- ---+++Example usage: <pre> sp2sp -h sp2sp -i points.spb -ospa | more sp2sp -i mesh.ply -o points.txt sp2sp -i points.txt.gz -o points.spb sp2sp -i mesh.obj.gz -isma -o points.spa -random 100 sp2sp -i mesh.ply.gz -o points.spb -clamp3 1.0 1.0 1.0 3.0 3.0 3.0 sp2sp -i points.raw_f -ho points.hdr_f sp2sp -i points.raw_f -hi points.hdr_f -o points.spa sp2sp -h </pre> To merge 2 files <pre>sp2sp.exe -i file1.spb -i2 file2.spb -ospb -o merged_file.spb</pre> To merge a list of UPC files <pre>sp2sp.exe -lof -iupc -i c:\OttawaDemo\upc_files.txt -ospb -o c:\OttawaDemo\upc_merge.spb</pre> Where *upc_files.txt* is a *text* file containing a list of file names of UPC files (1 file per line in file) ---++++General <pre>-i <input file></pre> Input file to transform (or copy) <pre>-i2 <2nd input file></pre> A 2nd input file * If specified, than the intent is to merge 2 input files into 1 output file <pre>-o <output file></pre> Output file after transforming, copying, or merging ------ ---++++Input File Formats <pre>-ispa</pre> Streaming Point ASCII <pre>-ispb</pre> Streaming Point Binary <pre>-isma</pre>Streaming Mesh ASCII <pre>-ismb</pre> Streaming Mesh Binary * _not currently supported but it should be_ <pre>-ismc</pre> Streaming Mesh Compressed * _not currently supported but it should be_ <pre>-iupc</pre> Data format from !D.O.D. for Ottawa data set * _Note:* We can also support merging a list of UPC files using -lof flag ------- ---+++++Output File Formats <pre>-ospa</pre> Streaming Point ASCII <pre>-ospb</pre> Streaming Point Binary ------ ---+++++Miscellaneous Flags <pre>-hi <headerfile></pre> Specify an optional input header file <pre>-ho <headerfile></pre> Specify an optional output header file <pre>-lof</pre> List of Files * Specifies that the *input* file name is actually a *text* file containing a list of files to be merged. * 1 file per line in text file * only supported for .upc, .txt and .las file formats <pre>-list</pre> List of Files * Alias for =-lof= <pre>-listoffiles</pre> List of Files * Alias for =-lof= <pre>-double</pre> Force input to double * Force Data type to be read as doubles <pre>-force_double</pre> Same as =-double= <pre>-float</pre> Force input to float * Force Data Type to be read as floats <pre>-force_float</pre> Same as =-float= <pre>-random <num points></pre> Generates random set of 'n' points <pre>-pertube</pre> * Misspelled--should be -perturb * Randomly perturbs all points in file by a very small number, useful for stress testing delaunay triangulation. <pre>-b <intVal></pre> Set Compression bitrate <pre>-bits <intVal></pre> * Same as =-b= * _Note: this may not be very useful, since there is no spc [compressed] file format) and the support for .smc is currently broken..._ <pre>-seed <number></pre> Seed for Random number generation <pre>-unfinalize</pre> Throw away all cell commands in sp file <pre>-bb</pre> Compute Bounding Box (min/max) values <pre>-compute_bb</pre> Same as =-bb= _(Note: Requires extra pass thru input file which breaks streaming/pipelining)_ <pre>-clamp2 <xmin> <xmax> <ymin> <ymax></pre> Clamps all points to specified ranges _(Note: zmin, zmax defaults to range [0,0], all 3D points get projected onto xy plane)_ <pre>-clamp3 <xmin> <xmax> <ymin> <ymax> <zmin> <zmax></pre> Clamps all points to specified ranges <pre>-sub <everyNthPoint></pre> Only outputs every nth point from input <pre>-subsample <everyNthPoint></pre> Same as =-sub= _(I.E., -sub 100 would only output one point for every 100 points read in)_ _Note: The functionality of sp2sp and spfinalize should perhaps be folded together. They are separate just because they were initially written that way._ -- Main.JackSnoeyink - 02 Jun 2008 -- Main.ChristianStith - 24 Jun 2008 ---------- ---++++OTHER FLAGS <pre>-parse <parse string></pre> Used to help extract <x,y,z> values from arbitrary text files. Need to debug to figure out exactly how it works. <pre>-tiles2D</pre> * Allows generation of very large data sets from a simple seed file for testing * Tiles seed file in 2 dimensions * IE you get i*j copies of original data set in output file <pre>-tiling2D</pre> * Same as -tiles2D <pre>-tiles3D</pre> * Allows generation of very large data sets from a simple seed file for testing * Tiles seed file in 3 dimensions * IE you get i*j*k copies of original data set in output file <pre>-tiling3D</pre> * Same as -tiles3D
to top
End of topic
Skip to action links
|
Back to top
Edit
|
Attach image or document
|
Printable version
|
Raw text
|
More topic actions
Revisions: | r1.1
|
Total page history
|
Backlinks
You are here:
TModeling
>
Sp2sp
to top
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback