Skip to content

Add SolidPrimitive.isSkew and Cone.cylinderRadius#9279

Merged
dassaf4 merged 11 commits into
masterfrom
da4/solid-primitive-is-skew
May 11, 2026
Merged

Add SolidPrimitive.isSkew and Cone.cylinderRadius#9279
dassaf4 merged 11 commits into
masterfrom
da4/solid-primitive-is-skew

Conversation

@dassaf4

@dassaf4 dassaf4 commented May 11, 2026

Copy link
Copy Markdown
Member

These helper methods should be helpful for iTwin editing logic that decides which edit handles to display on a SolidPrimitive:

  • SolidPrimitive.isSkew nominally returns whether the solid's local z-axis is not perpendicular to its local xy-plane.
  • Cone.cylinderRadius is a test for whether a Cone is a cylinder (circular cross sections of equal radius and no skew). The caller can optionally request a weaker test that allows skew.

Comment thread core/geometry/src/serialization/IModelJsonSchema.ts
Comment thread core/geometry/src/solid/Box.ts
@dassaf4 dassaf4 enabled auto-merge (squash) May 11, 2026 18:05
@dassaf4 dassaf4 merged commit 80ffb26 into master May 11, 2026
18 checks passed
@dassaf4 dassaf4 deleted the da4/solid-primitive-is-skew branch May 11, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants