summaryrefslogtreecommitdiff
path: root/src/common/utilities/pointsetgenerator.md
blob: f39c63b83bc96f5f6497a222ebb63a54046992d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
layout: page
title: "Pointset generator"
meta_title: "pointsetgenerator"
subheadline: ""
teaser: ""
permalink: "/pointsetgenerator/"
---
{::comment}
These flags above are here for web site generation, please let them.
cf. https://gitlab.inria.fr/GUDHI/website
Must be in conformity with _data/navigation.yml
{:/comment}

## off_file_from_shape_generator ##

Generates a pointset and save it in an OFF file. Command-line is:

```
off_file_from_shape_generator on|in sphere|cube|curve|torus|klein <filename> <num_points> <dimension> <parameter1> <parameter2>...
```

Warning: "on cube" generator is not available!

**Examples**

```
off_file_from_shape_generator on sphere onSphere.off 1000 3 15.2
```

* Generates an onSphere.off file with 1000 points randomized on a sphere of dimension 3 and radius 15.2.

```
off_file_from_shape_generator in sphere inSphere.off 100 2
```

* Generates an inSphere.off file with 100 points randomized in a sphere of dimension 2 (circle) and radius 1.0 (default).

```
off_file_from_shape_generator in cube inCube.off 10000 3 5.8
```

* Generates a inCube.off file with 10000 points randomized in a cube of dimension 3 and side 5.8.