Skip to main content

WallPlateShape

Enum WallPlateShape 

Source
pub enum WallPlateShape {
    Enclosed {
        boundary: Vec<NodeId>,
    },
    Attached {
        anchor: RegionAnchor,
        extent: Option<[f64; 2]>,
    },
}
Expand description

壁版の形。super::SlabShape と同型(囲まれた領域 / 主架構・床領域に取り付く領域)。

Variants§

§

Enclosed

柱・梁が囲む鉛直構面内の領域。境界は super::WallRegion の境界そのもの、 または間柱で分割した場合はそのサブ境界(節点列。反時計回り、始点は繰り返さない)。

Fields

§boundary: Vec<NodeId>
§

Attached

主架構・床領域に取り付く領域(パラペット・腰壁・垂れ壁・自立壁)。

RegionAnchor::Line の場合、extent は D15 の「立ち上がり高さ」 [d_i, d_j](区間の始端側・終端側の高さ [mm])で、床側(跳ね出し長さ)とは 張り出す向きが異なる(床は取付き線の左向き法線方向、壁は鉛直上向き)。 RegionAnchor::FloorRegion の場合も同じ意味(extent は高さ、nodes は 壁自体の平面上の始点・終点)。RegionAnchor::Point は壁の取付き先としては 使わない(D14 の対応表に壁の用例がなく、出隅スラブ専用のため。 WallPlate::boundary_coords はこの組み合わせで None を返す)。

extentNone のときは階高いっぱいの壁であるModel::wall_plate_extent が壁の下端から直上の階レベルまでの高さへ 解決する)。階高は設計中に何度も変わるため、全高の壁を絶対寸法で書くと 変更に追随せず、上階との間に隙間が残る。数値としては破綻しないので黙って 残る種類の誤りである。

None を許すのは RegionAnchor::FloorRegion(自立壁)だけである。 囲む柱梁があるなら壁の高さは幾何から決まるので、全高の壁は WallPlateShape::Enclosed(境界=壁領域の節点列)で表す。線アンカーで None を許すと、squid_n_element::wall::misc_wall が階高分の腰壁せいを取付き先の 梁 1 本へ丸ごと算入し(反対側の梁が無い扱いになる)、梁の剛性を過大に、 変形を過小に見る危険側の評価になる。Model::validate が弾く。

Fields

§extent: Option<[f64; 2]>

Trait Implementations§

Source§

impl Clone for WallPlateShape

Source§

fn clone(&self) -> WallPlateShape

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WallPlateShape

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WallPlateShape

Source§

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 WallPlateShape

Source§

fn eq(&self, other: &WallPlateShape) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for WallPlateShape

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for WallPlateShape

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.