| Bsoft 2.0.5 Bernard's software package

model_create.h
Go to the documentation of this file.
1
9 #include "rwmodel.h"
10 #include "symmetry.h"
11
12 // Function prototypes
13 Bcomponent* model_add_component(Bmodel* model, Bstring &id, Bstring &type, Vector3<double> loc);
14 Bmodel* model_platonic(Bsymmetry* sym, double radius);
15 Bmodel* model_helix(double radius, double helix_rise, double helix_angle, long ncomp);
16 Bmodel* model_random(long ncomp, double comp_radius, double max_radius);
17 Bmodel* model_random(long ncomp, double comp_radius, Vector3<double> min, Vector3<double> max);
18 Bmodel* model_random_gaussian(long ncomp, double std);
19 Bmodel* model_random_shell(long ncomp, double radius);
20 Bmodel* model_random_shell(long ncomp, double radius, double separation);
21 Bmodel* model_create_shell(long number, double radius, double distance);
22 Bmodel* model_create_fibonacci_sphere(long number, double radius);
23 Bmodel* model_create_dodecahedron(double radius, long divisions, double sphere_fraction);
24 Bmodel* model_create_icosahedron(double radius, long divisions, double sphere_fraction);
25 Bmodel* model_create_circle(double radius, double z, double distance);
26 Bmodel* model_create_ellipse(Vector3<double> axes, double distance);
27 Bmodel* model_create_ellipsoid(Vector3<double> axes, double distance);
28 Bmodel* model_create_cylinder(Vector3<double> direction, double radius,
29 double length, double distance);
30 Bmodel* model_create_plane(double length, double width, double z, double distance);
31 Bmodel* model_create_spindle(Vector3<double> direction, double radius,
32 double separation, double packing);
33
34
distance
double distance(vector< T1 > &v1, vector< T2 > &v2)
Definition: Vector3.h:536
model_create_plane
Bmodel * model_create_plane(double length, double width, double z, double distance)
Creates a plane with the given length, width, height, and component separation.
Definition: model_create.cpp:1170
model_random
Bmodel * model_random(long ncomp, double comp_radius, double max_radius)
Generates components at random non-overlapping locations and with random views.
Definition: model_create.cpp:201
model_create_shell
Bmodel * model_create_shell(long number, double radius, double distance)
Creates a sphere point model.
Definition: model_create.cpp:472
symmetry.h
Header file for general symmetry functions.
model_create_spindle
Bmodel * model_create_spindle(Vector3< double > direction, double radius, double separation, double packing)
Creates a spindle packed inside a sphere.
Definition: model_create.cpp:1229
model_random_shell
Bmodel * model_random_shell(long ncomp, double radius)
Generates random components on a shell.
Definition: model_create.cpp:361
model_create_dodecahedron
Bmodel * model_create_dodecahedron(double radius, long divisions, double sphere_fraction)
Creates an dodecahedron point model.
Definition: model_create.cpp:675
model_random_gaussian
Bmodel * model_random_gaussian(long ncomp, double std)
Generates components at random gaussian-distributed locations and with random views.
Definition: model_create.cpp:318
model_create_ellipse
Bmodel * model_create_ellipse(Vector3< double > axes, double distance)
Creates an ellipse with given semiaxes and component separation.
Definition: model_create.cpp:947
length
double length(vector< T > v)
Definition: Vector3.h:528
model_create_fibonacci_sphere
Bmodel * model_create_fibonacci_sphere(long number, double radius)
Creates a Fibonacci sphere point model.
Definition: model_create.cpp:569
model_add_component
Bcomponent * model_add_component(Bmodel *model, Bstring &id, Bstring &type, Vector3< double > loc)
Adds a component to a model.
Definition: model_create.cpp:32
Bsymmetry
Definition: symmetry.h:38
model
Bmodel * model
Definition: bshow.cpp:32
Bstring
Definition: Bstring.h:29
rwmodel.h
Header file for reading and writing atomic model files.
model_helix
Bmodel * model_helix(double radius, double helix_rise, double helix_angle, long ncomp)
Generates a helix model.
Definition: model_create.cpp:153
model_create_icosahedron
Bmodel * model_create_icosahedron(double radius, long divisions, double sphere_fraction)
Creates an icosahedron point model.
Definition: model_create.cpp:732
Vector3< double >
model_create_ellipsoid
Bmodel * model_create_ellipsoid(Vector3< double > axes, double distance)
Creates an ellipsoid with given semiaxes and component separation.
Definition: model_create.cpp:1011
Bmodel
Definition: rwmodel.h:119
model_platonic
Bmodel * model_platonic(Bsymmetry *sym, double radius)
Generates a platonic polyhedron.
Definition: model_create.cpp:82
model_create_cylinder
Bmodel * model_create_cylinder(Vector3< double > direction, double radius, double length, double distance)
Creates a cylinder with the given radius, length, and component separation.
Definition: model_create.cpp:1101
model_create_circle
Bmodel * model_create_circle(double radius, double z, double distance)
Creates a circle with the given radius, height, and component separation.
Definition: model_create.cpp:897
Bcomponent
Definition: rwmodel.h:51