Checkpoint cover frame overhang
This commit is contained in:
@@ -71,8 +71,9 @@ const PAGE_WIDTH = 1.62;
|
|||||||
const PAGE_SPLINE_LENGTH = 1.955;
|
const PAGE_SPLINE_LENGTH = 1.955;
|
||||||
const PAGE_LINE_SEGMENTS = 24;
|
const PAGE_LINE_SEGMENTS = 24;
|
||||||
const PAGE_DEPTH = 2.24;
|
const PAGE_DEPTH = 2.24;
|
||||||
const COVER_OVERHANG = 0.13;
|
const COVER_DEPTH = 2.30;
|
||||||
const COVER_SUPPORT_OVERHANG = 0.055;
|
const COVER_OVERHANG = (COVER_DEPTH - PAGE_DEPTH) * 0.5;
|
||||||
|
const COVER_SUPPORT_OVERHANG = COVER_OVERHANG;
|
||||||
const HINGE_INSET = 0.07;
|
const HINGE_INSET = 0.07;
|
||||||
const SUPPORT_ANGLE_STEPS = 720;
|
const SUPPORT_ANGLE_STEPS = 720;
|
||||||
const SUPPORT_ANGLE_CANDIDATES = Array.from({ length: SUPPORT_ANGLE_STEPS }, (_, sample) => {
|
const SUPPORT_ANGLE_CANDIDATES = Array.from({ length: SUPPORT_ANGLE_STEPS }, (_, sample) => {
|
||||||
@@ -206,7 +207,7 @@ function setPageCount(value) {
|
|||||||
function rebuildBook() {
|
function rebuildBook() {
|
||||||
clearGroup(book);
|
clearGroup(book);
|
||||||
|
|
||||||
const coverDepth = 2.30;
|
const coverDepth = COVER_DEPTH;
|
||||||
const coverThickness = BOOK_PROFILE.coverThickness;
|
const coverThickness = BOOK_PROFILE.coverThickness;
|
||||||
const pageWidth = PAGE_WIDTH;
|
const pageWidth = PAGE_WIDTH;
|
||||||
const pageSplineLength = PAGE_SPLINE_LENGTH;
|
const pageSplineLength = PAGE_SPLINE_LENGTH;
|
||||||
|
|||||||
@@ -74,6 +74,6 @@
|
|||||||
<button id="fast_forward" type="button">Fast Forward</button>
|
<button id="fast_forward" type="button">Fast Forward</button>
|
||||||
<output id="flip_count">0 / 10</output>
|
<output id="flip_count">0 / 10</output>
|
||||||
</div>
|
</div>
|
||||||
<script type="module" src="/js/webgl-book-shape-lab.js?v=task1-restored-1"></script>
|
<script type="module" src="/js/webgl-book-shape-lab.js?v=cover-overhang-1"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user