VIZWide3D Document Help

Section

Clear

단면 전체 삭제

Example

//단면 전체 삭제 vizcore.Section.Clear();

    Create

    단면 생성

    Example

    //X축 단면 생성 vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.X); //Y축 단면 생성 vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.Y); //Z축 단면 생성 vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.Z); //BOX 단면 생성 vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.BOX); //SELECTBOX 단면 생성 vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.SELECTBOX);

    Parameters

    Name

    Type

    Description

    clippingType

    VIZCore.Enum.CLIPPING_MODES

    VIZCore.Enum.CLIPPING_MODES

    Returns

    Type

    Description

    Object

    Data.ClipItem()

      GetBoxSize

      단면 상자 크기 반환

      Example

      //BOX 단면 생성 let item = vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.BOX); //단면 상자 크기 반환 let bbox = vizcore.Section.GetBoxSize(item.id);

      Parameters

      Name

      Type

      Description

      id

      Object

      Data.ClipItem().id

      Returns

      Type

      Description

      VIZCore.BBox

      bbox boundBox

        GetClipping

        활성화된 단면 ID 반환

        Example

        //활성화된 단면 ID 반환 let clipped = vizcore.Section.GetClipping();

        Returns

        Type

        Description

        clippingId

        단면 ID

          GetShow

          단면 보이기/숨기기 반환

          Example

          //BOX 단면 생성 let item = vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.BOX); //단면 보이기/숨기기 반환 let show = vizcore.Section.GetShow(item.id);

          Parameters

          Name

          Type

          Description

          id

          String

          clipping ID

          Returns

          Type

          Description

          boolean

          true : 보이기, false : 숨기기

            Inverse

            단면 방향 전환

            Example

            //단면 방향 전환 vizcore.Section.Inverse();

              IsClipping

              단면 클리핑 상태 반환

              Example

              //단면 클리핑 상태 반환 let clipped = vizcore.Section.IsClipping();

              Returns

              Type

              Description

              Boolean

              단면 클리핑 여부

                SetBoxSize

                단면 상자 크기 변경

                Example

                //BOX 단면 생성 let item = vizcore.Section.Create(VIZCore.Enum.CLIPPING_MODES.BOX); //bbox 설정 let bbox = new VIZCore.BBox(); bbox.min.set(-10, -10, -10); bbox.max.set(10, 10, 10); bbox.update(); 단면 상자 크기 변경 vizcore.Section.SetBoxSize(item.id, bbox);

                Parameters

                Name

                Type

                Description

                id

                Object

                Data.ClipItem().id

                bbox

                VIZCore.BBox

                변경할 boundBox

                  SetShow

                  단면 전체 보이기/숨기기 설정

                  Example

                  //단면 전체 보이기/숨기기 설정 vizcore.Section.SetShow(10, true);

                  Parameters

                  Name

                  Type

                  Description

                  id

                  String

                  clipping ID

                  show

                  boolean

                  true : 보이기, false : 숨기기

                    SetShowPlane

                    단면 면 보이기/숨기기 설정

                    Example

                    //단면 면 보이기/숨기기 설정 vizcore.Section.SetShowPlane(10, true);

                    Parameters

                    Name

                    Type

                    Description

                    id

                    String

                    clipping ID

                    show

                    boolean

                    true : 보이기, false : 숨기기

                      SetShowLine

                      단면 선 보이기/숨기기 설정

                      Example

                      //단면 선 보이기/숨기기 설정 vizcore.Section.SetShowLine(10, true);

                      Parameters

                      Name

                      Type

                      Description

                      id

                      String

                      clipping ID

                      show

                      boolean

                      true : 보이기, false : 숨기기

                        Show

                        활성화된 단면 보이기/숨기기 설정

                        Example

                        //활성화된 단면 보이기/숨기기 설정 vizcore.Section.Show(true);

                        Parameters

                        Name

                        Type

                        Description

                        show

                        boolean

                        true : 보이기, false : 숨기기

                          --- Event Listener ---

                          OnChangedEvent

                          단면 변경 이벤트

                          Example

                          // Event : OnSelectedEvent let onChanged = function (event) { console.log(event); } // Add Event Handler : Section Change Event (단면 변경 이벤트) vizcore.Section.OnChangedEvent(onChanged);

                          Parameters

                          Name

                          Type

                          Description

                          listener

                          Object

                          Event Listener

                            Last modified: 07 October 2024