generated from Enveloppe/Enveloppe-Quartz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PUSH NOTE : Rhino.md * PUSH ATTACHMENT : FindAllHiddenClippingPlaneLayers.py * PUSH NOTE : ComfyUI.md * PUSH NOTE : index.md * PUSH NOTE : ARC2047H-Building_Science_Materials_and_Construction_3.md * DELETE FILE : content/Courses/2024/ARC2047H-Building_Science_Materials_and_Construction_3/ARC2047H-Building_Science_Materials_and_Construction_3 2024-09-24 14.21.08.svg
- Loading branch information
1 parent
19f7f40
commit a9dc1f5
Showing
5 changed files
with
140 additions
and
28 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
.../ARC2047H-Building_Science_Materials_and_Construction_3 2024-09-24 14.21.08.svg
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
content/Wiki/Attachments/Rhino/FindAllHiddenClippingPlaneLayers.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#! python3 | ||
import rhinoscriptsyntax as rs | ||
|
||
def find_all_hidden_clipping_plane_layers(): | ||
cps = rs.ObjectsByType(536870912) | ||
|
||
if not cps: | ||
print("No hidden clipping planes found!") | ||
return | ||
|
||
msg = "" | ||
for cp in cps: | ||
layer = rs.ObjectLayer(cp) | ||
if not rs.IsLayerOn(layer) or rs.IsObjectHidden(cp): | ||
msg += f"Hidden clipping plane found on layer {layer}\n" | ||
|
||
if msg: | ||
rs.MessageBox(msg, 0, "ClippingPlane finder") | ||
else: | ||
print("No hidden clipping planes found!") | ||
|
||
find_all_hidden_clipping_plane_layers() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters