Point Glass
A Flutter package for 3D point cloud visualization with interactive features including grid, axis, polygons, and annual sectors.
Features
- ๐ฏ 3D Point Cloud Visualization: Display and interact with point cloud data
- ๏ฟฝ๏ฟฝ Interactive Grid: Customizable 3D grid with labels
- ๐งญ Axis Display: Configurable coordinate axes
- ๐ท Polygon Support: Create and edit 3D polygons
- ๐ Annual Sectors: Display annular sectors with customizable angles and radii
- ๐ฎ Multiple Interaction Modes: Rotate, translate, spin, and edit modes
- ๐จ Customizable Styling: Colors, transparency, and visual properties
- ๐ฑ Cross-Platform: Works on mobile, desktop, and web
Screenshots
Basic Usage

Interactive Grid

Annual Sector

Polygon Editing

Point Cloud Visualization

Installation
Add this to your package's pubspec.yaml file:
dependencies:
point_glass: ^0.0.1
Usage
import 'package:point_glass/point_glass.dart';
import 'package:flutter/material.dart';
import 'package:vector_math/vector_math.dart' as vm;
// Transform3D ์ด๊ธฐํ
final transform = ValueNotifier(
Transform3D(scale: 50, rotationX: 0, rotationY: 0, rotationZ: 0),
);
// PointGlassViewer ์ฌ์ฉ
PointGlassViewer(
transform: transform,
mode: PointGlassViewerMode.rotate,
grid: PointGlassGrid(
enable: true,
gridSize: 20,
gridStep: 1,
enableLabel: true,
labelStyle: TextStyle(color: Colors.white.withAlpha(150)),
),
axis: PointGlassAxis(enable: true, axisLength: 0.5),
polygons: [
PointGlassPolygon(
enable: true,
points: [
vm.Vector3(-15, -10, 0),
vm.Vector3(-19.33, -2.5, 0),
vm.Vector3(-10.67, -2.5, 0),
],
pointSize: 3,
pointColor: Colors.red,
isEditable: false,
),
],
annualSectors: [
PointGlassAnnualSector(
enable: true,
startAngle: 40,
endAngle: 140,
innerRadius: 2,
outerRadius: 4,
color: Colors.green,
alpha: 30,
),
],
pointsGroup: [
PointGlassPoints(enable: true, points: []),
],
)
Examples
Check out the example folder for complete working examples.
Running the Example
cd example
flutter pub get
flutter run
Additional information
Libraries
- point_glass
- Point Glass๋ Flutter์ฉ 3D ํฌ์ธํธ ํด๋ผ์ฐ๋ ์๊ฐํ ํจํค์ง์ ๋๋ค.