mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
New node: 'Extrude' (#3414)
* Add extrude node * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -83,6 +83,16 @@ pub enum MergeByDistanceAlgorithm {
|
||||
Topological,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize, Hash, DynAny, specta::Type, node_macro::ChoiceType)]
|
||||
#[widget(Radio)]
|
||||
pub enum ExtrudeJoiningAlgorithm {
|
||||
All,
|
||||
#[default]
|
||||
Extrema,
|
||||
None,
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, serde::Serialize, serde::Deserialize, Hash, DynAny, specta::Type, node_macro::ChoiceType)]
|
||||
#[widget(Radio)]
|
||||
|
||||
@@ -300,6 +300,10 @@ impl SegmentDomain {
|
||||
self.end_point[segment_index] = new;
|
||||
}
|
||||
|
||||
pub fn set_handles(&mut self, segment_index: usize, new: BezierHandles) {
|
||||
self.handles[segment_index] = new;
|
||||
}
|
||||
|
||||
pub fn handles(&self) -> &[BezierHandles] {
|
||||
&self.handles
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user