Show / Hide Table of Contents

    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);
    
    Inheritance
    System.Object
    Element
    GeometricElement
    ModelPoints
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    GeometricElement.Bounds
    GeometricElement.Transform
    GeometricElement.Material
    GeometricElement.Representation
    GeometricElement.IsElementDefinition
    GeometricElement.ModifyVertexAttributes
    GeometricElement.UpdateRepresentations()
    GeometricElement.UpdateBoundsAndComputeSolid(Boolean)
    GeometricElement.CreateInstance(Transform, String)
    GeometricElement.ToMesh(Boolean)
    GeometricElement.HasGeometry()
    GeometricElement.Intersects(Plane, Dictionary<Guid, List<Polygon>>, Dictionary<Guid, List<Polygon>>, Dictionary<Guid, List<Line>>)
    Element.Id
    Element.Name
    Element.AdditionalProperties
    Element.PropertyChanged
    Element.RaisePropertyChanged(String)
    Element.SetMapping(String, MappingBase)
    Element.GetMapping(String)
    Element.GetMapping<T>(String)
    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
    GeometricElement.TryToGraphicsBuffers(out List<GraphicsBuffers>, out String, out Nullable<MeshPrimitive.ModeEnum>)

    Implements

    System.ComponentModel.INotifyPropertyChanged

    Extension Methods

    ElementProxyExtensions.Proxy<T>(T, String)
    Identity.AddOverrideIdentity(Element, IOverride)
    Identity.AddOverrideIdentity(Element, String, String, Object)
    Identity.AddOverrideValue(Element, String, Object)
    Identity.OverrideIds<T>(Element, String)