C# 클래스 Revit.SDK.Samples.AvoidObstruction.CS.Section

This class presents an obstruction of a Pipe.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
BuildSections ( List allrefs, Autodesk dir ) : List

Build sections for References, it's a factory method to build sections. A section contains several points through which the ray passes the obstruction(s). for example, a section may contain 2 points when the obstruction is stand alone, or contain 4 points if 2 obstructions are intersects with each other in the direction of the ray.

Inflate ( int index, double value ) : void

Extend this obstruction's interval in one direction.

비공개 메소드들

메소드 설명
Find ( List arr, ReferenceWithContext entry ) : ReferenceWithContext

Judge whether a Reference is already in the list of Reference, return the founded value.

Section ( Autodesk dir ) : System

Private constructor, just be called in static factory method BuildSections.

메소드 상세

BuildSections() 공개 정적인 메소드

Build sections for References, it's a factory method to build sections. A section contains several points through which the ray passes the obstruction(s). for example, a section may contain 2 points when the obstruction is stand alone, or contain 4 points if 2 obstructions are intersects with each other in the direction of the ray.
public static BuildSections ( List allrefs, Autodesk dir ) : List
allrefs List References
dir Autodesk Pipe's direction
리턴 List

Inflate() 공개 메소드

Extend this obstruction's interval in one direction.
public Inflate ( int index, double value ) : void
index int index of direction, 0 => start, 1 => end
value double
리턴 void