PartOperation
An abstract class that all parts based on solid modeling inherit from.
| Memory category | Instances |
|---|
Member index 19
Removed member index 10
| History | Member | |
|---|---|---|
| 381 | CollisionFidelity: CollisionFidelity |
Description
An abstract class that all parts based on solid modeling inherit from.
History 107
- 731 Change Default of UsePartColor from to false
- 731 Change Default of TriangleCount from to 0
- 731 Add
- 731 Change Default of SmoothingAngle from to 0
- 731 Change Default of RenderFidelity from to Automatic
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 731 Add
- 726 Change Default of UsePartColor from false to
- 726 Change Default of TriangleCount from 0 to
- 726 Remove
- 726 Change Default of SmoothingAngle from 0 to
- 726 Change Default of RenderFidelity from Automatic to
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 726 Remove
- 725 Change WriteSecurity of TriangleCount from None to RobloxSecurity
- 725 Change Tags of TriangleCount from [ReadOnly, NotReplicated] to []
- 725 Change CanLoad of TriangleCount from false to true
- 723 Remove
- 698 Remove
- 683 Change CanSave of from false to true
- 683 Change CanLoad of from false to true
- 681 Change CanSave of from true to false
- 681 Change CanLoad of from true to false
- 682 Change CanLoad of from false to true
- 682 Change CanSave of from false to true
- 675 Add
- 675 Remove
- 672 Add
- 672 Change CanLoad of from false to true
- 672 Change CanSave of from false to true
- 671 Remove
- 671 Remove
- 669 Add
- 668 Add
- 668 Remove
- 659 Add
- 645 Change ValueType of from Content to ContentId
- 636 Remove
- 636 Remove
- 636 Remove
- 636 Change Default of RenderFidelity from Precise to Automatic
- 618 Add
- 613 Add
- 609 Add
- 594 Change WriteSecurity of from None to RobloxSecurity
- 594 Change ReadSecurity of from None to RobloxSecurity
- 583 Add
- 580 Add SubstituteGeometry
- 573 Add
- 573 Add
- 573 Add
- 568 Add
- 553 Change Default of UsePartColor from to false
- 553 Change Default of TriangleCount from to 0
- 553 Change Default of SmoothingAngle from to 0
- 553 Change Default of RenderFidelity from to Precise
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 553 Add
- 486 Change ThreadSafety of UsePartColor from ReadOnly to ReadSafe
- 486 Change ThreadSafety of TriangleCount from ReadOnly to ReadSafe
- 486 Change ThreadSafety of SmoothingAngle from ReadOnly to ReadSafe
- 486 Change ThreadSafety of RenderFidelity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UsePartColor from to ReadOnly
- 462 Change ThreadSafety of TriangleCount from to ReadOnly
- 462 Change ThreadSafety of SmoothingAngle from to ReadOnly
- 462 Change ThreadSafety of RenderFidelity from to ReadOnly
- 431 Add SmoothingAngle
- 429 Remove SmoothingAngle
- 430 Add SmoothingAngle
- 386 Change Category of RenderFidelity from Behavior to Appearance
- 381 Remove CollisionFidelity
- 381 Change Superclass of PartOperation from BasePart to TriangleMeshPart
- 357 Add RenderFidelity
- 355 Change CanSave of CollisionFidelity from true to false
- 355 Change CanLoad of CollisionFidelity from true to false
- 349 Add CollisionFidelity
- 250 Add TriangleCount
- 159 Add UsePartColor
- 157 Add PartOperation
Members 19
RenderFidelity
| Type | Default | |
|---|---|---|
| RenderFidelity | Automatic | |
This property determines the level of detail that the solid modeled part will be shown in. It can be set to the possible values of the RenderFidelity enum except for Performance.
The default value is Automatic, meaning the part's detail is based on its distance from the camera as outlined in the following table.
| Distance From Camera | Render Fidelity |
|---|---|
| Less than 250 studs | Highest |
| 250-500 studs | Medium |
| 500 or more studs | Lowest |
| Write security | PluginSecurity |
|---|---|
| Thread safety | ReadSafe |
| Category | Appearance |
| Loaded/Saved | true |
History 8
- 731 Change Default of RenderFidelity from to Automatic
- 726 Change Default of RenderFidelity from Automatic to
- 636 Change Default of RenderFidelity from Precise to Automatic
- 553 Change Default of RenderFidelity from to Precise
- 486 Change ThreadSafety of RenderFidelity from ReadOnly to ReadSafe
- 462 Change ThreadSafety of RenderFidelity from to ReadOnly
- 386 Change Category of RenderFidelity from Behavior to Appearance
- 357 Add RenderFidelity
SmoothingAngle
| Type | Default | |
|---|---|---|
| float | 0 | |
This property represents an angle in degrees for a threshold value between face normals on a solid modeled part. If the normal difference is less than the value, normals will be adjusted to smooth the difference. While a value between 30 and 70 degrees usually produces a good result, values between 90 and 180 are not recommended as they may cause a "shadowing" effect on unions with sharp edges.
Note that smoothing does not affect the normals between different materials or different colors.


| Write security | PluginSecurity |
|---|---|
| Thread safety | ReadSafe |
| Category | Appearance |
| Loaded/Saved | true |
History 8
- 731 Change Default of SmoothingAngle from to 0
- 726 Change Default of SmoothingAngle from 0 to
- 553 Change Default of SmoothingAngle from to 0
- 486 Change ThreadSafety of SmoothingAngle from ReadOnly to ReadSafe
- 462 Change ThreadSafety of SmoothingAngle from to ReadOnly
- 431 Add SmoothingAngle
- 429 Remove SmoothingAngle
- 430 Add SmoothingAngle
SubstituteGeometry
| Parameters (1) | ||
|---|---|---|
| source | Instance | |
| Returns (1) | ||
| null | ||
Substitutes the geometry of this PartOperation with the geometry of another PartOperation. This makes it easier to utilize the geometry of a solid modeling operation like UnionAsync(), SubtractAsync(), or IntersectAsync() but maintain properties, attributes, tags, and children of the main part such as Attachments, Constraints, ParticleEmitters, light objects, decals, and more. This approach also circumvents the potential "flicker" of completely replacing the original PartOperation with another.
Note that if you're calling this method on a PartOperation with
child Attachments or Constraints,
you should calculate the affected instances with
CalculateConstraintsToPreserve(),
then drop those whose recommended parent is nil.
| Thread safety | Unsafe |
|---|
History 1
TriangleCount
| Type | Default | |
|---|---|---|
| int | 0 | |
The number of polygons in this solid model.
| Write security | RobloxSecurity |
|---|---|
| Thread safety | ReadSafe |
| Category | Data |
| Loaded/Saved | true |
History 9
- 731 Change Default of TriangleCount from to 0
- 726 Change Default of TriangleCount from 0 to
- 725 Change WriteSecurity of TriangleCount from None to RobloxSecurity
- 725 Change Tags of TriangleCount from [ReadOnly, NotReplicated] to []
- 725 Change CanLoad of TriangleCount from false to true
- 553 Change Default of TriangleCount from to 0
- 486 Change ThreadSafety of TriangleCount from ReadOnly to ReadSafe
- 462 Change ThreadSafety of TriangleCount from to ReadOnly
- 250 Add TriangleCount
UsePartColor
| Type | Default | |
|---|---|---|
| bool | false | |
Sets whether the PartOperation can be recolored using the BasePart.Color or BasePart.BrickColor properties. When true, the entire union will be colored as per Color or BrickColor. When false, the parts in the union will maintain their original colors from before the onion operation was performed.
| Thread safety | ReadSafe |
|---|---|
| Category | Data |
| Loaded/Saved | true |
History 6
- 731 Change Default of UsePartColor from to false
- 726 Change Default of UsePartColor from false to
- 553 Change Default of UsePartColor from to false
- 486 Change ThreadSafety of UsePartColor from ReadOnly to ReadSafe
- 462 Change ThreadSafety of UsePartColor from to ReadOnly
- 159 Add UsePartColor
Removed members 10
CollisionFidelity
| Type | Default | |
|---|---|---|
| CollisionFidelity | ||
| Category | Behavior |
|---|---|
| Loaded/Saved | false |
History 4
- 381 Remove CollisionFidelity
- 355 Change CanSave of CollisionFidelity from true to false
- 355 Change CanLoad of CollisionFidelity from true to false
- 349 Add CollisionFidelity