ieslink
Diff
code posted
by
asfasf
created at 12 Jun 17:50, updated at 20 Jun 20:19
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
def initializeModelFaces $modelFaces = [] ## find faces in model faceCount = 0 for entity in Sketchup.active_model.entities if (!entity.instance_of?(Sketchup::Face)) next end $modelFaces << entity faceCount += 1 end faces = 0 dictcount = 0 for modelFace in $modelFaces innerFaces = [] $cMethods.addInnerLoopFaces(modelFace,innerFaces) $innerLoopFacesHash[modelFace.to_s] = innerFaces if (modelFace.attribute_dictionary("FaceDict")) if (modelFace.get_attribute("FaceDict","ShadingSurface") == true) $shadingInstanceFaces << modelFace end if (modelFace.attribute_dictionary("ExplodedInstanceFace")) if (modelFace.get_attribute("ExplodedInstanceFace","value") == true) $explodedInstanceFaces << modelFace end end end end ## links for IESmodule $modelFaces2 = $modelFaces $innerLoopFacesHash2 = $innerLoopFacesHash $class_Opening = IESVE_Opening end |
1.04 KB in 4 ms with coderay