Skip to content.
CCB > CCBSIGS > ShapeToolLibraryProgram > EncodeShape

EncodeShape

Overview

Translates a list of coordinates and faces into an image file, a Ucf file, or both, or neither.

This program duplicates the results of the C program rec131072_other_octants.

Version

1.0

Requirements

  • Java 1.5 or greater

Command line Options

two arguments are required, vertex.list and triangle.list.

  • vertex.list is a an ascii list of coordinates, one vertex per line. There must be exactly 65538 vertices (lines) in this file.
  • triangle.list is a list of the indices of the triangles of a surface. Each line defines one triangle by listing the indices of the vertices of the file. There must be exactly 16384 triangles (lines) in this file.

The command line arguments are listed in the following table:

Argument Type Required Description Notes
-help flag No Prints help and usage information.  
-version flag No Prints version number of this application.  
-verbose flag No Enables detailed status messages.  
-license flag No Prints license details, and exits.  
-twiki flag No Writes command line arguments as a TWiki format table to output and exit.  
-pipeline flag No Write pipeline descriptor file to output and exit.  
-pipelineJar String No Specify path to an application jar file, as a pipeline resource. Example: "pipeline://localhost//home/zed/Connery.jar"
-pipelineJvm String No Specify a Java Virtual Machine called by a pipeline.  
-pipelineJvmOptions String No Specify Java Virtual Machine options used by a pipeline.  
-writeUcf flag No Causes the octant defined in the triangle file to be written as a UCF to standard output.  
-writeAttribute flag No Causes the UCF enabled by -writeUcfto contain a per-vertex data attribute (four -d value).  
-writeUif String Yes Specify output file path.  

Typical Usage

Encode the shape defined by a vertex list, a set of faces, and write both ucf and uif output files.

java -jar EncodeShape.jar -writeUcf FULLvertex.list 64K_tri0_1oct.list -writeUif FULLvertex.cs.1_ord.uif