CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 8795

CAD tip CAD tip # 14027:

   
Question CAD 
 %  platform  category 
Q - question

3D heart from the heart.

A - answer If you're chasing this years' Valentine's Day, or maybe next year...

With the LISP utility 3DPlot (Download) you may not only create raw mathematical surfaces, but by choosing the appropriate math function you can generate some pretty heartbreaking models. You never know when they might come in handy...

Load the 3DPLOT into AutoCAD (APPLOAD) and then enter the following LISP function (just copy it to the AutoCAD command line):

(defun fXYHeart (u v)
 (list
  (* 16.0 (sin u)(sin u)(sin u) (- 1.0 (* v v v)))
  (* (- (* 13.0 (cos u)) (* 5.0 (cos (* 2.0 u))) (* 2.0 (cos (* 3.0 u)) (cos (* 4.0 u))) (- 1.0 (* v v v)) ) )
  (* v 3.0)
))
(setq nods (3DPlot fXYHeart (- pi) pi (/ (* 2 pi) 50) -0.999 0.999 (/ 2.0 50)))

You can then smooth the resulting 3D heart model using _MESHSMOOTH, assign the appropriate material (here Glazed Metallic) and render the result:

heart
click to enlarge



A similar mathematical expression can be used to generate a heart shape in Inventor or Fusion. As the "Expression Curve", enter:

x(t) = sin(t)*sin(t)
y(t) = (13*cos(t)-5*cos(2*t)-2*cos(3*t)-cos(4*t))/16

A 3D sketch with a heart-shaped contour (half)curve will be created, which you can complete by mirroring and extruding (see Heart.ipt in the CAD Block Library):

ACADInvFusion360
100% *  CAD 
14.2.2024    49404×  
Prices - CAD eShop:
applies to: AutoCAD · Inventor · Fusion 360 360 ·

See also:
Tip 13847:Pringles in AutoCAD - a hyperbolic paraboloid.
Tip 12749:Generate parametric mathematical 3D surfaces (meshes) in Fusion 360.
Tip 9711:3DConstruct - converting a 3D mesh to a frame construct
Tip 9651:Convert a DWG 3D mesh model to an Inventor 3D solid part.
Tip 9625:How to color 3D topo surface model by slope?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist