GeometryQueryCategory Type

GeometryQueryCategory = "polyface" | "curvePrimitive" | "curveCollection" | "solid" | "point" | "pointCollection" | "bsurf"

Describes the category of a GeometryQuery, enabling type-switching like:

  function processGeometryQuery(q: GeometryQuery): void {
    if ("solid" === q.geometryCategory)
      alert("Solid type = " + q.solidPrimitiveType); // compiler knows q is an instance of SolidPrimitive
   // ...etc...

Each string maps to a particular subclass of GeometryQuery:

@see AnyGeometryQuery

Defined in

Last Updated: 21 November, 2024