aerosandbox.visualization.plotly_Figure3D
#
Module Contents#
Classes#
Functions#
|
Takes in a vector or an array and flips the y-coordinates. |
Attributes#
- aerosandbox.visualization.plotly_Figure3D.reflect_over_XZ_plane(input_vector)[source]#
Takes in a vector or an array and flips the y-coordinates. :param input_vector: A vector or list of vectors to flip. :return: Vector with flipped sign on y-coordinate.
- class aerosandbox.visualization.plotly_Figure3D.Figure3D[source]#
- add_line(points, mirror=False)[source]#
Adds a line (or series of lines) to draw. :param points: an iterable with an arbitrary number of items. Each item is a 3D point, represented as an iterable of length 3. :param mirror: Should we also draw a version that’s mirrored over the XZ plane? [boolean] :return: None
E.g. add_line([(0, 0, 0), (1, 0, 0)])
- add_streamline(points, mirror=False)[source]#
Adds a line (or series of lines) to draw. :param points: an iterable with an arbitrary number of items. Each item is a 3D point, represented as an iterable of length 3. :param mirror: Should we also draw a version that’s mirrored over the XZ plane? [boolean] :return: None
E.g. add_line([(0, 0, 0), (1, 0, 0)])
- add_tri(points, intensity=0, outline=False, mirror=False)[source]#
Adds a triangular face to draw. :param points: an iterable with 3 items. Each item is a 3D point, represented as an iterable of length 3. :param intensity: Intensity associated with this face :param outline: Do you want to outline this triangle? [boolean] :param mirror: Should we also draw a version that’s mirrored over the XZ plane? [boolean] :return: None
E.g. add_face([(0, 0, 0), (1, 0, 0), (0, 1, 0)])
- add_quad(points, intensity=0, outline=True, mirror=False)[source]#
Adds a quadrilateral face to draw. All points should be (approximately) coplanar if you want it to look right. :param points: an iterable with 4 items. Each item is a 3D point, represented as an iterable of length 3. Points should be given in sequential order. :param intensity: Intensity associated with this face :param outline: Do you want to outline this quad? [boolean] :param mirror: Should we also draw a version that’s mirrored over the XZ plane? [boolean] :return: None
E.g. add_face([(0, 0, 0), (1, 0, 0), (0, 1, 0)])