Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(25)  |  Call(25)  |  Derive(0)  |  Import(0)

src/l/a/ladybug-HEAD/src/Ladybug_Shade Benefit Evaluator.py   ladybug(Download)
    meshPar.MaximumEdgeLength = gridSize
 
    analysisMesh = rc.Geometry.Mesh.CreateFromBrep(testShade, meshPar)[0]
 
    #Generate breps of the mesh faces so that users can see how the shade will be divided before they run the analysis
    winMeshPar.MinimumEdgeLength = (gridSize/1.75)
    winMeshPar.MaximumEdgeLength = (gridSize/1.75)
    windowMesh = rc.Geometry.Mesh.CreateFromBrep(testRegion, winMeshPar)[0]
 
    vertices = windowMesh.Vertices
            contextMeshes = []
            for brep in context_:
                contextMeshes.extend(rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Default))
            contextMesh = joinMesh(contextMeshes)
        else: pass

src/l/a/ladybug-HEAD/src/ladybug_ladybug.py   ladybug(Download)
        def makeMeshFromSrf(i, inputBrep):
            try:
                mesh[i] = rc.Geometry.Mesh.CreateFromBrep(inputBrep, meshParam)
                inputBrep.Dispose()
            except:
        def makeMeshFromSrf(i, inputBrep):
            try:
                mesh[i] = rc.Geometry.Mesh.CreateFromBrep(inputBrep, meshParam)
                inputBrep.Dispose()
            except:

src/h/o/Honeybee-HEAD/src/Honeybee_Energy Shade Benefit Evaluator.py   Honeybee(Download)
    meshPar.MaximumEdgeLength = gridSize
 
    analysisMesh = rc.Geometry.Mesh.CreateFromBrep(testShade, meshPar)[0]
 
    #Generate breps of the mesh faces so that users can see how the shade will be divided before they run the analysis
    winMeshPar.MinimumEdgeLength = (gridSize/1.75)
    winMeshPar.MaximumEdgeLength = (gridSize/1.75)
    windowMesh = rc.Geometry.Mesh.CreateFromBrep(testWindow, winMeshPar)[0]
 
    vertices = windowMesh.Vertices
            contextMeshes = []
            for brep in context_:
                contextMeshes.extend(rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Default))
            contextMesh = joinMesh(contextMeshes)
        else: pass

src/h/o/Honeybee-HEAD/src/Honeybee_Honeybee.py   Honeybee(Download)
    def checkZoneNormalsDir(self):
        # isPointInside for Breps is buggy, that's why I mesh the geometry here
        mesh = rc.Geometry.Mesh.CreateFromBrep(self.geometry)
        joinedMesh = self.joinMesh(mesh)
 
            mp.JaggedSeams = True
 
        meshedGeo = rc.Geometry.Mesh.CreateFromBrep(joinedBrep, mp)
 
        for mesh in meshedGeo:
                meshPar = rc.Geometry.MeshingParameters.Smooth
 
            self.meshedFace = rc.Geometry.Mesh.CreateFromBrep(self.geometry, meshPar)[0]
 
        if self.meshedFace.IsValid or self.hasInternalEdge:
                elif method == 2:
                    mp = rc.Geometry.MeshingParameters.Smooth
                    mesh = rc.Geometry.Mesh.CreateFromBrep(glzSrf.geometry, mp)[0]
                if mesh:
                    glzCoordinatesList = self.extractMeshPts(mesh)

src/l/a/ladybug-HEAD/src/Ladybug_Shading Mask.py   ladybug(Download)
def meshAndJoin(brepList):
    joinedMesh = rc.Geometry.Mesh()
    for brep in brepList:
        meshList = rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Smooth)
        for m in meshList: joinedMesh.Append(m)

src/l/a/ladybug-HEAD/src/Ladybug_SolarFan.py   ladybug(Download)
        normalVector = brepPlane.Normal
        # mesh the base surface
        meshedBrep = rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Smooth)[0]
        for sunV in sunVectors:
            projectedCrv = None
        baseSrfCenPt = rc.Geometry.AreaMassProperties.Compute(_baseSrf).Centroid
        # mesh the base surface to ensure that we can get vertices all around the object for the bounding box.
        _baseSrfMeshed = rc.Geometry.Mesh.CreateFromBrep(_baseSrf, rc.Geometry.MeshingParameters.Smooth)[0]
        # generate a bounding box around the base surfaces and extract dimensions for use with generating the plane to project to.
        points = []

src/l/a/ladybug-HEAD/src/Ladybug_SolarEnvelope.py   ladybug(Download)
        normalVector = brepPlane.Normal
        # mesh the base surface
        meshedBrep = rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Smooth)[0]
        for sunV in sunVectors:
            projectedCrv = None
        baseSrfCenPt = rc.Geometry.AreaMassProperties.Compute(_baseSrf).Centroid
        # mesh the base surface to ensure that we can get vertices all around the object for the bounding box.
        _baseSrfMeshed = rc.Geometry.Mesh.CreateFromBrep(_baseSrf, rc.Geometry.MeshingParameters.Smooth)[0]
        # generate a bounding box around the base surfaces and extract dimensions for use with generating the plane to project to.
        points = []

src/l/a/ladybug-HEAD/src/Ladybug_ShadingDesigner.py   ladybug(Download)
        normalVector = brepPlane.Normal
        # mesh the base surface
        meshedBrep = rc.Geometry.Mesh.CreateFromBrep(brep, rc.Geometry.MeshingParameters.Smooth)[0]
        for sunV in sunVectors:
            projectedCrv = None
 
        # mesh the glazing surface
        _glzSrfMeshed = rc.Geometry.Mesh.CreateFromBrep(_glzSrf, rc.Geometry.MeshingParameters.Smooth)[0]
 
        shadingSurfaces =[]

src/l/a/ladybug-HEAD/src/Ladybug_Sky Dome.py   ladybug(Download)
            skyPatchAreas.append(area)
            MP.Dispose()
            patchMeshed = rc.Geometry.Mesh.CreateFromBrep(newPatch, meshParam) # create mesh
            domeMeshed.Append(patchMeshed[0]) # append to the main mesh
            for face in range(patchMeshed[0].Faces.Count):

src/h/o/Honeybee-HEAD/src/Honeybee_Glazing based on ratio.py   Honeybee(Download)
 
    #Create a mesh of the base surface.
    windowMesh = rc.Geometry.Mesh.CreateFromBrep(baseSrf, meshPar)[0]
 
    #Create breps of all of the mesh faces and use them to make each window.
 
    #Create a mesh of the base surface.
    windowMesh = rc.Geometry.Mesh.CreateFromBrep(baseSrf, meshPar)[0]
 
    #Define all of the vairables that will be used in the following steps

  1 | 2  Next