generate

NAME

generate - create a point cloud.

SYNOPSIS

generate [-?|-h|--help] [-t|--topology] [nx|nx ny|nx ny nz]

DESCRIPTION

generate creates a point cloud of regularly spaced points. The number of arguments specifies the dimension of the point cloud. One argument produce a line, two arguments a square and three arguments a cube, all of dimension 1. If, for example, one argument is given, it produces a line of nx points dividing the segment (0,0,0)-(1,0,0). The resulting point cloud is sent to the standard output. Option -t allows to produce a line cloud, a triangle cloud or a tetrahedron cloud. For a line cloud, use li2string(2) to convert it to the format used by other points&forces programs. For a tetrahedron cloud, use tet2vtk(2) to convert it to the VTK format (paraview can be used to process it). The cloud can be scaled and shaped using a combination of other points&forces programs, awk(1).

OPTIONS

-h,--help,-?

Returns the manual page.

-t,--topology

Output the topology (lines, triangles or tetrahedron) after the point cloud.

AUTHORS

Written by Pierre Smars (first version: 2020)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

Copyright (C) 2020 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

view_pt(1), scale(1), rotate(1), li2string(1), tet2vtk(1)

Pierre SMARS (tools, home page)