/// <summary> /// Adds the geometry to the mesh for the given product, returns the mesh fragment details /// </summary> /// <param name="geometryModel">Geometry to add</param> /// <param name="product">The product the geometry represents (this may be a partial representation)</param> /// <param name="transform">Transform the geometry to a new location or rotation</param> /// <param name="deflection">Deflection for triangulating curves, if null default defelction for the model is used</param> public XbimMeshFragment Add(IXbimGeometryModel geometryModel, IfcProduct product, XbimMatrix3D transform, double?deflection = null, short modelId = 0) { return(geometryModel.MeshTo(this, product, transform, deflection ?? product.ModelOf.ModelFactors.DeflectionTolerance)); }
XbimMeshFragment IXbimMeshGeometry3D.Add(IXbimGeometryModel geometryModel, IIfcProduct product, XbimMatrix3D transform, double?deflection, short modelId) { return(geometryModel.MeshTo(this, product, transform, deflection ?? product.Model.ModelFactors.DeflectionTolerance, modelId)); }
/// <summary> /// Adds the geometry to the mesh for the given product, returns the mesh fragment details /// </summary> /// <param name="geometryModel">Geometry to add</param> /// <param name="product">The product the geometry represents (this may be a partial representation)</param> /// <param name="transform">Transform the geometry to a new location or rotation</param> /// <param name="deflection">Deflection for triangulating curves, if null default defelction for the model is used</param> public XbimMeshFragment Add(IXbimGeometryModel geometryModel, IfcProduct product, XbimMatrix3D transform, double? deflection = null, short modelId = 0) { return geometryModel.MeshTo(this, product, transform, deflection ?? product.ModelOf.ModelFactors.DeflectionTolerance); }