Icosphere |
public class IcosphereVisual3D : BaseModelVisual3D
The IcosphereVisual3D type exposes the following members.
Name | Description | |
---|---|---|
IcosphereVisual3D | Constructor | |
IcosphereVisual3D(String) | Constructor |
Name | Description | |
---|---|---|
CenterPosition | Gets or sets the sphere center position | |
FreezeMeshGeometry3D | Gets or sets a Boolean that specifies if the Sphere's MeshGeometry3D is frozen. This can greatly improve performance when many SphereVisual3D objects are generated. It is recommended that this property is set before other properties. The default value is true. | |
GenerateTextureCoordinates | Gets or sets a boolean that specifies if texture coordinates are also generated (this generates more positions because some positions need to be duplicated so they can have different texture coordinates). Default value is true. | |
Radius | Gets or sets the radius of the sphere | |
Subdivisions | Gets or sets the number of subdivisions on top of the most basic icosphere. The number of faces quadruple with every subdivision. Some examples: 2 (162 positions, 320 triangles); 3 (642 positions, 1280 triangles); 4 (2562 positions, 5120 triangles). This value must be between 0 and 8. Default value is 3. | |
UseCachedMeshGeometry3D | Gets or sets a boolean that specifies if cached MeshGeometry3D is used to create the Model3D. In that case the position and radius of the Model3D is specified with using transformations on the cached mesh. If false then a new MeshGeometry3D is created for every IcosphereVisual3D. |
Name | Description | |
---|---|---|
OnCenterPositionPropertyChanged | OnCenterPositionPropertyChanged | |
OnGenerateTextureCoordinatesChanged | OnGenerateTextureCoordinatesChanged | |
OnRadiusPropertyChanged | OnSizePropertyChanged | |
OnUseCachedMeshGeometry3DChanged | OnUseCachedMeshGeometry3DChanged | |
RefreshGeometry |
Recreates the Visual3D geometry
(Overrides BaseModelVisual3DRefreshGeometry) |
Name | Description | |
---|---|---|
CenterPositionProperty | CenterPositionProperty | |
GenerateTextureCoordinatesProperty | GenerateTextureCoordinatesProperty | |
RadiusProperty | RadiusProperty | |
SubdivisionsProperty | SubdivisionsProperty | |
UseCachedMeshGeometry3DProperty | UseCachedMeshGeometry3DProperty |
Name | Description | |
---|---|---|
DumpHierarchy |
Display details about the hierarchy of Visual3D children to Debug console (for example to Visual Studio's Immediate window).
(Defined by Extensions) | |
ForEachGeometryModel3D |
Performs the specified action on each GeometryModel3D inside the rootModelVisual3D.
(Defined by Extensions) | |
ForEachVisual3D |
Performs the specified action on each ModelVisual3D inside the rootModelVisual3D.
(Defined by Extensions) | |
GetName |
Gets name of the Visual3D that was previously set by SetName extension method.
(Defined by Extensions) | |
SetName |
Sets Name property to Visual3D. Note that if name is not correct for WPF, it can be corrected (name must start with a letter or the underscore character (_), and must contain only letters, digits, or underscores).
In this case the SetName method will set the corrected name to the object and return false (in this case you can call GetName to get the corrected name). True is returned when the original name is set to the object.
(Defined by Extensions) |