Skip to content

v.out.pov

Converts GRASS x,y,z points to POV-Ray x,z,y format.

v.out.pov input=name [layer=string] [type=string [,string,...]] output=name [size=string] [zmod=string] [objmod=string] [--overwrite] [--verbose] [--quiet] [--qq] [--ui]

Example:

v.out.pov input=name output=name

grass.script.run_command("v.out.pov", input, layer="-1", type="point,line,area,face", output, size="10", zmod=None, objmod=None, overwrite=False, verbose=False, quiet=False, superquiet=False)

Example:

gs.run_command("v.out.pov", input="name", output="name")

Parameters

input=name [required]
    Name of input vector map
    Or data source for direct OGR access
layer=string
    Layer number or name ('-1' for all layers)
    A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name.
    Default: -1
type=string [,string,...]
    Input feature type
    Allowed values: point, line, boundary, centroid, area, face, kernel
    Default: point,line,area,face
output=name [required]
    Name for output POV file
size=string
    Radius of sphere for points and tube for lines
    May be also variable, e.g. grass_r.
    Default: 10
zmod=string
    This string is appended to each z coordinate. Examples: '*10', '+1000', '*10+100', '*exaggeration'
objmod=string
    Object modifier (OBJECT_MODIFIER in POV-Ray documentation)
    Example: "pigment { color red 0 green 1 blue 0 }"
--overwrite
    Allow output files to overwrite existing files
--help
    Print usage summary
--verbose
    Verbose module output
--quiet
    Quiet module output
--qq
    Very quiet module output
--ui
    Force launching GUI dialog

input : str, required
    Name of input vector map
    Or data source for direct OGR access
    Used as: input, vector, name
layer : str, optional
    Layer number or name ('-1' for all layers)
    A single vector map can be connected to multiple database tables. This number determines which table to use. When used with direct OGR access this is the layer name.
    Used as: input, layer
    Default: -1
type : str | list[str], optional
    Input feature type
    Allowed values: point, line, boundary, centroid, area, face, kernel
    Default: point,line,area,face
output : str, required
    Name for output POV file
    Used as: output, file, name
size : str, optional
    Radius of sphere for points and tube for lines
    May be also variable, e.g. grass_r.
    Default: 10
zmod : str, optional
    This string is appended to each z coordinate. Examples: '*10', '+1000', '*10+100', '*exaggeration'
objmod : str, optional
    Object modifier (OBJECT_MODIFIER in POV-Ray documentation)
    Example: "pigment { color red 0 green 1 blue 0 }"
overwrite: bool, optional
    Allow output files to overwrite existing files
    Default: False
verbose: bool, optional
    Verbose module output
    Default: False
quiet: bool, optional
    Quiet module output
    Default: False
superquiet: bool, optional
    Very quiet module output
    Default: False

DESCRIPTION

v.out.pov converts GRASS vector data to POV-Ray format ()

EXAMPLE

v.out.pov input=vector3d output=vector3d.pov objmod="pigment { color red 0 green 1 blue 0 }"

The generated file can be included in an existing .pov file with the following statement:

#include "vector3d.pov"

REFERENCES

POV-Ray

SEE ALSO

r.out.pov

AUTHOR

Radim Blazek, ITC-Irst, Trento, Italy

SOURCE CODE

Available at: v.out.pov source code (history)
Latest change: Friday Feb 07 19:16:09 2025 in commit a82a39f