pub struct FloorRegion {
pub id: FloorRegionId,
pub name: String,
pub boundary: Vec<NodeId>,
pub secondary_joists: Vec<SecondaryMember>,
pub slab_ids: Vec<SlabId>,
}Expand description
床領域。大梁が囲む 1 スパン区画(D1)。版の仕様は持たない(Slab が持つ)。
Fields§
§id: FloorRegionId床領域 ID(Model::floor_regions の配列インデックスと一致すること)。
name: String表示名(ナビゲータ・診断で領域を指し示すために用いる)。空文字は名前なし。
boundary: Vec<NodeId>境界の節点列(大梁の閉路。反時計回り、始点は繰り返さない)。
secondary_joists: Vec<SecondaryMember>この床領域に属する小梁(SecondaryMember::Joist)の実体。
リスト内の順序は任意。
slab_ids: Vec<SlabId>この床領域に属する床板の ID リスト。床領域内が小梁で複数の打設単位に
分かれている場合、複数持ちうる。順序は任意。重複・他領域との共有は許さない
(Model::validate が確認)。
Implementations§
Source§impl FloorRegion
impl FloorRegion
Sourcepub fn new(id: FloorRegionId, boundary: Vec<NodeId>) -> Self
pub fn new(id: FloorRegionId, boundary: Vec<NodeId>) -> Self
床領域を作る(版なし・小梁なし)。
Sourcepub fn boundary_coords(&self, model: &Model) -> Option<Vec<[f64; 3]>>
pub fn boundary_coords(&self, model: &Model) -> Option<Vec<[f64; 3]>>
境界多角形の座標列 [mm]。節点が引けない(陳腐化した参照)場合は None。
Sourcepub fn reference_node(&self) -> Option<NodeId>
pub fn reference_node(&self) -> Option<NodeId>
領域を代表する節点(境界の先頭)。階の帰属や診断の表示など、 「この領域はどこにあるか」を 1 点で示す用途に使う。
Trait Implementations§
Source§impl Clone for FloorRegion
impl Clone for FloorRegion
Source§fn clone(&self) -> FloorRegion
fn clone(&self) -> FloorRegion
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 FloorRegion
impl Debug for FloorRegion
Source§impl<'de> Deserialize<'de> for FloorRegion
impl<'de> Deserialize<'de> for FloorRegion
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 FloorRegion
impl PartialEq for FloorRegion
Source§fn eq(&self, other: &FloorRegion) -> bool
fn eq(&self, other: &FloorRegion) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FloorRegion
impl Serialize for FloorRegion
impl StructuralPartialEq for FloorRegion
Auto Trait Implementations§
impl Freeze for FloorRegion
impl RefUnwindSafe for FloorRegion
impl Send for FloorRegion
impl Sync for FloorRegion
impl Unpin for FloorRegion
impl UnsafeUnpin for FloorRegion
impl UnwindSafe for FloorRegion
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