LogoLogo
ThreeKitDeveloper HubForumsSupportStatus
  • Guides
  • Documentation
  • Releases
  • Platform Documentation
  • Project Data
    • Platform Landing Page
    • Basic Concepts
      • Environments
      • Organizations
      • Attributes
        • Arrays
      • Tagging
      • Naming Conventions
      • Players
      • Branching
      • Alerts and Warnings
      • Supported Browsers
      • ThreeKit Platform Architecture
    • Catalog
      • Items
        • Item Bulk Edit
        • Item Variants
      • Data Tables
      • Item Rules and Logic
      • Publishing
    • Assets
      • Asset Management
        • Importing Assets
        • Exporting Assets
        • Folders
      • Asset Editor
        • Editor Layout Modes
          • Layout Editor
            • Local vs Global Transform
          • Logic Editor
      • Nodes
        • Common Properties
          • Node Tags
        • Helpers
          • Nulls
          • Model References
          • Connectors
        • Lights
          • Point Light
          • Directional Light
          • Spot Light
          • Area Light
          • Hemisphere Light
          • Shadow Plane
        • Cameras
        • Shapes
        • Annotations
        • Layout Containers
      • Scenes
      • Materials
        • Physical Material
        • Proxy Materials
        • Multi Material
        • Gem Material
        • JSON Configuration
      • Textures
      • Canvases
      • Composites
    • Operators
      • PolyMesh Operators
        • Array
        • Bend Deformer
        • Map Override
        • Stretch
        • Physics (Collision Detection)
      • Material Operators
        • Falloff
        • Tiling Override
        • Triplanar Mapping
        • Template Override
      • Image Operators
        • Canvas Composite
        • Canvas Fill
        • Canvas Linear Gradient
        • Canvas Text
        • BlackWhite
        • Posterization
      • PostEffects Operators
        • Bloom Pass
      • Comp Layer Operators
        • Vray Normals Properties
        • Vray Bump Normals Properties
    • Stages
      • Stage Effects
        • Turntable
    • Logic
      • Conditions
      • Actions
      • Queries
        • Node Queries
        • Metadata Value Query
        • Asset Query
        • Datatable Query
      • Custom Scripts
    • Virtual Photographer
      • Create Renders
      • View Renders
      • V-Ray Integration
    • Augmented Reality
      • AR Settings
  • Org Setup
    • Admin & Security
      • Org Profile
      • Users & Permissions
        • Threekit Sign-in
        • Members
        • User Profile
      • Tokens
      • Service Accounts
      • ISO Certification
      • Org Migration / Data Transfer
    • Jobs System
    • Orders
      • Orders List
      • Configurations
    • Analytics
      • Advanced Buyer Analytics Reports
      • Player Views
    • Project Settings
      • Features
      • Languages
Powered by GitBook
On this page
  • Properties
  • Interactive Demo
  • In Practice

Was this helpful?

Edit on GitHub
  1. Project Data
  2. Operators
  3. PolyMesh Operators

Stretch

PreviousMap OverrideNextPhysics (Collision Detection)

Last updated 1 year ago

Was this helpful?

The Stretch Operator "stretches" a 3D mesh along a specified axis, by a specified distance, within a specified range.

Properties

The Stretch Operator has three properties; Axis, Stretch Distance, and Margin.

Consider a sphere with a radius of 1 meter, viewed orthogonally from the top, with the x-axis of the stretch operator as the target.


Increasing the Stretch Distance to 1.0, the object is uniformly stretched along its x-axis from the center, on both sides.

Increasing the Margin has the effect of limiting the application of the stretch operation. In the figure below, the outer 0.5 meters (the Margin value) on either side of the sphere has been excluded from the stretch operation, effectively retaining the sphere's original shape over that interval.

Interactive Demo

In Practice

The use-case outlined in the custom script action article presents a practical application of this operator.

Consider one of the table legs. Without use of the stretch operator, expanding the width of the table provides an undesirable result because it not only increases the width of the leg, it also increases the thickness of the leg's perpendicular section. See the figure below.

The Margin of the Stretch Operator is very useful in this context because we can limit the affect of the stretch operation, meaning we can effectively target the part of the leg that should be expanded, while ensuring the original geometry of the perpendicular section remains static.