Community
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"markbrionreilly" <I
href="mailto:mark@brionreilly.com">mark@brionreilly.com> wrote in
message
href="news:f1672ee.-1@WebX.maYIadrTaRb">news:f1672ee.-1@WebX.maYIadrTaRb...
have been searching for a lisp routine that will allow me to pick a midpoint
between two selection points. Most that I have found will find the point but
not allow me to cintinye the comand. i.e. if I need to find the center of a
room to mirrow about the centerline I would like to select a near-to point on
opposing walls (transparently)which would return the centerpoint. Suggestions
would be greatly appreciated!
Mark Reilly, AIA
Solana Beach, CA
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Chad Smith" <
href="mailto:chadsmith@spaceframe.com">chadsmith@spaceframe.com> wrote
in message
href="news:8D41760C54015298F11625934E0A9399@in.WebX.maYIadrTaRb">news:8D41760C54015298F11625934E0......
Give this guy a go.
;;;
----------------------------------------------------------------------
;;;
Function : Midpoint in 3D
;;;
----------------------------------------------------------------------
(defun
MID3D (/ pt1 pt2)
(setq pt1 (getpoint "\nPick first point:
")
pt2 (getpoint "\nPick second point: ")
)
(mapcar '+ pt1 (mapcar '/ (mapcar '- pt2 pt1) '(2.0 2.0
2.0)))
)
--
Regards
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"markbrionreilly" <I
href="mailto:mark@brionreilly.com">mark@brionreilly.com> wrote in
message
href="news:f1672ee.-1@WebX.maYIadrTaRb">news:f1672ee.-1@WebX.maYIadrTaRb...
have been searching for a lisp routine that will allow me to pick a midpoint
between two selection points. Most that I have found will find the point but
not allow me to cintinye the comand. i.e. if I need to find the center of a
room to mirrow about the centerline I would like to select a near-to point
on opposing walls (transparently)which would return the centerpoint.
Suggestions would be greatly appreciated!
Mark Reilly, AIA
Solana Beach,
CA
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Bobby C. Jones" <
href="mailto:bobbyj@acadx.com">bobbyj@acadx.com> wrote in message
href="news:3E016A3EAAD1497BBF505A7DC629AE8A@in.WebX.maYIadrTaRb">news:3E016A3EAAD1497BBF505A7DC62......
All those Mapcar's make my eyes cross and my head
hurt <g>
(defun MidPoint (pt1 pt2)
(mapcar
'(lambda (x y)
(* 0.5
(+ x y))
)
pt1 pt2
)
)
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"Chad Smith" <
href="mailto:chadsmith@spaceframe.com">chadsmith@spaceframe.com>
wrote in message
href="news:8D41760C54015298F11625934E0A9399@in.WebX.maYIadrTaRb">news:8D41760C54015298F11625934......
Give this guy a go.
;;;
----------------------------------------------------------------------
;;;
Function : Midpoint in 3D
;;;
----------------------------------------------------------------------
(defun
MID3D (/ pt1 pt2)
(setq pt1 (getpoint "\nPick first point:
")
pt2 (getpoint "\nPick second point: ")
)
(mapcar '+ pt1 (mapcar '/ (mapcar '- pt2 pt1) '(2.0 2.0
2.0)))
)
--
Regards
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
"markbrionreilly" <I
href="mailto:mark@brionreilly.com">mark@brionreilly.com> wrote in
message
href="news:f1672ee.-1@WebX.maYIadrTaRb">news:f1672ee.-1@WebX.maYIadrTaRb...
have been searching for a lisp routine that will allow me to pick a
midpoint between two selection points. Most that I have found will find
the point but not allow me to cintinye the comand. i.e. if I need to find
the center of a room to mirrow about the centerline I would like to select
a near-to point on opposing walls (transparently)which would return the
centerpoint. Suggestions would be greatly appreciated!
Mark Reilly, AIA
Solana Beach,
CA