Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

hvectext(1gv) [debian man page]

HVECTEXT(1gv)															     HVECTEXT(1gv)

NAME
hvectext - construct Geomview VECT text object from Hershey fonts SYNOPSIS
hvectext [-w totallength] [-s textheight] [-plane xy|xz|yz] [-at X Y Z] [-align n|s|e|w|ne|nw|se|sw|c] [-hershey fontfile.gsf] [--] text string ... DESCRIPTION
Hvectext generates a Geomview/OOGL vector-text object, of given height or total length (default -s .25). It aligns the given 3-D point (default -at 0 0 0) with the given corner of the text (default -align c). Alignment specs are like geographic directions; -align sw puts the ``at'' point at the ``southwest'' corner of the text, so that its lower left corner is at that coordinate. The corresponding VECT object is written to standard output. If no non-blank text characters are given, hvectext produces a null geom object ("{ }") as output. The special option -- marks the end of options; it's useful in case the text itself begins with a hyphen. Hvectext accepts Ghostscript Hershey fonts; the built-in default is Hershey-Plain-Simplex a.k.a. hrpl_s.gsf. Others of interest: hrsy_r.gsf (Symbol), hrpl_t.gsf (Triplex). For a complete list, see all the Ghostscript font files of nontrivial size whose names begin with "hr". Although there's no way to switch fonts within the string, the first line of output from hvectext is an OOGL comment resembling: # Continue with: -align sw -plane xy -s 0.25 -at 1.24378 0 0 giving options for hvectext to continue the string where it left off. ENVIRONMENT
GS_FONTPATH, if present, is a colon-separated list of directories in which Hershey font files are sought. FILES
perl (either version 4 or 5) must be installed. /usr/local/lib/ghostscript/fonts is searched if -hershey is given and GS_FONTPATH isn't set. Geometry Center 1 Nov 1996 HVECTEXT(1gv)

Check Out this Related Man Page

CLIP(1gv)																 CLIP(1gv)

NAME
clip - Clip an OOGL object against planes or other surfaces SYNOPSIS
clip [-v axisx,y,z,...] [-g value-or-point] [-l value-or-point] [-s nstrips[,fraction]] [-e] [-sph centerx,y,z,...] [-cyl centerx,y,z,...] [ooglfile] DESCRIPTION
Clip, adapted from Daeron Meyer's ginsu module, allows clipping an OOGL object against planes, spheres, or cylinders from the UNIX command line. Its input can come from a file or standard input; output is written to standard output. Options specify a function of space position; the output is the portion of the object where the function is greater or less than some given value, or the portion lying between two values. Alternatively, an object can be sliced into equally-spaced strips. Objects may be of any dimension (but see the BUGS section). Options are: -g value-or-point -l value-or-point Select the portion of the object where the function is greater than (-g) or less than (-l) the given value. If both are specified, the result is the portion of the object satisfying both conditions. If, rather than a single number, the argument to -l or -g is a point (a series of x,y,z,... values separated by commas, with no embedded blanks), then the clipping surface is one chosen to pass through that point. -v axisx,y,z,... Specifies a direction in space. For planar clipping (the default), it's the plane normal direction; the clipping function is the inner product between the direction vector and the point on the object. For cylindrical clipping, -v specifies the direction of the cylinder's axis; the clipping function is the distance from the axis. -sph centerx,y,z,... Clip against spheres centered on x,y,z,.... The clipping function is the distance from the given center. Coordinates must be sepa- rated by commas without intervening spaces. -cyl centerx,y,z,... Clip against cylinders with an axis passing through centerx,y,z,..., with axis direction given by the -v option. The clipping func- tion is the distance from the axis. -s nslices[,fraction] Clip an object into a series of nslices ribbons spanning its entire extent -- the range of function-values over the object. Part of each ribbon is omitted; the fraction, default .5, sets the width of the visible part of a ribbon compared to the ribbon period. There are a total of (nslices+fraction-1) ribbon periods across the object, so e.g. -s 2,.5 slices the object into equal thirds, omitting the middle third. The output OOGL object is a LIST of OFFs, one per ribbon. -e Don't emit a clipped OOGL object, just print two numbers, listing the minimum and maximum function values for the object. If -g or -l clipping options are specified, the object is clipped before determining the function range. If none of the object remains, clip prints "0 0". EXAMPLES
To extract the portion of an object lying below the x+y+z=1 plane: clip -l 1 -v 1,1,1 file.oogl > portion.oogl To extract the portion of an object lying in the positive octant and below the x+y+z=1 plane, we can pipe multiple instances of clip together to find the intersection of several half-spaces: clip -g 0 -v 1,0,0 file.oogl | clip -g 0 -v 0,1,0 | clip -g 0 -v 0,0,1 | clip -l 1 -v 1,1,1 > portion.oogl To find the region lying between two surfaces (either above one and below the other, or below the first and above the second), say the planes 2x + y -.5z = 1 and y + 2z = 0: echo "{ LIST" clip -v 2,1,-.5 -g 1 file.oogl | clip -v 0,1,2 -l 0 clip -v 2,1,-.5 -l 1 file.oogl | clip -v 0,1,2 -g 0 echo "}" We use pipelines to compute intersections, and a LIST to form their union. SEE ALSO
ginsu(1) BUGS
Uses anytooff(1) to convert input data to OFF format internally; this can lose information. The only arbitrary-dimensional form accepted at present is nOFF, not nSKEL or nMESH. However the four-dimensional 4OFF, 4QUAD, 4MESH, 4VECT, etc. formats should work. Clip really only clips edges. If a curved clipping surface cuts an edge twice, or removes only an interior portion of some polygon, clip misses it entirely. Clipping against a curved surface yields a straight edge (a chord of the ideal curved edge segment). This latter failing might be fixed someday. Geometry Center 23 November 1994 CLIP(1gv)
Man Page