/// <summary>Sets the vertices of this box to that specified by the given block /// but clipped to fit within a boundary.</summary> /// <param name="boundary">The clipping boundary. The vertices will be clipped to within this.</param> /// <param name="block">The position of the vertices.</param> /// <param name="zIndex">The depth of the vertices.</param> public void SetClipped(BoxRegion boundary, BoxRegion block, Renderman renderer, float zIndex) { // Clipping with no image/ affect on UVs: block.ClipBy(boundary); // And just apply the result: ApplyVertices(block, renderer, zIndex); }
/// <summary>Sets the vertices of this box to that specified by the given block /// but clipped to fit within a boundary.</summary> /// <param name="boundary">The clipping boundary. The vertices will be clipped to within this.</param> /// <param name="block">The position of the vertices.</param> /// <param name="zIndex">The depth of the vertices.</param> public void SetClipped(BoxRegion boundary,BoxRegion block,Renderman renderer,float zIndex){ // Clipping with no image/ affect on UVs: block.ClipBy(boundary); // And just apply the result: ApplyVertices(block,renderer,zIndex); }