# triangular-prism icon

Triangular prism. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/triangular-prism

- Category: Shapes
- Use it for: triangular prism, prism 3d, 3d prism
- Tags: triangular prism, prism, 3d, shape, solid, geometry, wedge
- Component name: TriangularPrismIcon
- Added: 2026-11-12

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/triangular-prism.svg · PNG https://gentleface.com/png/line-round/16/triangular-prism.png · https://gentleface.com/png/line-round/32/triangular-prism.png · https://gentleface.com/png/line-round/48/triangular-prism.png
- line-soft: https://gentleface.com/svg/line-soft/16/triangular-prism.svg · PNG https://gentleface.com/png/line-soft/16/triangular-prism.png · https://gentleface.com/png/line-soft/32/triangular-prism.png · https://gentleface.com/png/line-soft/48/triangular-prism.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/triangular-prism.svg · PNG https://gentleface.com/png/line-sharp/16/triangular-prism.png · https://gentleface.com/png/line-sharp/32/triangular-prism.png · https://gentleface.com/png/line-sharp/48/triangular-prism.png
- solid-round: https://gentleface.com/svg/solid-round/16/triangular-prism.svg · PNG https://gentleface.com/png/solid-round/16/triangular-prism.png · https://gentleface.com/png/solid-round/32/triangular-prism.png · https://gentleface.com/png/solid-round/48/triangular-prism.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/triangular-prism.svg · PNG https://gentleface.com/png/solid-soft/16/triangular-prism.png · https://gentleface.com/png/solid-soft/32/triangular-prism.png · https://gentleface.com/png/solid-soft/48/triangular-prism.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/triangular-prism.svg · PNG https://gentleface.com/png/solid-sharp/16/triangular-prism.png · https://gentleface.com/png/solid-sharp/32/triangular-prism.png · https://gentleface.com/png/solid-sharp/48/triangular-prism.png

The SVG of every style: https://gentleface.com/icons/triangular-prism.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z"/></svg>
```

### React

```tsx
// Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism
import type { SVGProps } from 'react';

export function TriangularPrismIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/triangular-prism.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism. Takes the text color. */
.icon-triangular-prism {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#triangular-prism"/></svg>
```

### SwiftUI

```swift
// Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism
import SwiftUI

struct TriangularPrismIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 8.829, y: 2.276))
        p.addCurve(to: CGPoint(x: 9.593, y: 2.222), control1: CGPoint(x: 9.076, y: 2.153), control2: CGPoint(x: 9.331, y: 2.135))
        p.addCurve(to: CGPoint(x: 10.171, y: 2.724), control1: CGPoint(x: 9.855, y: 2.309), control2: CGPoint(x: 10.047, y: 2.477))
        p.addLine(to: CGPoint(x: 13.724, y: 9.829))
        p.addCurve(to: CGPoint(x: 13.778, y: 10.593), control1: CGPoint(x: 13.847, y: 10.076), control2: CGPoint(x: 13.865, y: 10.331))
        p.addCurve(to: CGPoint(x: 13.276, y: 11.171), control1: CGPoint(x: 13.691, y: 10.855), control2: CGPoint(x: 13.523, y: 11.047))
        p.addLine(to: CGPoint(x: 10.618, y: 12.5))
        p.addCurve(to: CGPoint(x: 8.5, y: 13), control1: CGPoint(x: 9.951, y: 12.833), control2: CGPoint(x: 9.245, y: 13))
        p.addLine(to: CGPoint(x: 2.309, y: 13))
        p.addCurve(to: CGPoint(x: 1.853, y: 12.89), control1: CGPoint(x: 2.148, y: 13), control2: CGPoint(x: 1.996, y: 12.963))
        p.addCurve(to: CGPoint(x: 1.458, y: 12.526), control1: CGPoint(x: 1.688, y: 12.805), control2: CGPoint(x: 1.556, y: 12.684))
        p.addCurve(to: CGPoint(x: 1.309, y: 12.01), control1: CGPoint(x: 1.361, y: 12.368), control2: CGPoint(x: 1.311, y: 12.196))
        p.addCurve(to: CGPoint(x: 1.415, y: 11.553), control1: CGPoint(x: 1.307, y: 11.849), control2: CGPoint(x: 1.343, y: 11.697))
        p.addLine(to: CGPoint(x: 4.606, y: 5.171))
        p.addCurve(to: CGPoint(x: 5.261, y: 4.261), control1: CGPoint(x: 4.775, y: 4.832), control2: CGPoint(x: 4.993, y: 4.529))
        p.addCurve(to: CGPoint(x: 6.171, y: 3.606), control1: CGPoint(x: 5.529, y: 3.993), control2: CGPoint(x: 5.832, y: 3.775))
        p.addLine(to: CGPoint(x: 8.829, y: 2.276))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.829, y: 10.276))
        p.addLine(to: CGPoint(x: 9.276, y: 3.171))
        p.addLine(to: CGPoint(x: 6.618, y: 4.5))
        p.addCurve(to: CGPoint(x: 6.192, y: 4.766), control1: CGPoint(x: 6.464, y: 4.577), control2: CGPoint(x: 6.322, y: 4.666))
        p.addLine(to: CGPoint(x: 9.709, y: 11.8))
        p.addCurve(to: CGPoint(x: 10.171, y: 11.606), control1: CGPoint(x: 9.866, y: 11.746), control2: CGPoint(x: 10.019, y: 11.681))
        p.addLine(to: CGPoint(x: 12.829, y: 10.276))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.689, y: 11.995))
        p.addLine(to: CGPoint(x: 5.5, y: 5.618))
        p.addLine(to: CGPoint(x: 2.309, y: 12))
        p.addLine(to: CGPoint(x: 8.5, y: 12))
        p.addCurve(to: CGPoint(x: 8.689, y: 11.995), control1: CGPoint(x: 8.563, y: 12), control2: CGPoint(x: 8.626, y: 11.998))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// TriangularPrismIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val TriangularPrismIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "triangular-prism", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(TriangularPrismIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_triangular_prism.xml · Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M8.829 2.276C9.076 2.153 9.331 2.135 9.593 2.222C9.855 2.309 10.047 2.477 10.171 2.724L13.724 9.829C13.847 10.076 13.865 10.331 13.778 10.593C13.691 10.855 13.523 11.047 13.276 11.171L10.618 12.5C9.951 12.833 9.245 13 8.5 13L2.309 13C2.148 13 1.996 12.963 1.853 12.89C1.688 12.805 1.556 12.684 1.458 12.526C1.361 12.368 1.311 12.196 1.309 12.01C1.307 11.849 1.343 11.697 1.415 11.553L4.606 5.171C4.775 4.832 4.993 4.529 5.261 4.261C5.529 3.993 5.832 3.775 6.171 3.606L8.829 2.276ZM12.829 10.276L9.276 3.171L6.618 4.5C6.464 4.577 6.322 4.666 6.192 4.766L9.709 11.8C9.866 11.746 10.019 11.681 10.171 11.606L12.829 10.276ZM8.689 11.995L5.5 5.618L2.309 12L8.5 12C8.563 12 8.626 11.998 8.689 11.995Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "triangular-prism" (line-round), MIT. https://gentleface.com/icons/triangular-prism
import 'package:flutter/widgets.dart';

class TriangularPrismIcon extends StatelessWidget {
  const TriangularPrismIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _TriangularPrismIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _TriangularPrismIconPainter extends CustomPainter {
  _TriangularPrismIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(8.829, 2.276)
      ..cubicTo(9.076, 2.153, 9.331, 2.135, 9.593, 2.222)
      ..cubicTo(9.855, 2.309, 10.047, 2.477, 10.171, 2.724)
      ..lineTo(13.724, 9.829)
      ..cubicTo(13.847, 10.076, 13.865, 10.331, 13.778, 10.593)
      ..cubicTo(13.691, 10.855, 13.523, 11.047, 13.276, 11.171)
      ..lineTo(10.618, 12.5)
      ..cubicTo(9.951, 12.833, 9.245, 13, 8.5, 13)
      ..lineTo(2.309, 13)
      ..cubicTo(2.148, 13, 1.996, 12.963, 1.853, 12.89)
      ..cubicTo(1.688, 12.805, 1.556, 12.684, 1.458, 12.526)
      ..cubicTo(1.361, 12.368, 1.311, 12.196, 1.309, 12.01)
      ..cubicTo(1.307, 11.849, 1.343, 11.697, 1.415, 11.553)
      ..lineTo(4.606, 5.171)
      ..cubicTo(4.775, 4.832, 4.993, 4.529, 5.261, 4.261)
      ..cubicTo(5.529, 3.993, 5.832, 3.775, 6.171, 3.606)
      ..lineTo(8.829, 2.276)
      ..close()
      ..moveTo(12.829, 10.276)
      ..lineTo(9.276, 3.171)
      ..lineTo(6.618, 4.5)
      ..cubicTo(6.464, 4.577, 6.322, 4.666, 6.192, 4.766)
      ..lineTo(9.709, 11.8)
      ..cubicTo(9.866, 11.746, 10.019, 11.681, 10.171, 11.606)
      ..lineTo(12.829, 10.276)
      ..close()
      ..moveTo(8.689, 11.995)
      ..lineTo(5.5, 5.618)
      ..lineTo(2.309, 12)
      ..lineTo(8.5, 12)
      ..cubicTo(8.563, 12, 8.626, 11.998, 8.689, 11.995)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_TriangularPrismIconPainter old) => old.color != color;
}
```
