Skip to content

A utility to create arbitrarily large point clouds from meshes

License

Notifications You must be signed in to change notification settings

cgaueb/MeshSampler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

MeshSampler [OPTIONS] filename

Description

Samples an input mesh and generates and stores surface samples in an out-of-core manner, to support very large numbers of samples. Results are written to a PLY file with an extension ".sampled.ply".

filename: an OBJ file to load and sample.

Options

-s NUMBER: number of samples to draw. Default is 1000000.

-m MEMORY: maximum memory to use for the sample storage in Mbytes. Default is 64 (Mbytes). More memory -> fewer disk accesses to append chunks of samples to file.

-c: Additionally, sample colors. Textures are properly sampled, if present.

-n: Additionally, sample normals.;

-f FILTER: Texture sampling magnification filter. FILTER:

nearest: samples the closest texel.

linear: linearly blend the 4 closest texels. Default filter.

sharp: blend the 4 closest texels with cosine interpolation.

smooth: 16-tap random texel selection with cosine distance weighting.

Example

MeshSampler -s 20000000 -m 100 -c -n -f sharp data\cloister.obj

About

A utility to create arbitrarily large point clouds from meshes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published