Skip to content

Commit 379b77c

Browse files
Additional edge methods to interpret multiple shapes in one go, also helper functions to check if edge is linear or circular. It is now possible to filter points that are on multiple faces in one go. Fixed base inputs that were not included in Bit object. Introduced originOnCenter properties for cylinder, cube, and box. Cylinder now also takes in the angle property.
1 parent f843739 commit 379b77c

File tree

40 files changed

+400
-58
lines changed

40 files changed

+400
-58
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/babylonjs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/babylonjs/lib/api/inputs/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,4 @@ export * from "./babylon-webxr";
1616
export * from "./scene-inputs";
1717
export * from "./node-inputs";
1818
export * from "./draw-inputs";
19-
export * from "@bitbybit-dev/base/lib/api/inputs";
2019
export * from "@bitbybit-dev/core/lib/api/inputs/inputs";

packages/dev/base/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/base/lib/api/inputs/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ export * from "./point-inputs";
66
export * from "./text-inputs";
77
export * from "./vector-inputs";
88
export * from "./transforms-inputs";
9+
export * from "./base-inputs";

packages/dev/base/lib/api/inputs/inputs.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export * from "./logic-inputs";
44
export * from "./math-inputs";
55
export * from "./point-inputs";
66
export * from "./text-inputs";
7-
export * from "./base-inputs";
87
export * from "./text-inputs";
98
export * from "./vector-inputs";
109
export * from "./transforms-inputs";

packages/dev/base/lib/api/services/color.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22
import { MathBitByBit } from "./math";
33

44
export class Color {

packages/dev/base/lib/api/services/geometry-helper.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22

33
export class GeometryHelper {
44

packages/dev/base/lib/api/services/lists.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Lists } from "./lists";
2-
import * as Inputs from "../inputs/inputs";
2+
import * as Inputs from "../inputs";
33

44
describe("Lists unit tests", () => {
55
let lists: Lists;

packages/dev/base/lib/api/services/lists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22

33
/**
44
* Contains various list methods.

packages/dev/base/lib/api/services/logic.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Logic } from "./logic";
2-
import * as Inputs from "../inputs/inputs";
2+
import * as Inputs from "../inputs";
33

44
describe("Logic unit tests", () => {
55
let logic: Logic;

packages/dev/base/lib/api/services/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22

33
/**
44
* Contains various logic methods.

packages/dev/base/lib/api/services/math.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MathBitByBit } from "./math";
2-
import * as Inputs from "../inputs/inputs";
2+
import * as Inputs from "../inputs";
33

44
describe("Math unit tests", () => {
55
let math: MathBitByBit;

packages/dev/base/lib/api/services/math.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22

33
/**
44
* Contains various math methods.

packages/dev/base/lib/api/services/point.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { GeometryHelper } from "./geometry-helper";
2-
import * as Inputs from "../inputs/inputs";
3-
import { Base } from "../inputs/inputs";
2+
import * as Inputs from "../inputs";
43
import { Transforms } from "./transforms";
54

65
/**
@@ -252,7 +251,7 @@ export class Point {
252251
* @shortname average point
253252
* @drawable true
254253
*/
255-
averagePoint(inputs: Inputs.Point.PointsDto): Base.Point3 {
254+
averagePoint(inputs: Inputs.Point.PointsDto): Inputs.Base.Point3 {
256255
const xVals = [];
257256
const yVals = [];
258257
const zVals = [];

packages/dev/base/lib/api/services/text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22

33
/**
44
* Contains various text methods.

packages/dev/base/lib/api/services/transforms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
import { Base } from "../inputs/base-inputs";
3-
import * as Inputs from "../inputs/inputs";
3+
import * as Inputs from "../inputs";
44
import { MathBitByBit } from "./math";
55
import { Vector } from "./vector";
66

packages/dev/base/lib/api/services/vector.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Inputs from "../inputs/inputs";
1+
import * as Inputs from "../inputs";
22
import { GeometryHelper } from "./geometry-helper";
33
import { MathBitByBit } from "./math";
44
import { Vector } from "./vector";

packages/dev/base/lib/api/services/vector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import * as Inputs from "../inputs/inputs";
2+
import * as Inputs from "../inputs";
33
import { GeometryHelper } from "./geometry-helper";
44
import { MathBitByBit } from "./math";
55

packages/dev/core/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/core/lib/api/inputs/inputs.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export * from "./verb-inputs";
88
export * from "@bitbybit-dev/jscad/lib/api/inputs/jscad-inputs";
99
export * from "@bitbybit-dev/manifold/lib/api/inputs/manifold-inputs";
1010
export * from "@bitbybit-dev/occt/lib/api/inputs/occ-inputs";
11-
export * from "@bitbybit-dev/occt/lib/api/inputs/base-inputs";
11+
export * from "@bitbybit-dev/occt/lib/api/inputs/base-inputs";
12+
export * from "@bitbybit-dev/base/lib/api/inputs/inputs";

packages/dev/jscad-worker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/jscad/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./jscad-inputs";
2-
export * from "@bitbybit-dev/base/lib/api/inputs/inputs";
2+
export * from "@bitbybit-dev/base/lib/api/inputs";

packages/dev/manifold-worker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/manifold/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

packages/dev/occt-worker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Visit [bitbybit.dev](https://bitbybit.dev) to use our full cloud platform.
44
Best way to support us - [Silver or Gold plan subscription](https://bitbybit.dev/auth/pick-plan)
5-
Buy unique designs from our [Crafts shop](https://crafts.bitbybit.dev)
6-
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1)
5+
Buy unique products from our [Crafts shop](https://crafts.bitbybit.dev) all designed with Bitbybit algorithms
6+
Check out [3D Bits app for Shopify](https://apps.shopify.com/3d-bits-1) also used in our Crafts shop
77

88
<img src="https://app.bitbybit.dev/assets/git-cover.png" alt="Picture showing bitbybit.dev platform">
99

0 commit comments

Comments
 (0)