Ir al contenido
Español
Sección de un sólido viene con Pro. La vista previa aparece al desbloquearlo.

Cómo funciona

Una figura de libro de texto: un sólido cortado por un plano horizontal. El sólido es un dibujo axonométrico en tonos neutros: la parte bajo el plano es maciza con sus aristas ocultas a trazos, la parte de arriba es un fantasma pálido y la sección es la única forma en el color de acento. Una regla en la esquina izquierda del plano marca la altura, con el valor en una píldora de tinta; el asa redonda de la esquina derecha es el control deslizante. La fila bajo la figura nombra la sección, la dibuja a escala vista desde arriba (crece y mengua al mover el plano) y da su área. Tres cortes clave por sólido saltan a las alturas que merece la pena ver, como el hexágono regular a media altura de un cubo apoyado en un vértice.

Úsalo para

  • Teach solid geometry: let learners discover which polygons a plane can cut from a cube, or why every cut of a sphere is a circle.
  • Introduce Cavalieri's principle or volumes by slicing: read the area of the section at each height.

Busca otra opción cuando

  • For an arbitrary model from a CAD file, use a 3D viewer with a clipping plane: this figure draws four built-in solids with a level plane.

Uso

import React, { useState } from 'react'
import { KilnSectionPlane } from './KilnSectionPlane.jsx'

export function SectionLesson() {
  const [height, setHeight] = useState(3.46)
  return (
    <KilnSectionPlane
      solid="cube"
      value={height}
      onChange={(next, { shape, area }) => setHeight(next)}
      labels={{ title: 'Sections of a cube' }}
    />
  )
}

Propiedades

PropiedadTipoPor defectoQué hace
solid'cube' | 'tetrahedron' | 'cone' | 'sphere''cube'The solid: a cube of side 4 standing on a corner, a regular tetrahedron of edge 5 resting on an edge, a cone (radius 2.5, height 5) or a sphere (radius 2.5). Each comes with three key cuts.
valuenumber—Controlled height of the plane in centimetres, from 0 to the solid's height (rounded to two decimals).
defaultValuenumber—Starting height when uncontrolled, and what Reset returns to. Defaults to halfway up (a quarter of the way up for the sphere).
onChange(height, { reason, shape, area }) => void—Called with the new height and { reason ('press', 'drag', 'tap', 'key', 'cut', 'cancel' or 'reset'), shape (point, segment, triangle, square, rectangle, hexagon, regularHexagon, circle or polygon), area in cm² }.
stepnumber0.1Height step for the arrow keys. Shift with an arrow, or Page Up and Page Down, move ten steps.
labelsobject—Replaces any built-in text: title, caption, height, heightText ('{h}', '{unit}', '{shape}'), unit, area, areaUnit, cuts, reset and shapes (an object with point, segment, triangle, square, rectangle, hexagon, regularHexagon, circle and polygon).
localestring'en'Language tag for the decimal readouts.
classNamestring—Extra class on the card, for example to set its width (30rem by default, never wider than its container).

Accesibilidad

  • The grip is a vertical slider labelled with the plane height: Up and Down (or Right and Left) move 0.1 cm, Shift with an arrow or Page Up and Page Down move 1 cm, Home and End go to the bottom and the top. Its value text reads the height and the name of the section.
  • The name and area of the section are a polite live region. Each key cut is a toggle button that is pressed while the plane is at its height. Reset is marked unavailable while nothing has changed.
  • Dragging uses pointer capture. The grip and the height pill take touch drags; a tap elsewhere on the figure moves the plane there, and a vertical swipe on the figure still scrolls the page. A cancelled gesture restores the height it started from.
  • Colour is not the only cue: the section is also named in words and drawn on its own from above.

Movimiento

Tras una tecla, un corte clave o Restablecer, el plano se desliza a su nueva altura en 240ms y la sección cambia de forma por el camino. Al arrastrar sigue al puntero directamente. Con movimiento reducido todo cambia al instante.

Añádelo a tu proyecto

Los miembros Pro copian un prompt y su agente de programación instala el código, igual que con los gratuitos.

KilnSectionPlane.jsxkiln-section-plane.csstokens.cssREADME.md

Los dos archivos se instalan juntos. La hoja de estilos lee las variables de tokens.css y lleva valores de reserva, así que también funciona sola.

Formularios
Cuadrícula de disponibilidad viene con Pro. La vista previa aparece al desbloquearlo.
Operaciones booleanas viene con Pro. La vista previa aparece al desbloquearlo.
Selector en cascada viene con Pro. La vista previa aparece al desbloquearlo.