• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

maximum volume of a 3dsolid

  • Thread starter Thread starter MrMeMedesmo
  • Start date Start date

MrMeMedesmo

Guest
Good morning.
I am looking for a solution to this problem, i.e. identifying the maximum volume that contains an irregular 3dsolid rotated in space, i.e. not the classic and simple prisma lined according to the uucs.
to better explain the purpose I attach the photos where:
- white color = 3dsolid reference
- red color = minimum prism containing the 3dsolid reference according to my goalfoto 1a.webpfoto 1b.webp- colore verde = prisma minimo che contiene il 3dsolid di riferimento costruito con la seguente funzione:
(defun c: ()
(if (setq ss1 (ssget "_+.:e:s"(0 . "3dsolid")))))
(progn)
(setq solidobj (vlax-ename->vla-object (ssname ss1 0))
(vla-getboundingbox solidobj 'minext 'maxext)
(setq minext (vlax-safearray->list minext)
maxext (vlax-safearray->list maxext)
)
(command "_box" "_non" minext "_non" maxext)
)
)
(princ)
)foto 2a.webpfoto 2b.webpI thank everyone who can help solve the problem.
 
I don't understand, you want the green parallelepiped to take into account the red portion, or are you looking for the max parallelepiped that however oriented contain the white portion? :unsures:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
ciao
Back
Top