Class ModelPoints
A collection of points which are visible in 3D.
Examples
// Create some point locations.
var pts = new List<Vector3>();
for (var x = 0; x < 25; x++)
{
    for (var y = 0; y < 25; y++)
    {
        for (var z = 0; z < 25; z++)
        {
            // Add points to the object.
            pts.Add(new Vector3(x, y, z));
        }
    }
}
// Create a model points object.
var pink = new Material("pink", Colors.Pink);
var modelPoints = new ModelPoints(pts, pink);
  
  Implements
System.ComponentModel.INotifyPropertyChanged
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Elements
Assembly: Hypar.Elements.dll
Syntax
public class ModelPoints : GeometricElement, INotifyPropertyChanged
  Constructors
ModelPoints(IList<Vector3>, Material, Transform, Boolean, Guid, String)
Create a collection of points.
Declaration
[JsonConstructor]
public ModelPoints(IList<Vector3> locations = null, Material material = null, Transform transform = null, bool isElementDefinition = false, Guid id = default(Guid), string name = null)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IList<Vector3> | locations | The locations of the points.  | 
      
| Material | material | The material. Specular and glossiness components will be ignored.  | 
      
| Transform | transform | The model points transform.  | 
      
| System.Boolean | isElementDefinition | Is this an element definition?  | 
      
| System.Guid | id | The id of the model points.  | 
      
| System.String | name | The name of the model points.  | 
      
Properties
Locations
The locations of the points.
Declaration
public IList<Vector3> Locations { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<Vector3> | 
Methods
TryToGraphicsBuffers(out List<GraphicsBuffers>, out String, out Nullable<MeshPrimitive.ModeEnum>)
Get graphics buffers and other metadata required to modify a GLB.
Declaration
public override bool TryToGraphicsBuffers(out List<GraphicsBuffers> graphicsBuffers, out string id, out MeshPrimitive.ModeEnum? mode)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.List<GraphicsBuffers> | graphicsBuffers | |
| System.String | id | |
| System.Nullable<glTFLoader.Schema.MeshPrimitive.ModeEnum> | mode | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | True if there is graphicsbuffers data applicable to add, false otherwise. Out variables should be ignored if the return value is false.  | 
      
Overrides
Implements
      System.ComponentModel.INotifyPropertyChanged