Click or drag to resize
AB4D logo

TorusKnotVisual3D Class

Torus knot is a special kind of knot that lies on the surface of an unknotted torus. Similarly, a torus link is a link which lies on the surface of a torus in the same way. Each torus knot is specified by a pair of coprime integers p and q. A torus link arises if p and q are not coprime. A torus knot is trivial (equivalent to the unknot) if and only if either p or q is equal to 1 or −1.
Inheritance Hierarchy

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class TorusKnotVisual3D : BaseModelVisual3D

The TorusKnotVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodTorusKnotVisual3D Constructor
Public methodTorusKnotVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyCalculateNormals Gets or sets a boolean that specifies if TorusKnotVisual3D calculates normals for the MeshGeometry3D (when false, then normals are calculated by WPF rendering engine).
Public propertyCenterPosition Gets or sets the center position
Public propertyP Gets or sets the p parameter (number of rotations around its axis of rotational symmetry).
Public propertyQ Gets or sets the q parameter (number of rotations around a circle in the interior of the torus).
Public propertyRadius1 Gets or sets the first radius of the torus knot.
Public propertyRadius2 Gets or sets the second radius of torus knot.
Public propertyRadius3 Gets or sets the second radius of torus knot.
Public propertyUSegments Gets or sets the number of segments along the length of the knot
Public propertyVSegments Gets or sets the number of segments around one knot segment
Top
Methods
 NameDescription
Protected methodRefreshGeometry Recreates the Visual3D geometry
(Overrides BaseModelVisual3DRefreshGeometry)
Top
Fields
 NameDescription
Public fieldStatic memberCenterPositionProperty CenterPositionProperty
Public fieldStatic memberPProperty PProperty
Public fieldStatic memberQProperty QProperty
Public fieldStatic memberRadius1Property Radius1Property
Public fieldStatic memberRadius2Property Radius2Property
Public fieldStatic memberRadius3Property Radius3Property
Public fieldStatic memberUSegmentsProperty USegmentsProperty
Public fieldStatic memberVSegmentsProperty VSegmentsProperty
Top
Extension Methods
 NameDescription
Public Extension MethodDumpHierarchy Display details about the hierarchy of Visual3D children to Debug console (for example to Visual Studio's Immediate window).
(Defined by Extensions)
Public Extension MethodForEachGeometryModel3D Performs the specified action on each GeometryModel3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodForEachVisual3D Performs the specified action on each ModelVisual3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodGetName Gets name of the Visual3D that was previously set by SetName extension method.
(Defined by Extensions)
Public Extension MethodSetName 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)
Top
See Also