Skip to content

Materials

Fill and line materials for polygons, polylines, and other graphics: solid color, image, grid, stripe, checkerboard, and the polyline glow/arrow/dash/outline variants.

import cesiumkit

viewer = cesiumkit.Viewer()
viewer.add_entity(
    cesiumkit.Entity(
        name="Road",
        polyline=cesiumkit.PolylineGraphics(
            positions=[
                cesiumkit.Cartesian3.from_degrees(-74.0, 40.7),
                cesiumkit.Cartesian3.from_degrees(-73.9, 40.8),
            ],
            material=cesiumkit.PolylineArrowMaterial(color=cesiumkit.Color.GOLD),
            width=8,
        ),
    )
)

material

Material types for cesiumkit, matching CesiumJS material property classes.

Classes:

Name Description
MaterialBase

Abstract base for all materials.

SolidColorMaterial

A material that fills the surface with a solid color.

ImageMaterial

A material that fills the surface with an image.

GridMaterial

A material that fills the surface with a grid pattern.

StripeMaterial

A material that fills the surface with alternating stripes.

CheckerboardMaterial

A material that fills the surface with a checkerboard pattern.

PolylineGlowMaterial

A material that makes a polyline glow.

PolylineArrowMaterial

A material that renders a polyline as an arrow.

PolylineDashMaterial

A material that renders a polyline with dashes.

PolylineOutlineMaterial

A material that renders a polyline with an outline.

MaterialBase

Bases: CesiumBase

Abstract base for all materials.

SolidColorMaterial

Bases: MaterialBase

A material that fills the surface with a solid color.

ImageMaterial

Bases: MaterialBase

A material that fills the surface with an image.

GridMaterial

Bases: MaterialBase

A material that fills the surface with a grid pattern.

StripeMaterial

Bases: MaterialBase

A material that fills the surface with alternating stripes.

CheckerboardMaterial

Bases: MaterialBase

A material that fills the surface with a checkerboard pattern.

PolylineGlowMaterial

Bases: MaterialBase

A material that makes a polyline glow.

PolylineArrowMaterial

Bases: MaterialBase

A material that renders a polyline as an arrow.

PolylineDashMaterial

Bases: MaterialBase

A material that renders a polyline with dashes.

PolylineOutlineMaterial

Bases: MaterialBase

A material that renders a polyline with an outline.