#[repr(C)]pub struct UiLathePt {
pub pt: Vec2,
pub normal: Vec2,
pub color: Color32,
pub connect_next: Bool32T,
pub flip_face: Bool32T,
}
Expand description
A point on a lathe for a mesh generation algorithm. This is the ‘silhouette’ of the mesh, or the shape the mesh would take if you spun this line of points in a cylinder. https://stereokit.net/Pages/StereoKit/UILathePt.html
Fields§
§pt: Vec2
Lathe point ‘location’, where ‘x’ is a percentage of the lathe radius alnong the current surface normal, and Y is the absolute Z axis value.
normal: Vec2
The lathe normal point, which will be rotated along the surface of the mesh.
color: Color32
Vertex color of the current lathe vertex.
connect_next: Bool32T
Will there be triangles connecting this lathe point to the next in the list, or is this a jump without triangles?
flip_face: Bool32T
Should the triangles attaching this point to the next be ordered backwards?
Implementations§
Source§impl UiLathePt
impl UiLathePt
pub fn new( pt: impl Into<Vec2>, normal: impl Into<Vec2>, color: Color32, connect_next: bool, flip_face: bool, ) -> Self
This is a default lathe for a button! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Sourcepub fn input() -> [UiLathePt; 10]
pub fn input() -> [UiLathePt; 10]
This is a default lathe for an input! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Sourcepub fn plane() -> [UiLathePt; 2]
pub fn plane() -> [UiLathePt; 2]
This is a default lathe for a plane! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Sourcepub fn panel() -> [UiLathePt; 6]
pub fn panel() -> [UiLathePt; 6]
This is a default lathe for a panel! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Sourcepub fn slider() -> [UiLathePt; 6]
pub fn slider() -> [UiLathePt; 6]
This is a default lathe for a slider! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Sourcepub fn slider_btn() -> [UiLathePt; 6]
pub fn slider_btn() -> [UiLathePt; 6]
This is a default lathe for a slider button! https://stereokit.net/Pages/StereoKit/UI/GenQuadrantMesh.html
see also ui_gen_quadrant_mesh
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiLathePt
impl RefUnwindSafe for UiLathePt
impl Send for UiLathePt
impl Sync for UiLathePt
impl Unpin for UiLathePt
impl UnwindSafe for UiLathePt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.