Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
3DFACE hidden sides
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: 3DFACE hidden sides (Read 2025 times)
0 Members and 1 Guest are viewing this topic.
TopoWAR
Newt
Posts: 135
3DFACE hidden sides
«
on:
April 21, 2012, 04:36:10 PM »
I could not, I have hours with this problem, a lisp that tells me which side of 3DFACE are visible or hidden,
thanks
Logged
Thanks for help
efernal
Bull Frog
Posts: 206
WWW
Re: 3DFACE hidden sides
«
Reply #1 on:
April 21, 2012, 06:13:48 PM »
(70 . 0) all visibles
(70 . 1) first hidden
(70 . 2) second hidden
etc...
Logged
e.fernal
TopoWAR
Newt
Posts: 135
Re: 3DFACE hidden sides
«
Reply #2 on:
April 21, 2012, 06:17:09 PM »
efernal
, not, is the sum of the values, I do not know how to do the lisp.
I want a function that returns only the visible side, I hope someone help me
Logged
Thanks for help
Lee Mac
Seagull
Posts: 12913
London, England
WWW
Re: 3DFACE hidden sides
«
Reply #3 on:
April 21, 2012, 06:27:28 PM »
DXF 70 is bit-coded, demo:
Code - Auto/Visual Lisp:
[Select]
(
defun
_HiddenEdges
(
3DFaceEntity
)
(
(
lambda
(
x
)
(
apply
'
append
(
mapcar
(
function
(
lambda
(
b
)
(
if
(
<
0
(
logand
(
car
b
)
x
)
)
(
cdr
b
)
)
)
)
'
(
(
1
"1st edge is invisible"
)
(
2
"2nd edge is invisible"
)
(
4
"3rd edge is invisible"
)
(
8
"4th edge is invisible"
)
)
)
)
)
(
cdr
(
assoc
70
(
entget
3DFaceEntity
)
)
)
)
)
Code - Auto/Visual Lisp:
[Select]
(
_HiddenEdges
(
car
(
entsel
)
)
)
«
Last Edit: April 21, 2012, 06:38:23 PM by Lee Mac
»
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
TopoWAR
Newt
Posts: 135
Re: 3DFACE hidden sides
«
Reply #4 on:
April 21, 2012, 06:33:38 PM »
Lee Mac
, you are great teacher
Logged
Thanks for help
Lee Mac
Seagull
Posts: 12913
London, England
WWW
Re: 3DFACE hidden sides
«
Reply #5 on:
April 21, 2012, 06:38:54 PM »
Thank you TopoWAR, happy coding!
Logged
Lee Mac Programming
•
Twitter
•
Exchange App Store
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
3DFACE hidden sides