API Reference > imodeljs-frontend > Rendering > GraphicBuilder > addShape2d addShape2d MethodAbstract Appends a closed 2d region to the builder. addShape2d(points: Point2d[], zDepth: number): void Parameter Type Description points Point2d[] Array of vertices of the shape. zDepth number Z value in local coordinates to use for each point. Returns - void Defined in core/frontend/src/render/GraphicBuilder.ts Line 197 Last Updated: 13 June, 2024