Geometry
Geometry is the mathematical study and representation of shapes, positions, dimensions, and spatial relationships in two or more dimensions.
Web Components in Action
3D is the representation and rendering of objects or scenes with three spatial dimensions.
- How it is used
- Uses 3D scenes to demonstrate interactive browser graphics and their encapsulation in Web Components.
- How deep it goes
- Works through declarative shapes and a rendered scene, but leaves the underlying geometry mathematics unexplained.
- Examples
- Shows an A-Frame scene of basic shapes and a Babylon.js color picker that switches meshes.
- What you can do after
- Build it from scratch as an interactive Babylon.js scene wrapped in a Web Component.
Build a Text-to-Image Generator (from Scratch)
The three-dimensional organization and shape of objects and their spatial arrangement in a scene.
- How it is used
- Diagnoses why text-to-image models fail to preserve spatial relationships across objects and viewpoints.
- How deep it goes
- Explains missing 3D representations, positional encodings, depth, perspective, and proposed remedies without implementing them.
- Examples
- Uses distorted objects, viewpoint changes, violated physical laws, and inconsistent depth or perspective as failure examples.
- What you can do after
- Evaluate/understand geometric failures in generated images and identify 3D-aware mechanisms that could improve spatial consistency.
Read how Build a Text-to-Image Generator (from Scratch) explains geometry →
Related concepts
- image processingused by · Image processing is the computational manipulation and analysis of digital image data to transform images or extract information.
- SAMcontrasts with · SAM, or Segment Anything Model, is a pretrained promptable computer-vision model that generates segmentation masks for objects in images.
- digital imagecontrasts with · A digital image is visual content encoded as data, typically as a two-dimensional arrangement of pixels or equivalent visual elements.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

