Export (0) Print
Expand All

GeometryModel3D Constructor

Builds a new GeometryModel3D.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method GeometryModel3D() Creates a new instance of GeometryModel3D.
Public method GeometryModel3D(Geometry3D, Material) Creates a new instance of GeometryModel3D with the specified Geometry3D and Material.

public HitTestResultBehavior HTResult(System.Windows.Media.HitTestResult rawresult)
    RayHitTestResult rayResult = rawresult as RayHitTestResult;

    if (rayResult != null)
        RayMeshGeometry3DHitTestResult rayMeshResult = rayResult as RayMeshGeometry3DHitTestResult;

        if (rayMeshResult != null)
            GeometryModel3D hitgeo = rayMeshResult.ModelHit as GeometryModel3D;

            UpdateMaterial(hitgeo, (side1GeometryModel3D.Material as MaterialGroup));

    return HitTestResultBehavior.Continue;
© 2015 Microsoft