Class · inherits TriangleMeshPart
PartOperation
An abstract class that all parts based on solid modeling inherit from.
About PartOperation
An abstract class that all parts based on solid modeling inherit from.
Properties 4
RenderFidelity
: RenderFidelityThe level of detail used to render the solid modeled part.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
RenderFidelityenum except forPerformance.The default value is
Automatic, meaning the part's detail is based on its distance from the camera as outlined in the following table.SmoothingAngle
: floatAn angle in degrees which affects the smooth shading of a solid modeled part.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.
TriangleCount
: intThe number of polygons in this solid model.UsePartColor
: booleanSets whether thePartOperationcan be recolored using inherited color properties.Sets whether the
PartOperationcan be recolored using theBasePart.ColororBasePart.BrickColorproperties. When true, the entire union will be colored as perColororBrickColor. When false, the parts in the union will maintain their original colors from before the onion operation was performed.
Methods 1
SubstituteGeometry
(source: Instance) → ()Substitutes the geometry of thisPartOperationwith the geometry of anotherPartOperation.Substitutes the geometry of this
PartOperationwith the geometry of anotherPartOperation. This makes it easier to utilize the geometry of a solid modeling operation likeUnionAsync(),SubtractAsync(), orIntersectAsync()but maintain properties, attributes, tags, and children of the main part such asAttachments,Constraints,ParticleEmitters, light objects, decals, and more. This approach also circumvents the potential "flicker" of completely replacing the originalPartOperationwith another.Note that if you're calling this method on a
PartOperationwith childAttachmentsorConstraints, you should calculate the affected instances withCalculateConstraintsToPreserve(), then drop those whose recommended parent isnil.
PartOperation also has every member of TriangleMeshPart. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.