Knowledge / Mechanical Engineering / CAD and 3D modelling

CAD and 3D modelling

Mechanical Engineering (B.E./B.Tech) · Design tools and practice · free study notes for exams, placements and interviews

In short

Computer-aided design is the creation, modification and analysis of a product's geometry inside a computer, stored as a mathematical model rather than as lines on paper. A modern 3D model is a single master definition from which drawings, mass properties, FEA meshes, CNC toolpaths, 3D-print files and bills of material are all derived, so an error in the model propagates everywhere. It is examined in university CAD/CAM and CIM papers (curve and surface mathematics, transformations, B-rep versus CSG, Euler's formula, data exchange) and in the GATE Mechanical syllabus under Computer Integrated Manufacturing. Every design, tooling and R&D job in India — Tata Technologies, L&T Technology Services, Tata Elxsi, Cyient, KPIT, Quest Global, Maruti, Mahindra, Bosch, HAL, ISRO, BHEL — screens candidates on modelling discipline, not just on which software they can open.

Explained

What a CAD model actually contains

Types of geometric modelling

Parametric, feature-based modelling and sketching

Curves and surfaces (the mathematics that is examined)

Transformations, viewing and display

Assemblies, drawings and model-based definition

Data exchange, interoperability and downstream use

Key points

Formulas and examples

2D homogeneous transformations (point as [x y 1]ᵗ)
Translation T(dx,dy) = [[1,0,dx],[0,1,dy],[0,0,1]]; Scaling S(sx,sy) = [[sx,0,0],[0,sy,0],[0,0,1]]
Rotation R(θ) = [[cosθ, −sinθ, 0],[sinθ, cosθ, 0],[0,0,1]], θ positive anticlockwise
Mirror about x-axis = [[1,0,0],[0,−1,0],[0,0,1]]
Rotation about an arbitrary point (x_c, y_c): P′ = T(x_c,y_c) · R(θ) · T(−x_c,−y_c) · P
3D rotation about Z: R_z(θ) = [[cosθ,−sinθ,0,0],[sinθ,cosθ,0,0],[0,0,1,0],[0,0,0,1]]; similarly R_x, R_y
Bezier curve: P(u) = Σ_{i=0..n} P_i · C(n,i) · (1−u)n−i · ui , 0 ≤ u ≤ 1
P_i = control points, n = degree, C(n,i) = binomial coefficient. Tangents: P′(0) = n(P₁−P₀), P′(1) = n(P_n−P_{n−1})
B-spline: P(u) = Σ P_i N_{i,p}(u); NURBS: P(u) = [Σ w_i P_i N_{i,p}(u)] / [Σ w_i N_{i,p}(u)]
N_{i,p} = B-spline basis of degree p from the knot vector, w_i = weight (w_i = 1 for all i reduces NURBS to a B-spline)
Euler–Poincaré: V − E + F − R = 2(S − G)
V vertices, E edges, F faces, R inner loops (rings), S shells (separate bodies), G genus (through holes/handles). Simple solid: V − E + F = 2
Tessellation of a cylinder/arc of radius R into N chords: chord height (sag) h = R[1 − cos(θ/2)], θ = 2π/N
For small h: N ≈ π / √(2h/R). Binary STL file size = 84 + 50t bytes, t = number of triangles
Mass properties: V = ∫dV, m = ρV, centroid x̄ = Σ(V_i x̄_i)/ΣV_i, I_xx = ∫(y²+z²)dm; parallel axis I = I_cg + m d²
Uniform scaling by factor s: lengths ×s, areas ×s², volume and mass ×s³
Translators for exchange between n systems: direct pairs = n(n−1) one-way translators; via one neutral format = 2n
For n = 10: 90 direct translators against 20 — the economic argument for STEP

Example 1 — Cubic Bezier curve. Control points P₀(0,0), P₁(2,6), P₂(8,6), P₃(10,0) mm. Find the point at u = 0.5 and the end tangents.

Example 2 — Composite transformation. Rotate the point P(40, 20) by 30° anticlockwise about the sketch point C(10, 10).

  1. Translate to origin: P − C = (30, 10).
  2. Rotate: cos30° = 0.8660, sin30° = 0.5.

x′ = 30(0.8660) − 10(0.5) = 25.981 − 5 = 20.981 y′ = 30(0.5) + 10(0.8660) = 15 + 8.660 = 23.660

  1. Translate back: (20.981 + 10, 23.660 + 10) = (30.98, 33.66) mm.
  2. Check: distance from C stays √(30²+10²) = 31.62 mm, and √(20.981² + 23.660²) = √(440.2 + 559.8) = √1000 = 31.62 ✓.

Example 3 — Degrees of freedom. (a) *Sketch:* a rectangle drawn as four connected lines has 4 vertices × 2 = 8 DOF. Apply 2 horizontal + 2 vertical constraints (−4) → 4 DOF; a coincident constraint tying one corner to the origin (−2) → 2 DOF; two driving dimensions (length and width) → 0 DOF, fully constrained. A third dimension (say a diagonal) would be redundant and rejected. (b) *Assembly:* a shaft loose in space has 6 DOF. A concentric/cylindrical mate to the housing bore removes 4 → 2 DOF (spin + slide). A coincident mate between the shaft shoulder face and the housing face would remove 3, but 2 of those are already removed by the concentric mate, so only 1 new DOF (axial slide) is taken out and the remaining DOF = 1 rotation — a revolute joint. Mating a second face axially as well would over-constrain it.

Example 4 — STL tessellation of a cylindrical boss. Boss Ø50 mm × 40 mm long, exported with a chord-height tolerance of 0.05 mm.

Example 5 — Mass properties and a validity check. (a) *Mass:* a mild-steel plate 100 × 60 × 10 mm with two Ø12 mm through holes, ρ = 7,850 kg/m³ = 7.85 × 10⁻³ g/mm³.

(b) *Centroid of an L-shaped extrusion*, 10 mm thick: vertical leg 20 wide × 100 tall (area 2,000 mm², centroid 10, 50), horizontal leg 80 long × 20 tall (area 1,600 mm², centroid 60, 10).

(c) *Euler–Poincaré check* on a cube with a square through hole: V = 16, E = 24, F = 10 (4 side faces + 2 pierced faces + 4 tunnel faces), R = 2 inner loops, S = 1, G = 1.

RepresentationStoresStrengthWeakness
WireframeEdges, verticesTiny files, fastAmbiguous, no mass or hidden-line data
SurfaceBounding facesFree-form styling shapesNo volume unless closed; gap/sew problems
CSGBoolean tree of primitivesCompact, always validNo explicit faces; fillets, free-forms hard
B-repFaces, edges, vertices + topologyFast display, local edits, free-formLarger files; validity must be enforced
FormatCarriesTypical useCaution
STEP AP242Solids, assemblies, PMIDefault neutral exchangeNo feature tree (dumb solid)
IGESSurfaces, wireframeLegacy exchangeGaps, needs healing
Parasolid x_t / ACIS satKernel solidsSame-kernel transfer, high fidelityVersion-dependent
STLTriangles + normals3D printing, quick viewingNo units, tolerance or topology
JT / 3D PDFLightweight tessellation + PMIReview, supplier sharing, MBDNot for editing
DXF / DWG2D geometrySheet metal flats, laser cutting2D only
Curve typeControlConics exact?Local control?
Hermite cubicEnd points + end tangentsNoLimited
Beziern+1 control points, degree nNoNo
B-splineControl points + knot vectorNoYes
NURBSControl points + knots + weightsYesYes

Where it is used

Interview questions

Common mistakes

Related topics

Engineering drawing and GD&T · Tolerance stack-up analysis · Finite element analysis basics · Product design and development · CNC machining and CAM · Additive manufacturing and rapid prototyping

Open in the Knowledge reader →Find jobs →