Example #1
0
 public PointCloudModel(List<vec3> pointPositions)
 {
     var box = pointPositions.Move2Center();
     this.Lengths = box.MaxPosition - box.MinPosition;
     //this.WorldPosition = box.MaxPosition / 2 + box.MinPosition / 2;
     this.pointPositions = pointPositions;
 }
Example #2
0
 private void SetupPipeline(List<vec3> pipeline)
 {
     BoundingBox box = pipeline.Move2Center();
     this.WorldPosition = 0.5f * box.MaxPosition + 0.5f * box.MinPosition;
     this.FirstNode = pipeline[0];
     this.pipeline = pipeline;
 }