Add cone and torus brush support in transform-session.ts
This commit is contained in:
@@ -5,13 +5,17 @@ import type { Vec3 } from "./vector";
|
|||||||
import {
|
import {
|
||||||
cloneBrushGeometry,
|
cloneBrushGeometry,
|
||||||
createBoxBrush,
|
createBoxBrush,
|
||||||
|
createConeBrush,
|
||||||
createRadialPrismBrush,
|
createRadialPrismBrush,
|
||||||
|
createTorusBrush,
|
||||||
createWedgeBrush,
|
createWedgeBrush,
|
||||||
type Brush,
|
type Brush,
|
||||||
type BrushGeometry,
|
type BrushGeometry,
|
||||||
type BrushKind,
|
type BrushKind,
|
||||||
type BoxBrushGeometry,
|
type BoxBrushGeometry,
|
||||||
|
type ConeBrushGeometry,
|
||||||
type RadialPrismBrushGeometry,
|
type RadialPrismBrushGeometry,
|
||||||
|
type TorusBrushGeometry,
|
||||||
type WedgeBrushGeometry,
|
type WedgeBrushGeometry,
|
||||||
type WhiteboxEdgeId,
|
type WhiteboxEdgeId,
|
||||||
type WhiteboxFaceId,
|
type WhiteboxFaceId,
|
||||||
@@ -71,6 +75,8 @@ export interface BrushTransformTarget {
|
|||||||
brushId: string;
|
brushId: string;
|
||||||
brushKind: BrushKind;
|
brushKind: BrushKind;
|
||||||
sideCount?: number;
|
sideCount?: number;
|
||||||
|
majorSegmentCount?: number;
|
||||||
|
tubeSegmentCount?: number;
|
||||||
initialCenter: Vec3;
|
initialCenter: Vec3;
|
||||||
initialRotationDegrees: Vec3;
|
initialRotationDegrees: Vec3;
|
||||||
initialSize: Vec3;
|
initialSize: Vec3;
|
||||||
@@ -82,6 +88,8 @@ export interface BrushFaceTransformTarget {
|
|||||||
brushId: string;
|
brushId: string;
|
||||||
brushKind: BrushKind;
|
brushKind: BrushKind;
|
||||||
sideCount?: number;
|
sideCount?: number;
|
||||||
|
majorSegmentCount?: number;
|
||||||
|
tubeSegmentCount?: number;
|
||||||
faceId: WhiteboxFaceId;
|
faceId: WhiteboxFaceId;
|
||||||
initialCenter: Vec3;
|
initialCenter: Vec3;
|
||||||
initialRotationDegrees: Vec3;
|
initialRotationDegrees: Vec3;
|
||||||
@@ -94,6 +102,8 @@ export interface BrushEdgeTransformTarget {
|
|||||||
brushId: string;
|
brushId: string;
|
||||||
brushKind: BrushKind;
|
brushKind: BrushKind;
|
||||||
sideCount?: number;
|
sideCount?: number;
|
||||||
|
majorSegmentCount?: number;
|
||||||
|
tubeSegmentCount?: number;
|
||||||
edgeId: WhiteboxEdgeId;
|
edgeId: WhiteboxEdgeId;
|
||||||
initialCenter: Vec3;
|
initialCenter: Vec3;
|
||||||
initialRotationDegrees: Vec3;
|
initialRotationDegrees: Vec3;
|
||||||
@@ -106,6 +116,8 @@ export interface BrushVertexTransformTarget {
|
|||||||
brushId: string;
|
brushId: string;
|
||||||
brushKind: BrushKind;
|
brushKind: BrushKind;
|
||||||
sideCount?: number;
|
sideCount?: number;
|
||||||
|
majorSegmentCount?: number;
|
||||||
|
tubeSegmentCount?: number;
|
||||||
vertexId: WhiteboxVertexId;
|
vertexId: WhiteboxVertexId;
|
||||||
initialCenter: Vec3;
|
initialCenter: Vec3;
|
||||||
initialRotationDegrees: Vec3;
|
initialRotationDegrees: Vec3;
|
||||||
|
|||||||
Reference in New Issue
Block a user