gmsh_scripts.entity.point
Module Contents
Classes
Point |
Attributes
- class gmsh_scripts.entity.point.Point(*args, tag=None, zone=None, coordinate_system=None, coordinates=None, **kwargs)
Point :param tag: unique id :type tag: int or None :param zone: zone :type zone: str or None :param coordinate_system: coordinate system :type coordinate_system: str or dict or CoordinateSystem or None :param coordinates: coordinates values :type coordinates: list of float or np.ndarray or None
- tag
unique id
- Type:
int or None
- zone
zone
- Type:
str or None
- coordinate_system
coordinate system
- Type:
- coordinates
coordinates values
- Type:
np.ndarray
- kwargs
other keyword arguments (e.g. meshSize)
- Type:
dict or None
- static parse_coordinate_system(coordinate_system, default=Cartesian(), name_key='name')
- static parse_coordinates(coordinates, coordinate_system)
- static parse_args(args)
Parse list Patterns: 1. [coordinates] 2. [coordinates, meshSize] 3. [coordinates, coordinate_system] 4. [coordinates, zone] 5. [coordinates, meshSize, coordinate_system] 5. [coordinates, coordinate_system, zone] 5. [coordinates, meshSize, zone] 5. [coordinates, meshSize, coordinate_system, zone]
- Parameters:
args (list) –
- Return type:
int or None, str or None, CoordinateSystem or None, list of float, dict
- static parse_points(points=None, do_deg2rad=False)
Parse list of raw points Patterns 1. [[], [], [], …] 2. [[], [], [], …, meshSize] 3. [[], [], [], …, coordinate_system] 4. [[], [], [], …, zone] 5. [[], [], [], …, meshSize, coordinate_system] 6. [[], [], [], …, coordinate_system, zone] 7. [[], [], [], …, meshSize, zone] 8. [[], [], [], …, meshSize, coordinate_system, zone] 9. [{}, {}, {}, …] 10. [{}, {}, {}, …, meshSize] 11. [{}, {}, {}, …, coordinate_system] 12. [{}, {}, {}, …, zone] 13. [{}, {}, {}, …, meshSize, coordinate_system] 14. [{}, {}, {}, …, coordinate_system, zone] 15. [{}, {}, {}, …, meshSize, zone] 16. [{}, {}, {}, …, meshSize, coordinate_system, zone]
- Parameters:
points (list or None) – raw points
do_deg2rad (bool) – do degrees to radians conversion
- Returns:
points objects
- Return type:
list of Point
- gmsh_scripts.entity.point.str2obj