Class CylinderEllipse
the three coordinates of the center
the first vector that defines the circular section
the second vector that defines the circular section
the vector that defines the direction of the side
three integers (default [0,0,0] for the bottom, the top and the side)
True if the cylinder is added
False if the cylinder is deleted
Warning
The vectors v1 and v2 have to be orthogonal.
Examples
the vertical canonical cylinder centered in (0, 0, 1/2) with radius 1
>>> center = [0., 0., 0.5]
>>> v1, v2 = [1., 0., 0.], [0., 1., 0.]
>>> w = [0., 0., 1.]
>>> CylinderEllipse(center, v1, v2, w)
+-----------------+
| CylinderEllipse |
+-----------------+
- dimension: 3
- center: [0. 0. 0.5]
- v1: [1. 0. 0.]
- v2: [0. 1. 0.]
- w: [0. 0. 1.]
- label: [0, 0, 0]
- type: solid
3
3
the coordinates of the center of the cylinder
the three coordinates of the first vector defining the base section
the three coordinates of the second vector defining the base section
the three coordinates of the vector defining the direction of the side
the list of the label of the edge
True if the cylinder is added and False if the cylinder is deleted
Methods
matrix for the change of variables used to write the coordinates in the basis of the cylinder |
|
|
Compute the distance in the v direction between the cylinder and the points defined by (x, y, z). |
Get the bounds of the cylinder. |
|
|
return a boolean array which defines if a point is inside or outside of the cylinder. |
test if the number of labels is equal to the number of bounds. |
|
|
visualize the element |
Attributes
|
|
|