pub enum Constraint {
RigidDiaphragm {
story: StoryId,
master: NodeId,
slaves: Vec<NodeId>,
weight: Option<f64>,
ci_override: Option<f64>,
},
Mpc {
master: NodeId,
terms: Vec<(NodeId, Dof, f64)>,
},
RigidLink {
master: NodeId,
slaves: Vec<NodeId>,
dofs: Dof6Mask,
},
}Variants§
RigidDiaphragm
剛床(面内剛体ダイアフラム)。剛床の唯一の情報源であり、階
(Story)は剛床を保持しない(階と剛床は別概念。model::story の
モジュールドキュメント参照)。階から剛床を辿るときは
Model::diaphragms_of を使う。
この拘束が存在すること自体が「面内剛体である」ことを意味する。
スレーブ節点は階のレベル上にある節点に限る
(Model::on_diaphragm_level)。
Fields
Mpc
RigidLink
Implementations§
Source§impl Constraint
impl Constraint
Sourcepub fn rigid_diaphragm(
story: StoryId,
master: NodeId,
slaves: Vec<NodeId>,
) -> Self
pub fn rigid_diaphragm( story: StoryId, master: NodeId, slaves: Vec<NodeId>, ) -> Self
重量・Ci 指定を持たない剛床拘束を作る。
階に剛床が 1 つだけの場合、水平力はその剛床へ全量載るため重量比の按分が
不要になる(Model::diaphragms_of を用いる分配側の規則)。多剛床の階を
作るときだけ weight・ci_override を明示的に設定する。
Trait Implementations§
Source§impl Clone for Constraint
impl Clone for Constraint
Source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Constraint
impl Debug for Constraint
Source§impl<'de> Deserialize<'de> for Constraint
impl<'de> Deserialize<'de> for Constraint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Constraint
impl PartialEq for Constraint
Source§fn eq(&self, other: &Constraint) -> bool
fn eq(&self, other: &Constraint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Constraint
impl Serialize for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnsafeUnpin for Constraint
impl UnwindSafe for Constraint
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
Mutably borrows from an owned value. Read more