-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🦄 refactor: LineSegments is changed to LineSegments2.
- Loading branch information
1 parent
73e3b2d
commit 00ea42a
Showing
17 changed files
with
238 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright 2022-2023 the Chili authors. All rights reserved. AGPL-3.0 license. | ||
|
||
import { LineMaterial } from "three/examples/jsm/lines/LineMaterial"; | ||
import { ThreeHelper } from "./threeHelper"; | ||
import { VisualConfig } from "chili-core"; | ||
import { DoubleSide } from "three"; | ||
|
||
export const hilightEdgeMaterial = new LineMaterial({ | ||
linewidth: 2, | ||
color: ThreeHelper.fromColor(VisualConfig.highlightEdgeColor), | ||
side: DoubleSide, | ||
polygonOffset: true, | ||
polygonOffsetFactor: -4, | ||
polygonOffsetUnits: -4, | ||
}); | ||
|
||
export const hilightDashedEdgeMaterial = new LineMaterial({ | ||
linewidth: 2, | ||
color: ThreeHelper.fromColor(VisualConfig.highlightEdgeColor), | ||
side: DoubleSide, | ||
polygonOffset: true, | ||
polygonOffsetFactor: -4, | ||
polygonOffsetUnits: -4, | ||
dashed: true, | ||
dashScale: 100, | ||
dashSize: 100, | ||
gapSize: 100, | ||
}); | ||
|
||
export const selectedEdgeMaterial = new LineMaterial({ | ||
linewidth: 2, | ||
color: ThreeHelper.fromColor(VisualConfig.selectedEdgeColor), | ||
side: DoubleSide, | ||
polygonOffset: true, | ||
polygonOffsetFactor: -4, | ||
polygonOffsetUnits: -4, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// Copyright 2022-2023 the Chili authors. All rights reserved. AGPL-3.0 license. | ||
|
||
export class Constants { | ||
static readonly RaycasterThreshold = 20; | ||
static readonly RaycasterThreshold = 10; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.