// Token: 0x06004268 RID: 17000 RVA: 0x00151718 File Offset: 0x0014FB18 public override void GenerateColliderGeometry() { Mesh colliderMesh = base.GetColliderMesh(); if (colliderMesh) { colliderMesh.Clear(); TorusPrimitive.GenerateGeometry(colliderMesh, this.radius0, this.radius1, this.torusSegments, this.coneSegments, this.slice, this.normalsType, this.pivotPosition); base.RefreshMeshCollider(); } base.GenerateColliderGeometry(); }
// Token: 0x06004266 RID: 16998 RVA: 0x00151654 File Offset: 0x0014FA54 public void GenerateGeometry(float radius0, float radius1, int torusSegments, int coneSegments, float slice, NormalsType normalsType, PivotPosition pivotPosition) { MeshFilter component = base.GetComponent <MeshFilter>(); if (component.sharedMesh == null) { component.sharedMesh = new Mesh(); } Mesh sharedMesh = component.sharedMesh; base.GenerationTimeMS = TorusPrimitive.GenerateGeometry(sharedMesh, radius0, radius1, torusSegments, coneSegments, slice, normalsType, pivotPosition); this.radius0 = radius0; this.radius1 = radius1; this.torusSegments = torusSegments; this.coneSegments = coneSegments; this.normalsType = normalsType; this.slice = slice; this.flipNormals = false; this.pivotPosition = pivotPosition; }