本文整理汇总了C#中Source.Origin方法的典型用法代码示例。如果您正苦于以下问题:C# Source.Origin方法的具体用法?C# Source.Origin怎么用?C# Source.Origin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Source
的用法示例。
在下文中一共展示了Source.Origin方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Fill_in
private void Fill_in(Source Src_Pt, int SampleRate_in, double Increment_in, Scene Sc, int RCT, double Cutoff_time, bool Time_1Pt, bool Z_displacementIn, bool DirectionalIn, bool RecOnVertex, bool Offset_Mesh)
{
_Sc = Sc;
Src = Src_Pt.Origin();
SrcType = Src_Pt.Type();
CutOffTime = Cutoff_time;
SampleRate = SampleRate_in;
increment = Increment_in;
Rec_Vertex = RecOnVertex;
Mesh_Offset = Offset_Mesh;
Z_Displacement = Z_displacementIn;
Directional = DirectionalIn;
Time1Pt = Time_1Pt;
SampleCT = Time1Pt ? 1 : (int)Math.Floor(CutOffTime * SampleRate / 1000);
Max = new Hare.Geometry.Point(Double.NegativeInfinity, Double.NegativeInfinity, Double.NegativeInfinity);
Min = new Hare.Geometry.Point(Double.PositiveInfinity, Double.PositiveInfinity, Double.PositiveInfinity);
Rec_List = Rec_Vertex ? new Map_Receiver[Map_Mesh.Vertices.Count] : new Map_Receiver[Map_Mesh.Faces.Count];
lock (Map_Mesh)
{
bool FN = Map_Mesh.FaceNormals.ComputeFaceNormals();
}
}
示例2: Map_Receiver
public Map_Receiver(double Diameter, int i, Hare.Geometry.Point Point, Source Src, double SoundSpeed, double rho, double[] Attenuation, int SampleRate_in, double COTime_in, int ProcessorSpec, bool Time1Pt, bool Directional)
{
Ray_ID = new int[ProcessorSpec];
Radius = 1;
Radius2 = Radius * Radius;
CO_Time = COTime_in;
SampleRate = SampleRate_in;
H_Origin = Point;
C_Sound = SoundSpeed;
Atten = Attenuation;
SizeMod = 1 / Math.PI;
H_Origin = Point;
Radius = Diameter * 0.5;
Radius2 = Radius * Radius;
this.Rho_C = rho * Sound_Speed;
this.SizeMod = 1 / (Math.PI * Radius2);
Hare.Geometry.Point L1 = (Utilities.PachTools.RPttoHPt(Src.Origin()) - H_Origin);
Direct_Time = Math.Sqrt(L1.x * L1.x + L1.y * L1.y + L1.z * L1.z) / C_Sound + Src.Delay;
if (!Time1Pt)
{
if (!Directional)
{
base.Recs = new Histogram(SampleRate_in, COTime_in);
}
else
{
base.Recs = new Directional_Histogram(SampleRate_in, COTime_in);
}
}
else
{
base.Recs = new Histogram_1Pt(SampleRate_in, COTime_in);
}
}