Click or drag to resize

Meshes Class

Various tools to deal with procedural meshes.
Inheritance Hierarchy
SystemObject
  KSPDev.ModelUtilsMeshes

Namespace:  KSPDev.ModelUtils
Assembly:  KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntax
C#
public static class Meshes
Request Example View Source

The Meshes type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreateBox
Creates a box.
Public methodStatic memberCreateCylinder
Creates a cylinder.
Public methodStatic memberCreatePrimitive
Creates a primitive mesh without colliders and attaches it to the model.
Public methodStatic memberCreatePrimitiveWithCollider
Creates a primitive and attaches it to the model.
Public methodStatic memberCreateSphere
Creates an ideal sphere.
Public methodStatic memberRescaleTextureToLength
Rescales texture so what one sample covers exactly one unit of the primitive length.
Public methodStatic memberTranslateMesh
Translates meshes' vertices.
Public methodStatic memberUpdateMaterials
Sets the specified values to material of all the child renderers in the parent's object.
Top
See Also