Exemplo n.º 1
0
    def __init__(self, name, geometries, boundaryCondition=None, tolerance=-1,
                 maxGridLines=512):
        """Init Butterfly geometry in Dynamo."""
        # convert input geometries to a butterfly DSMesh.
        _mesh = MeshDS(geometries, tolerance, maxGridLines)

        self.__geometry = _mesh.geometry
        # put indices in groups of three
        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.faceIndices,
                            _mesh.normals, boundaryCondition)
Exemplo n.º 2
0
    def __init__(self, name, geometries, boundaryCondition=None,
                 meshingParameters=None):
        """Init Butterfly geometry in Grasshopper."""
        # convert input geometries to a butterfly GHMesh.
        _mesh = MeshGH(geometries, meshingParameters)

        self.__geometry = _mesh.geometry

        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.faceIndices,
                            _mesh.normals, boundaryCondition)
Exemplo n.º 3
0
    def __init__(self, name, geometries, boundary_condition=None,
                 refinementLevels=None, nSurfaceLayers=None, tolerance=-1,
                 max_grid_lines=512):
        """Init Butterfly geometry in Dynamo."""
        # convert input geometries to a butterfly DSMesh.
        _mesh = MeshDS(geometries, (tolerance, max_grid_lines))

        self.__geometry = _mesh.geometry
        # put indices in groups of three
        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.face_indices,
                            _mesh.normals, boundary_condition, refinementLevels,
                            nSurfaceLayers)
Exemplo n.º 4
0
    def __init__(self,
                 name,
                 geometries,
                 boundaryCondition=None,
                 meshingParameters=None):
        """Init Butterfly geometry in Grasshopper."""
        # convert input geometries to a butterfly GHMesh.
        _mesh = MeshGH(geometries, meshingParameters)

        self.__geometry = _mesh.geometry

        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.faceIndices,
                            _mesh.normals, boundaryCondition)
Exemplo n.º 5
0
    def __init__(self,
                 name,
                 geometries,
                 boundaryCondition=None,
                 tolerance=-1,
                 maxGridLines=512):
        """Init Butterfly geometry in Dynamo."""
        # convert input geometries to a butterfly DSMesh.
        _mesh = MeshDS(geometries, tolerance, maxGridLines)

        self.__geometry = _mesh.geometry
        # put indices in groups of three
        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.faceIndices,
                            _mesh.normals, boundaryCondition)
Exemplo n.º 6
0
    def __init__(self,
                 name,
                 geometries,
                 boundary_condition=None,
                 refinementLevels=None,
                 nSurfaceLayers=None,
                 meshing_parameters=None):
        """Init Butterfly geometry in Grasshopper."""
        # convert input geometries to a butterfly GHMesh.
        _mesh = MeshGH(geometries, meshing_parameters)

        self.__geometry = _mesh.geometry

        BFGeometry.__init__(self, name, _mesh.vertices, _mesh.face_indices,
                            _mesh.normals, boundary_condition,
                            refinementLevels, nSurfaceLayers)