public MyRepeatedComponent(Component2 component, int idCorrespondingNode, MyTransformMatrix transform, bool isLeaf, MyRepeatedEntity repeatedEntity) { this.Component = component; Name = component.Name2; IdCorrespondingNode = idCorrespondingNode; this.Transform = transform; this.IsLeaf = isLeaf; var originVertex = new MyVertex(transform.TranslationVector[0], transform.TranslationVector[1], transform.TranslationVector[2]); this.Origin = originVertex; RepeatedEntity = repeatedEntity; IsSphere = false; }
public MyRepeatedComponent(Component2 component, MyTransformMatrix transform, bool isLeaf, MyRepeatedEntity repeatedEntity) { this.Component = component; var pathComponent = component.Name2; var componentName = pathComponent.Split('/').Last(); Name = componentName; this.Transform = transform; this.IsLeaf = isLeaf; var originVertex = new MyVertex(transform.TranslationVector[0], transform.TranslationVector[1], transform.TranslationVector[2]); this.Origin = originVertex; RepeatedEntity = repeatedEntity; IsSphere = false; }