PLYModifier
scale_mesh_x(input_file:str, output_file:str, scale_factor:float)
Loads a PLY file, scales it along the X-axis, and saves the result.
Parameters:
input_file
(str): Path to the input PLY file.output_file
(str): Path to save the scaled PLY file. Default is 'scaled.ply'.scale_factor
(float): Scale factor for the X-axis. Default is 2.0.
Labels:
Projects_RayTracing_utils_PLYModifier_scale_mesh_x
scale_mesh_x_exponentially(input_file:str, output_file:str, k:float)
Loads a PLY file, scales the X-axis exponentially (x' = x * exp(k * x)), and saves the result.
Parameters:
input_file
(str): Path to the input PLY file.output_file
(str): Path to save the scaled mesh.k
(float): Exponential scaling factor. Positive values stretch; negative values compress.
Labels:
Projects_RayTracing_utils_PLYModifier_scale_mesh_x_exponentially