# CuttingPlaneUtils

class `cee.ug.``CuttingPlaneUtils`()

  Helper functions for cutting planes

Constructors

- `constructor`

Methods

- `getPositionFromRelativeNormalPosition`
- `getRelativeNormalPosition`

## Constructors

`CuttingPlaneUtils.``constructor`()

  Return type: | CuttingPlaneUtils

## Methods

### static getPositionFromRelativeNormalPosition

`CuttingPlaneUtils.``getPositionFromRelativeNormalPosition`(relVal, normal, boundingBox)

  Arguments: | relVal (`number`) – The relative value to get the position for (0..1) normal (`Vec3Like`) – The normal direction to compute the position in boundingBox (`BoundingBox`) – The bounding box defining the range of positions for the point (usually the model bounding box)

  Gets a position from a relative position along the given normal on the given bounding box.

  This is useful for implementing a slider moving the cutting plane back and forth in the direction of the plane’s normal vector.

  Return type: | Vec3

### static getRelativeNormalPosition

`CuttingPlaneUtils.``getRelativeNormalPosition`(point, normal, boundingBox)

  Arguments: | point (`Vec3Like`) – The point to compute the relative position for normal (`Vec3Like`) – The normal direction to use for the computation boundingBox (`BoundingBox`) – The bounding box defining the range of positions for the point (usually the model bounding box)

  Gets a relative position along the given normal and bounding box for the given point

  Useful for updating the slider position based on the current position of a cutting plane.

  Return type: | number

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your multilingual generative AI assistant for documentation. Ask me anything about HOOPS Envision for Web in your own language, or choose a sample question below to start a conversation:

What is HOOPS Envision for Web?
What are the latest release notes for HOOPS Envision for Web?
How do I start evaluating HOOPS Envision for Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...