PNTS(nged)
Creates/writes/generates a "pnts" (i.e. point cloud) primitive.
π PNTS(nged) π
Okay so welcome to the PNTS(nged) page from the BRL-CAD User Commands manual β this is the one about making/writing/generating pnts point-cloud primitives. If you're here, you're about to vibe with point clouds in BRL-CAD, and that's iconic.
π NAME π
pnts β creates/writes/generates a "pnts" (i.e. point cloud) primitive.
β¨ SYNOPSIS β¨
pnts {subcommand} {subcommand arguments}
read [-f [xyzijksrgb]] [-u unit] [--size #] {input_file} {pnts_obj}
write [-p #] [--ply] {pnts_obj} {output_filepnts}
gen [-t #] [--surface] [--grid] [--rand] [--sobol] [--max-pnts] [--max-time] {obj} {output_pnts}
tri [unit] [-s #]
tri spsr
π¦ DESCRIPTION π¦
This command lets you create/write/generate pnts primitives, bestie. See also the make_pnts command.
Most pnts subcommands accept -h or βhelp to print subcommand-specific usage details. That's your built-in cheat sheet, no cap.
πΈ SUBCOMMANDS πΈ
π read π
Reads point data from an input file.
-f [xyzijksrgb]β specifies the format of input data.-u unitβ specifies the units β either a named unit (e.g.in), a number, or a unit expression (.15mm). Assumesmillemetersby default (translation: millimeters, bestie).βsize #/--size #β sets the default size for each point (default is0).
π
write π
Writes point data to an output file.
-p #β specifies the number of significant digits (default17).βply/--plyβ writes output in PLY format.
β¨ gen β¨
Generates a point set from the object and stores the set in a "pnts" primitive.
-t #β specifies the sampling grid spacing (in mm).βsurface/--surfaceβ saves only first and last points along a ray.βgrid/--gridβ samples using a gridded ray pattern.βrand/--randβ samples using a random Marsaglia ray pattern on the bounding sphere.βsobol/--sobolβ samples using a Sobol pseudo-random Marsaglia ray pattern on the bounding sphere.βmax-pnts/--max-pntsβ specifies the maximum number of pnts to return per non-grid sampling method.βmax-time/--max-timeβ specifies the maximum time to spend per method (in seconds) when using non-grid sampling.
π tri [unit] π
Generates unit or scaled triangles for each pnt in a point set. If no normal information is present, uses origin at avg of all set points to make normals.
-s #β specifies the scale factor to apply to unit triangles β scales the triangle to size with the triangle centered on the original point.
π tri spsr π
Apply the Screened Poisson Surface Reconstruction methodology to generate a mesh from the point cloud. See the -h option for the various controls available for this methodology.
π« EXAMPLES π«
Example 1. Read a point cloud file
mged>pnts read -f xyz -u in βsize 1 pointsfile.txt point_cloud.s1
Creates a pnts primitive named point_cloud.s1 using the data file pointsfile.txt where the data file only contains the point coordinates listed in the order xyz. The units of the file data is in and the default point size is set to 1.0 (in current model units). Slay.
Example 2. Write a points file from a pnts primitive.
mged>pnts write -p 3 point_cloud.s1 pointsfile.txt
Write the XYZ coordinates of the pnts primitive point_cloud.s1 to a file called pointsfile.txt and give 3 significant digits.
π AUTHOR π
BRL-CAD Team
π BUG REPORTS π
Reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org.
Later bestie β footer tea: BRL-CAD source/version vibes plus the PNTS(nged) manual name, and thereβs no date printed in the original footer. Thatβs the whole sign-off situation π«Άπ
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms